storj/satellite/accounting
Cameron Ayer 4e86951163 satellite/accounting: iterate over projects from tally rather than live accounting projects
at the end of tally iteration, in order to set the new live
accounting totals, we were iterating over all live accounting
projects. We found a bug with this when running storj-sim. If
we restarted the satellite live accounting would be cleared
because storj-sim was running the live accounting redis instance.
Since live accounting was cleared, at the end of tally, even if
it found data in projects, we would not update the live accounting
totals because we were iterating over the projects from live
accounting to do so. We now iterate over projects found from tally
in order to update live accounting

We also found that if a user deleted everything from their project,
tally would not find it and the live accounting would not be updated.
For this reason, we merge live accounting projects into tally projects

Change-Id: If0726ba0c7b692d69f42c5806e6c0f47eecccb73
2020-02-13 12:57:46 -05:00
..
live storage/redis/redisserver: simplify redisserver creation 2020-02-11 19:11:57 +00:00
reportedrollup all: use monkit v3 2020-02-05 23:53:17 +00:00
rollup all: use monkit v3 2020-02-05 23:53:17 +00:00
tally satellite/accounting: iterate over projects from tally rather than live accounting projects 2020-02-13 12:57:46 -05:00
bucketstats.go satellite/accounting: refactor code and remove unused fields (#3178) 2019-10-04 22:09:52 +03:00
bucketusage.go satellite/satellitedb: console tables archview comments updated (#3465) 2019-11-04 16:37:39 +02:00
common.go common: separate repository 2019-12-27 14:11:15 +02:00
db_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
db.go satellite/accounting: refactor live accounting to hold current estimated totals 2020-01-16 10:26:49 -05:00
projectusage_test.go satellite/accounting: fix flaky TestProjectUsageStorage 2020-02-07 20:58:24 -05:00
projectusage.go all: use monkit v3 2020-02-05 23:53:17 +00:00