storj/satellite/satellitedb
Cameron Ayer dc67ce74c9 satellite: remove IsUp field from overlay.UpdateRequest
With the new overlay.AuditOutcome type for offline audits, the
IsUp field is redundant. If AuditOutcome != AuditOffline, then
the node is online.

In addition to removing the field itself, other changes needed
to be made regarding the relationship between 'uptime' and 'audits'.
Previously, uptime and audit outcome were completely separated. For
example, it was possible to update a node's stats to give it a
successful/failed/unknown audit while simultaneously indicating that
the node was offline by setting IsUp to false. This is no longer possible
under this changeset. Some test which did this have been changed slightly
in order to pass.

Also add new benchmarks for UpdateStats and BatchUpdateStats with different
audit outcomes.

Change-Id: I998892d615850b1f138dc62f9b050f720ea0926b
2020-11-02 15:34:17 -05:00
..
dbx Add index to graceful_exit_transfer_queue table 2020-10-26 14:47:48 +00:00
satellitedbtest storage/{cockroachkv,postgreskv}: add ctx to opening 2020-10-29 10:49:08 +00:00
testdata Add index to graceful_exit_transfer_queue table 2020-10-26 14:47:48 +00:00
apikeys.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
attribution_test.go all: remove old uuid 2020-04-02 19:30:36 +03:00
attribution.go all: fix dots 2020-07-16 14:58:28 +00:00
audithistory_test.go satellite/{overlay,satellitedb}: always show node's real online score 2020-10-02 12:28:11 -04:00
audithistory.go satellite/internalpb: move audithistory.pb 2020-10-30 15:30:11 +02:00
buckets.go satellite/orders: add bucket id to order limit 2020-09-03 10:50:11 +03:00
coinpaymentstxs_test.go satellite/satellitedb: Coinpayments repeat insert bug fix 2020-07-20 20:21:35 +00:00
coinpaymentstxs.go satellite/satellitedb: Coinpayments repeat insert bug fix 2020-07-20 20:21:35 +00:00
compensation.go all: fix dots 2020-07-16 14:58:28 +00:00
consoledb_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
consoledb.go satellite/payments: fix promotional coupons 2020-01-29 16:40:43 +02:00
containment.go all: fix dots 2020-07-16 14:58:28 +00:00
coupons.go all: fix dots 2020-07-16 14:58:28 +00:00
customers.go all: replace == comparison with errors.Is 2020-07-14 15:50:25 +00:00
database.go private/{dbutil,tagsql}: pass ctx to database opening 2020-10-29 10:51:29 +00:00
downtime.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
gracefulexit.go go.mod: update pgx to v4.9.0 2020-09-29 19:03:08 +00:00
invoiceprojectrecords.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
irreparabledb.go satellite/internalpb: add inspectors 2020-10-30 13:28:17 +02:00
migrate_test.go satellite: pass ctx into satellitedb.Open 2020-10-29 06:38:37 +00:00
migrate.go Add index to graceful_exit_transfer_queue table 2020-10-26 14:47:48 +00:00
nodeapiversion.go all: use jackc/pgx in place of lib/pq 2020-07-13 15:54:41 +00:00
nodeselection.go go.mod: update pgx to v4.9.0 2020-09-29 19:03:08 +00:00
offers.go all: add missing dots 2020-08-11 17:50:01 +03:00
orders.go satellite/orders: do a better job limiting concurrent requests 2020-10-09 16:27:15 -04:00
overlaycache_test.go satellite: remove IsUp field from overlay.UpdateRequest 2020-11-02 15:34:17 -05:00
overlaycache.go satellite: remove IsUp field from overlay.UpdateRequest 2020-11-02 15:34:17 -05:00
payout.go storagenode: heldamount renamed to payouts, renamed some methods and structs to more meaningful names. grouped estimated payout with pathouts 2020-09-16 14:57:35 +00:00
peeridentities.go all: fix dots 2020-07-16 14:58:28 +00:00
projectaccounting.go all: fix defers in loop 2020-11-02 15:06:38 +02:00
projectmembers_test.go web/satellite: project members sorting fixed (#3231) 2019-10-15 15:24:53 +03:00
projectmembers.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
projects_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
projects.go satellite: make limits be nullable 2020-09-21 19:34:19 +00:00
regtokens.go all: fix dots 2020-07-16 14:58:28 +00:00
repairqueue.go satellite/internalpb: move datarepair.pb to internal 2020-10-30 13:28:14 +02:00
resetpasstokens.go all: fix dots 2020-07-16 14:58:28 +00:00
revocation_test.go satellite: Check macaroon revocation 2020-06-22 13:50:07 -06:00
revocation.go all: fix dots 2020-07-16 14:58:28 +00:00
storagenodeaccounting.go all: use keyed special comment 2020-10-13 15:13:41 +03:00
stripecoinpaymentsdb.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
usercredits.go all: fix dots 2020-07-16 14:58:28 +00:00
users_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
users.go all: fix dots 2020-07-16 14:58:28 +00:00