storj/satellite/satellitedb
Fadila Khadar 3de9655b68 satellite/redis: used bandwidth key depends on day
The redis key associated to bandwidth usage depended on the current month.
This change makes it depends also on the day, so that we update bandwidth usage
daily to take into account changes associated to expired but not used allocated bandwidth.

It also add a test to to check that the allocated but not settled bandwidth is not counted after 2 days.

Change-Id: Iee9dbe3517cc3b9825438360b276a07a43dfbc64
2021-06-05 17:14:52 +00:00
..
dbx satellite/orders: add egress_dead to project_bandwidth_daily_rollups 2021-06-03 16:05:56 +00:00
satellitedbtest satellite/metainfo: remove MetabaseDB interface 2021-05-13 13:22:14 +00:00
testdata satellite/orders: add egress_dead to project_bandwidth_daily_rollups 2021-06-03 16:05:56 +00:00
apikeys.go pkg/,private/: merge with private package 2021-04-23 16:37:28 +03:00
attribution.go satellite/metainfo: avoid error on inserting existing attribution 2021-04-02 08:18:17 +00:00
audithistory.go satellite/{overlay, satellitedb}: Refactor audit history 2020-12-29 18:50:22 +00:00
bucketsdb.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
coinpaymentstxs.go satellite/satellitedb: Coinpayments repeat insert bug fix 2020-07-20 20:21:35 +00:00
compensation.go satellite/compensation: smaller txns for RecordPeriod 2021-03-02 20:14:25 +00:00
consoledb_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
consoledb.go pkg/,private/: merge with private package 2021-04-23 16:37:28 +03:00
containment.go ci: fix lint errors 2021-05-17 13:37:31 +00:00
coupons.go ci: fix lint errors 2021-05-17 13:37:31 +00:00
customers.go satellite/billing: make stripe invoice generation work with multiregion satellites 2021-05-06 11:51:03 -06:00
database.go satellite/{metabase,satellitedb}: deduplicate AS OF SYSTEM TIME code 2021-05-11 12:40:36 +03:00
gracefulexit.go satellite/{metabase,satellitedb}: deduplicate AS OF SYSTEM TIME code 2021-05-11 12:40:36 +03:00
invoiceprojectrecords.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
irreparabledb.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
migrate_gen.go private/dbutil: use dbutil and tagsql from storj.io/private 2021-04-23 14:36:52 +03:00
migrate_test.go ci: fix lint errors 2021-05-17 13:37:31 +00:00
migrate.go satellite/orders: add egress_dead to project_bandwidth_daily_rollups 2021-06-03 16:05:56 +00:00
migratez.go satellite/orders: add egress_dead to project_bandwidth_daily_rollups 2021-06-03 16:05:56 +00:00
nodeapiversion.go ci: fix lint errors 2021-05-17 13:37:31 +00:00
nodeselection.go satellite/{metabase,satellitedb}: deduplicate AS OF SYSTEM TIME code 2021-05-11 12:40:36 +03:00
orders.go satellite/satellitedb: removing usage of project_bandwidth_rollups table 2021-06-02 05:58:38 +00:00
overlaycache.go satellite/{audit,satellitedb}: release nodes from containment in Reverify rather than (Batch)UpdateStats 2021-06-01 21:02:44 +00:00
payouts.go satellite/compensation: smaller txns for RecordPeriod 2021-03-02 20:14:25 +00:00
peeridentities.go all: fix dots 2020-07-16 14:58:28 +00:00
projectaccounting.go satellite/redis: used bandwidth key depends on day 2021-06-05 17:14:52 +00: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/console: change default project and usage limits 2021-03-24 14:24:27 +00:00
regtokens.go all: fix dots 2020-07-16 14:58:28 +00:00
repairqueue.go satellite/{metabase,satellitedb}: deduplicate AS OF SYSTEM TIME code 2021-05-11 12:40:36 +03:00
resetpasstokens.go all: fix dots 2020-07-16 14:58:28 +00:00
revocation.go pkg/,private/: merge with private package 2021-04-23 16:37:28 +03:00
storagenodeaccounting.go satellite/{metabase,satellitedb}: deduplicate AS OF SYSTEM TIME code 2021-05-11 12:40:36 +03:00
stripecoinpaymentsdb.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
users_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
users.go web, satellite: allow registering business accounts to ask for contact from sales team 2021-06-02 13:10:38 +00:00