Commit Graph

7809 Commits

Author SHA1 Message Date
Vitalii
401c8aaf99 web/satellite: migrate APIKey onboarding component to use SFC composition api
Change-Id: I4a1e9cfce951dd9f38a73ce509d8b6e36af65a53
2023-04-05 05:53:31 +00:00
Vitalii
c1484e33ae web/satellite: migrate AGPermissions component to use SFC composition api
Change-Id: I34b012f2626a88e26a9c9d0dd973bf0539dfd6b3
2023-04-05 05:14:02 +00:00
Vitalii
16e224ebc1 web/satellite: migrate UploadCancelPopup component to use SFC composition api
Change-Id: I2f6d81f5a07ffb5e1018aa921ec454fab9e5922d
2023-04-05 04:34:58 +00:00
Vitalii
f9eb778c6d web/satellite: migrate FAQBullet component to use SFC composition api
Change-Id: I96f2f1086a8ed63f4cc9070f6e7317545385df84
2023-04-05 03:54:20 +00:00
Vitalii
5b62150c8c web/satellite: migrate EncryptionBanner component to use SFC composition api
Change-Id: Id6b5c960c2e3d19d2cf0b1f8976b3391a2d4a7b2
2023-04-05 03:14:50 +00:00
Vitalii
923ad68075 web/satellite: migrate BucketsView component to use SFC composition api
Change-Id: Ic3f015008587b335192ec6f6ccc13cc7ec6bfc04
2023-04-05 02:35:45 +00:00
Vitalii
35f9262c1b web/satellite: migrate BucketItem component to use SFC composition api
Change-Id: I82c6a1f5f8949977ef5ffb540fccd0d55fb0c865
2023-04-05 01:56:39 +00:00
Vitalii
32581849c8 web/satellite: migrate BucketGuide component to use SFC composition api
Change-Id: Ic6368530eb1067e4212203ede2c07634bc455043
2023-04-05 01:17:19 +00:00
Vitalii
1ba5ee787c web/satellite: migrate BucketDetailsOverview component to use SFC composition api
Change-Id: I913832792c7c87d4ae81d598eb42ad0c0028f4a1
2023-04-05 00:38:04 +00:00
Vitalii
0351bd9b92 web/satellite: migrate BucketDetails component to use SFC composition api
Change-Id: I869ed788e48b1863552cf346888826f840c1373c
2023-04-04 23:59:02 +00:00
Vitalii
68c016ad50 web/satellite: migrate NotificationArea component to use SFC composition api
Change-Id: I8ac32f49f5e4afb1f5dd75b193054b27f3222769
2023-04-04 23:19:43 +00:00
Vitalii
354aff424b web/satellite: migrate ShareObjectModal component to use SFC composition api
Change-Id: I9c7f7c6767489e161d9f44cc0c3b408fae81b84e
2023-04-04 22:40:42 +00:00
Vitalii
4c75bc0717 web/satellite: migrate ResourcesLinks component to use SFC composition api
Change-Id: Ifda7704109923f3e615637bd95f4b2317c842106
2023-04-04 21:48:48 +00:00
Vitalii
2d28556486 web/satellite: migrate QuickStartLinks component to use SFC composition api
Change-Id: Ic5f3cedc4991761caf2a9a2038cca07d8d74754b
2023-04-04 21:08:57 +00:00
Vitalii
28cc779191 web/satellite: migrate GuidesDropdown component to use SFC composition api
Change-Id: Iebd32660348f85eb75bb1a6006df562a29809cad
2023-04-04 20:33:58 +00:00
Vitalii
deccb1f133 web/satellite: migrate ObjectDetailsModal component to use SFC composition api
Change-Id: I4a7b1e91db5dbcb997cd2a6fa4da4f947c843d88
2023-04-04 19:25:53 +00:00
Vitalii
2cae58dcb7 web/satellite: migrate NewFolderModal component to use SFC composition api
Change-Id: Ibc66e3b47c183ac06f8225a309abbd3c2dbc476e
2023-04-04 18:44:42 +00:00
paul cannon
9e6955cc17 satellite/repair: fix flaky TestFailedDataRepair and friends
The following tests should be made less flaky by this change:

- TestFailedDataRepair
- TestOfflineNodeDataRepair
- TestUnknownErrorDataRepair
- TestMissingPieceDataRepair_Succeed
- TestMissingPieceDataRepair
- TestCorruptDataRepair_Succeed
- TestCorruptDataRepair_Failed

This follows on to a change in commit 6bb64796. Nearly all tests in the
repair suite used to rely on events happening in a certain order. After
some of our performance work, those things no longer happen in that
expected order every time. This caused much flakiness.

The fix in 6bb64796 was sufficient for the tests operating directly on
an `*ECRepairer` instance, but not for the tests that make use of the
repairer by way of the repair queue and the repair worker. These tests
needed a different way to indicate the number of expected failures. This
change provides that different way.

Refs: https://github.com/storj/storj/issues/5736
Refs: https://github.com/storj/storj/issues/5718
Refs: https://github.com/storj/storj/issues/5715
Refs: https://github.com/storj/storj/issues/5609
Change-Id: Iddcf5be3a3ace7ad35fddb513ab53dd3f2f0eb0e
2023-04-04 18:08:52 +00:00
Vitalii
bafd3826f0 web/satellite: migrate EnterPassphraseModal component to use SFC composition api
Change-Id: I07d48165442251c1375b5ce58eb7b31e5f03bdf6
2023-04-04 17:14:37 +00:00
Vitalii
403edd961c web/satellite: migrate AddTokenFundsModal to use SFC composition api
Change-Id: I42a92cab21ec06dc54f624b91c72a17262d995fd
2023-04-04 16:32:26 +00:00
Jeremy Wharton
f2ae202024 satellite/payments,web/satellite: separate UI cost estimates by partner
Components related to project usage costs have been updated to show
different estimations for each partner, and the satellite has been
updated to send the client the information it needs to do this.

Previously, project costs in the satellite frontend were estimated
using only the price model corresponding to the partner that the user
registered with. This caused users who had a project containing
differently-attributed buckets to see an incorrect price estimation.

Resolves storj/storj-private#186

Change-Id: I2531643bc49f24fcb2e5f87e528b552285b6ff20
2023-04-04 15:56:16 +00:00
paul cannon
556250911c storagenode/monitor: add option to log only when verification check fails
This is not recommended for most nodes; leaving your node running when
it can't handle requests fast enough is a good way to fail audits and
get disqualified, which may happen before you even know about the
problem.

But some Windows users are finding that this is being triggered
regularly on their nodes, and that it apparently causes the whole system
to lock up occasionally. We are adding this option as a way to mitigate
that problem until we can collect more information.

Change-Id: I7a652b0f9f970bbb9ed9f2cb3ad1cb89d90db8d7
2023-04-04 12:41:33 +00:00
Michal Niewrzal
4c05293d8b satellite: set names for lrucache metrics
Fixes https://github.com/storj/storj/issues/5685

Change-Id: I9c19b7644b0cd3297448982b920c97abcdce9119
2023-04-04 11:55:20 +00:00
Vitalii
4f515e759d web/satellite: migrate NewBillingAddCouponCodeModal component to use SFC composition api
Change-Id: I78f4e2316921bea43bebdfe97183d3f58e345c29
2023-04-04 10:50:42 +00:00
Vitalii
aca348fc5b web/satellite: migrate MFARecoveryCodesModal component to use SFC composition api
Change-Id: Ibe2a83829ba60bb2b541e8aaa1d8b0fb01ef01bd
2023-04-04 10:15:58 +00:00
Vitalii
ceaa50016d web/satellite: migrate OpenBucketModal component to use SFC composition api
Change-Id: I0236d655fdc33f9ac3540a251298c486fe48f4d5
2023-04-04 09:24:13 +00:00
Vitalii
a51ce288d5 web/satellite: migrate InactivityModal component to use SFC composition api
Change-Id: I73409da66186409664ad59d5538a6e6e4f484d8c
2023-04-04 07:49:23 +00:00
Vitalii
891d74fe7d web/satellite: migrate StripeCardInput component to use SFC composition api
Change-Id: Id61a6726716b87d0a61e872a47a41b6b4c553ff9
2023-04-04 07:08:06 +00:00
Clement Sam
80fc7e94ec web/storagenode: add banner with info on storagenode payout changes
Closes https://github.com/storj/storj/issues/5712

Change-Id: I037adb2af756d44f87e6f5ee38c0f9bd8033809d
2023-04-04 06:17:46 +00:00
Michal Niewrzal
4db3d33d3e satellite/accounting: check bucket existance with GetProjectObjectsSegments
Check if project have any buckets before trying to get stats from
bucket_storage_tallies table.

Change-Id: If87159e29236a1816c3fb99c2d889ff735737100
2023-04-03 20:06:11 +00:00
Vitalii
c4db4165c1 web/satellite: migrate DisableMFAModal component to use SFC composition api
Change-Id: Id5fbedda7e72e18e225e437fcf51d6e9bebb112e
2023-04-03 18:59:14 +00:00
Vitalii
8d544ac3eb web/satellite: migrate AllModals component to use SFC composition api
Change-Id: Id1271c0010035eb7a847c48c7eff9e59a81c25e5
2023-04-03 18:19:08 +00:00
Vitalii
8d15154fc6 web/satellite: migrate infoBars components to use SFC composition api
Change-Id: Ieb25ea37d0ee59bb50ecec219321182bdcd32633
2023-04-03 17:42:33 +00:00
Jeff Wendling
7b06575f6f satellite/meta{base,info}: reduce db round trips for download
This combines the ListStreamPositions and GetSegmentByPosition
calls with a ListSegments call that now knows how to return
only the segments within a Range, just like ListStreamPositions.

It would theoretically be possible to also include the
GetObjectLastCommitted call by having it do one of three
queries based on the incoming request range, but that would
mean duplicating the data for the object in every single
row that is returned for each segment in the range.

One gross thing that ListSegments has to do now is update the
first segment returned with the information from any ancestor
segment because GetSegmentByPosition used to do that. It only
updates the first segment so that it doesn't do O(N) database
queries. It seems difficult to have it do a single query to
update all of the segments at once. I'm not certain this change
should be merged on this basis alone.

This change has made me think a couple of things should happen:

1. Server side copy with ancestor segments strikes again
   making the code less clear and potentially more buggy
   or inefficient for a rare case (empirically <0.1%)

2. The download code requests individual segments from
   the satellite lazily as part of its download which
   requires the satellite telling it the locations of
   all of the segments which requires the satellite
   querying the locations of all of the segments. Instead
   the download RPC could return the orders for all of
   the segments for a range and the download code could
   issue N download calls rather than 1 download call and
   N get segment calls. I believe both sides of the code
   paths would be simpler and more efficient this way.

3. In looking at the timing information for downloads when
   testing this, we really need to focus on getting the
   auth key and bandwidth limit verification times down.
   Here's the timing I saw:

       - 42ms: validate auth
       - 52ms: bandwidth usage checking
       - 14ms: get object info
       - 26ms: get segment position info
       - 26ms: getting the first segment full info
       - 20ms: unaccounted for by spans
       - 6ms:  creating the orders

   This change will remove 26ms, but there's a good 90ms
   in just validation. With improved semantics hitting the
   database only once and improved validation, a download
   rpc taking ~30ms seems doable compared to our current
   ~200ms.

Change-Id: I4109dba082eaedb79e634c61dbf86efa93ab1222
2023-04-03 16:49:00 +00:00
Vitalii
54107264ca web/satellite: migrate MiddleTruncate component to use SFC composition api
10000!!!

Change-Id: I10075787f61c151cc0a155f3ee30629de575dafa
2023-04-03 15:25:54 +00:00
Vitalii
b83ca75691 web/satellite: migrate AccessGrantsItem component to use SFC composition api
Change-Id: I07e4cc9d74120f68d7231a546f83c5b858a92c4e
2023-04-03 14:39:09 +00:00
Vitalii
77829c6306 web/satellite: migrate App.vue component to use SFC composition api
Change-Id: I5877577d743fe1bfbc3762fdaa7064fa279f3ae2
2023-04-03 13:54:37 +00:00
Vitalii
6e11f92b1a web/satellite: migrate NavigationArea component to use SFC composition api
Change-Id: Ic213e0c5af326c1a761868786b4f24244e907dcc
2023-04-03 13:04:41 +00:00
Vitalii
d8ac6889ab web/satellite: introduce objects pinia module
Added new module to replace old Vuex module

Change-Id: Id0c4ff41c89137e15eb78c8666ad995e909a1695
2023-04-03 12:18:48 +00:00
Vitalii
2557b9a72f web/satellite: introduce files pinia module
Added new module to replace old Vuex module

Change-Id: I220769ca6c53e9d9b10f84eaf147f2904bbd5500
2023-04-03 11:13:10 +00:00
Michal Niewrzal
d8724d67f3 satellite/metainfo: add metric about download range type
Change-Id: I8f0d589664232f6cedbf3f41212872735e7f4ac5
2023-04-03 10:04:03 +00:00
Ivan Fraixedes
d17b41d027
satellite/admin: Fix response code for Get bucket
Get bucket was returning a "bad request" HTTP status code when the
bucket doesn't exists.

We have to return HTTP "Not found" status code.

Change-Id: If717d99276b02a1e59a9b71ebc909bd6d8d9390b
2023-04-03 10:22:22 +02:00
Sean Harvey
60444d145c
cmd/uplink: minor text fixes for "uplink share"
updates flag descriptions with correct punctuation, and fix errors
to not be capitalized.

Updates #5623

Change-Id: I9c6ef6d9888b2fb90b17db8775cc6abe803e102f
2023-04-03 11:34:35 +12:00
Moby von Briesen
4caa248c56 web/satellite: Slight update to pro account details in upgrade modal
Use more precise wording to describe limits/pricing for pro accounts.

https://github.com/storj/storj-private/issues/215

Change-Id: I505ea97684c76fc46c1a1e13dde22f33ba840ba7
2023-04-01 01:14:33 +00:00
Vitalii
124f340fa9 web/satellite: migrate EditProfileModal component to use SFC composition api
Change-Id: I9da0c63483ffa7f7a9ac9e4343d751564366ac34
2023-04-01 00:16:16 +00:00
Vitalii
634ae73466 web/satellite: migrate CreateProjectPromptModal component to use SFC composition api
Change-Id: I13dd344ef1b4467953522866ef4eaa94f37b1816
2023-03-31 23:27:18 +00:00
Cameron
c2cd213c4f satellite/console: purchase package grants credit
Instead of granting a coupon when purchasing a package, grant credit.
This changes paymentsconfig.PackagePlan to use credit amount rather than
coupon ID. Add additional check to see if a paid invoice with the
description exists. If so, don't create and pay another invoice.

Change-Id: I81df24984c519c773db5fc8e9070bd7797070ec2
2023-03-31 22:29:54 +00:00
Cameron
a2e3247471 satellite/payments: add Balances interface
Add and implement interface to manage customer balances. Adds ability to
add credit to a user's balance, list balance transactions, and get the
balance.

Change-Id: I7fd65d07868bb2b7489d1141a5e9049514d6984e
2023-03-31 21:51:37 +00:00
Vitalii
709dc63d42 web/satellite: introduce appStore pinia module
Added new module to replace old Vuex module

Change-Id: I82f2cb038ccefc24a622afcd808d3a492a2a87b4
2023-03-31 20:56:49 +00:00
Vitalii
b3969618f9 web/satellite: migrate CreateProjectModal to use SFC composition api
Change-Id: I8da5c3e034ebdd72c07a036d13a1e31a1d706cf6
2023-03-31 19:50:43 +00:00