storj/satellite
Michał Niewrzał 3a7fb4588f satellite/satellitedb: users/projects segment limit migration
We have here two migrations in fact. One is for existing users,
we need to check if its paying user (paid_tier) and set 1M for
them and 150K for others.
Second migration is to set limits for projects depends on owner.
If owner is a paying user (paid_tier) then project should have
1M limit, otherwise it should be 150K. In this case to make
migration faster initially projects table segment_limit was set
to 1M by default. With migration we are selecting all paying
users and we are setting 150K limit for all projects which owners
are not in paying users set.

Initially we had a concern if that query wil lbe quick enough to
be executed during deployment but after investigation CRDB
team confirms that this should take seconds for out DBs.

Fixes https://github.com/storj/team-metainfo/issues/70

Change-Id: I8be06e9f949b68b993e043cc15525e8483bf49ea
2022-02-01 14:35:12 +00:00
..
accounting satellite/accounting: adjust tests to expose new uplink errors 2022-01-27 15:15:07 +00:00
admin satellite/{console,payments},web/satellite: save signup promo code to newly registered users 2022-01-21 15:02:22 +00:00
analytics satellite/analytics: track origin header and referer on signup 2022-01-03 17:47:48 +00:00
attribution satellite/{satellitedb,attribution,console}: value attribution changes that add userAgent field to buckets table and all tables that have partner_id 2021-10-18 13:56:19 +00:00
audit satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
buckets satellite/metainfo: propagate geofencing between buckets and stream id 2021-11-24 08:05:05 +00:00
compensation satellite/compensation: add wallet features to invoice csv 2021-02-08 22:13:48 +02:00
console satellite/projectaccounting, satellite/console, web/satellite: implemented backend for bandwidth chart 2022-01-26 15:09:22 +00:00
contact satellite/contact: fix connection leak in PingMe endpoint 2022-01-20 14:20:24 +00:00
gc mod: use vendored base58 2022-01-31 15:54:33 +02:00
geoip satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
gracefulexit satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00
inspector mod: use vendored base58 2022-01-31 15:54:33 +02:00
internalpb satellite/metainfo: propagate geofencing between buckets and stream id 2021-11-24 08:05:05 +00:00
mailservice satellite/{console,satellitedb}: Forbid creating users with used email 2021-12-15 17:24:35 +00:00
metabase satellite/metainfo/zombiedeletion: enable chore by default 2021-12-21 13:26:18 +01:00
metainfo satellite/metainfo: split endpoint into smaller files (object/segment) 2022-01-25 16:14:37 +00:00
metrics satellite/metrics: speedup test 2021-09-28 11:39:37 +02:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeselection/uploadselection satellite/nodeselection: add geofencing constraints to the node selection criteria 2021-11-08 17:04:31 +00:00
nodestats satellite/nodestats: use overlay node for reputation status 2022-01-11 16:38:27 +00:00
orders satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
overlay satellite/overlay: add test for UpdateCheckIn panic 2022-01-24 15:01:59 +02:00
payments satellite/{console,payments},web/satellite: save signup promo code to newly registered users 2022-01-21 15:02:22 +00:00
repair satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
reputation satellite/{audit, reputation}: fix potential nodes reputation status 2022-01-06 21:05:59 +00:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
rewards satellite/rewards: adding SeaweedFS to partners list (#4230) 2021-10-19 21:30:31 +02:00
satellitedb satellite/satellitedb: users/projects segment limit migration 2022-02-01 14:35:12 +00:00
snopayouts all: fix error naming 2021-04-29 15:38:21 +03:00
admin.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
api.go satellite/metainfo: add segment limit validation, caching 2022-01-10 14:33:26 +02:00
configlock_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
core.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
gc.go satellite/metabase/segmentloop: don't shutdown satellite on loop error 2021-07-30 06:49:10 +00:00
peer.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
repairer.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00