storj/satellite
paul cannon b6bcb32ecf satellite/reputation: more accurate "reputation changes" list
`overlay.(*Service).UpdateReputation()` takes a "reputationChanges"
parameter, a slice of node events indicating whether we think the node's
disqualification or suspension status is changing. This is necessary so
that the overlay service can notify the nodeevents DB about these
changes.

In several cases, however, this list of events is not constructed
correctly, because of missing information about the previous state.
In most cases, this is because the node was offline, and the order limit
creation functions (which usually obtain and return the prior reputation
status) ignored that node.

This change makes it so that all callers to
`overlay.(*Service).UpdateReputation()` can be expected to provide a
correct list of change events (as correct as feasible, given that we
can't lock the node's information in the database during the entire
operation).

It ended up that there was only one caller we needed to worry about, and
that was reputation.(*Service).ApplyAudit(). So the bulk of this change
is teaching that function how to recognize when the prior reputation
status was not filled in, and fill it in.

Refs: https://github.com/storj/storj/issues/5464
Change-Id: I52ce385fc9c0ce3b283b998d517998e7f4ec8792
2023-01-31 18:39:40 +00:00
..
abtesting console/abTesting: add support for AB testing 2022-10-27 10:57:12 +00:00
accounting storj: upgrade to use latest storj/common NodeAddress 2023-01-25 01:37:26 +00:00
admin satellite: remove rewards package 2023-01-31 11:46:50 +00:00
analytics satellite/analytics: Track Project Details Updates (#5451) 2023-01-11 21:25:41 +05:30
attribution satellite: remove rewards package 2023-01-31 11:46:50 +00:00
audit satellite/audit: implement rangedloop observer 2023-01-03 08:52:01 -07:00
buckets satellite/accounting/tally: fix looping over all buckets 2022-12-07 10:32:23 +00:00
compensation all: reformat comments as required by gofmt 1.19 2022-08-10 18:24:55 +00:00
console satellite: remove rewards package 2023-01-31 11:46:50 +00:00
contact satellite/context: fix pingme test 2023-01-30 15:01:32 -05:00
gc satellite/repair : implemented ranged loop observer 2023-01-23 14:23:03 +00:00
geoip satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
gracefulexit satellite: adjust code to handle context cancelation for SQL queries 2023-01-27 10:07:43 +01:00
inspector {satellite/metabase, satellite/metainfo, satellite/inspector} : Use metabase.GetObjectLastCommitted instead metabase.GetObjectExactVersion 2022-09-08 07:27:22 +00:00
internalpb all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
mailservice satellite/consoleweb: fix flaky TestAuth tests 2022-08-04 19:06:07 +00:00
metabase satellite: adjust code to handle context cancelation for SQL queries 2023-01-27 10:07:43 +01:00
metainfo satellite: remove rewards package 2023-01-31 11:46:50 +00:00
metrics satellite/metabase/rangedloop: measure observer duration (#5350) 2022-12-21 21:58:08 +01:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeevents satellite/nodeevents: validate emails before notifying 2022-12-06 09:59:45 -05:00
nodeselection/uploadselection satellite/repairer: handle excluded countries 2022-03-14 10:59:36 -04:00
nodestats satellite: return interval_end_time in DailyStorageUsage endpoint 2022-07-27 18:24:27 +00:00
oidc all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
orders satellite/metainfo: RetryBeginSegmentPieces RPC implementation 2023-01-27 15:04:59 +00:00
overlay satellite/reputation: more accurate "reputation changes" list 2023-01-31 18:39:40 +00:00
payments satellite: remove rewards package 2023-01-31 11:46:50 +00:00
repair satellite/repair : implemented ranged loop observer 2023-01-23 14:23:03 +00:00
reputation satellite/reputation: more accurate "reputation changes" list 2023-01-31 18:39:40 +00:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
satellitedb satellite/reputation: more accurate "reputation changes" list 2023-01-31 18:39:40 +00:00
snopayouts all: fix error naming 2021-04-29 15:38:21 +03:00
admin.go satellite/payments/stripecoinpayments: implement invoice price override 2023-01-17 14:32:10 +00:00
api.go satellite: remove rewards package 2023-01-31 11:46:50 +00:00
auditor.go satellite/audit: split out auditor process 2022-12-16 12:44:32 -06:00
configlock_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
core.go satellite/repair : implemented ranged loop observer 2023-01-23 14:23:03 +00:00
gc-bf.go satellite/gc/bloomfilter: implement rangedloop observer 2023-01-03 09:46:02 -07:00
gc.go satellite/gc/sender: new service to send retain filters 2022-09-20 11:49:40 +00:00
peer.go console/userinfo: stub userinfo endpoint 2022-12-20 06:10:08 +00:00
rangedloop.go satellite/repair : implemented ranged loop observer 2023-01-23 14:23:03 +00:00
repairer.go satellite/audit: newContainment->containment 2022-12-16 17:59:52 +00:00