storj/web/storagenode/tests/unit/components/payments
Clement Sam 7461ffe148 {storagenode,web/multinode}: fix storage usage db/cache retrieval queries
The query changes we did while fixing the usage graph led to wrong
payout calculations directly linked to disk space.

This change:

- avoids converting from Bh to B directly in the query
- returns the at_rest_total in the original bytes*hour value
- returns at_rest_total_bytes as the calculated disk spaced used in bytes
- uses the at_rest_total_bytes only for the disk space graph
- return summary_bytes as the average disk space used within the specified date
- updates the disk space graph header to "average disk space used this month"

The total disk used in the month is also displayed in B not B*day

Resolves https://github.com/storj/storj/issues/5355

Change-Id: I2cfefb0fe711f9c59de2adb547c4ab50b05c7cbb
2022-12-09 11:07:33 +00:00
..
__snapshots__ web/storagenode: support polygon with transaction links 2022-02-14 13:44:26 +00:00
EstimationArea.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
EstimationPeriodDropdown.spec.ts {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
HeldHistoryAllStatsTable.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
HeldHistoryAllStatsTableItemSmall.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
HeldHistoryArea.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
HeldHistoryMonthlyBreakdownTable.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
HeldHistoryMonthlyBreakdownTableItemSmall.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
PayoutHistoryPeriodDropdown.spec.ts {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
PayoutHistoryTable.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
PayoutHistoryTableItem.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
PayoutPeriodCalendar.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
SatellitePayoutForPeriod.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00
TotalHeldArea.spec.ts {storagenode,web/multinode}: fix storage usage db/cache retrieval queries 2022-12-09 11:07:33 +00:00
TotalPayoutArea.spec.ts web/storagenode: fix linter 2022-11-04 18:32:26 +00:00