Stefan Benten
52590197c2
satellite/payments: More Cleanup and Satellite command to ensure we have stripe customers ( #3805 )
2020-03-16 20:34:15 +01:00
JT Olio
051569c69f
satellite: enable open registration (and add flag that disables it) SM-441
...
Change-Id: I47bfedb312089f6d2bfbab013bd74ad4b8aa5f5e
2020-03-11 03:53:34 +01:00
Cameron Ayer
33d696b096
storage/redis/redisserver: simplify redisserver creation
...
Change-Id: I881576a7881db671b5abeeca7120a022987cc47f
2020-02-11 19:11:57 +00:00
Qweder93
dc075eaa96
satellite/payments : deposit bonuses (credits) added
...
Change-Id: Ib151bbb9b02d655fa619c53bfbc04ed6f3bb39e0
2020-02-11 11:11:42 +00:00
Yaroslav Vorobiov
083b396c16
satellite/payments: allow floating point numbers for pricing
...
Change-Id: I78b60134cf043746efef5371b761939a10f75aaf
2020-01-28 22:52:13 -05:00
Egon Elbre
f3b4bf2b7c
satellite/satellitedb/satellitedbtest: pass ctx as an argument
...
ctx is created in most tests, instead pass in as argument
to reduce code duplication.
Change-Id: I466c51c008392001129c8b007c9d6b3619935ac4
2020-01-20 16:35:42 +02:00
Cameron Ayer
4424697d7f
satellite/accounting: refactor live accounting to hold current estimated totals
...
live accounting used to be a cache to store writes before they are picked up during
the tally iteration, after which the cache is cleared. This created a window in which
users could potentially exceed the storage limit. This PR refactors live accounting to
hold current estimations of space used per project. This should also reduce DB load
since we no longer need to query the satellite DB when checking space used for limiting.
The mechanism by which the new live accounting system works is as follows:
During the upload of any segment, the size of that segment is added to its respective
project total in live accounting. At the beginning of the tally iteration we record
the current values in live accounting as `initialLiveTotals`. At the end of the tally
iteration we again record the current totals in live accounting as `latestLiveTotals`.
The metainfo loop observer in tally allows us to get the project totals from what it
observed in metainfo DB which are stored in `tallyProjectTotals`. However, for any
particular segment uploaded during the metainfo loop, the observer may or may not
have seen it. Thus, we take half of the difference between `latestLiveTotals` and
`initialLiveTotals`, and add that to the total that was found during tally and set that
as the new live accounting total.
Initially, live accounting was storing the total stored amount across all nodes rather than
the segment size, which is inconsistent with how we record amounts stored in the project
accounting DB, so we have refactored live accounting to record segment size
Change-Id: Ie48bfdef453428fcdc180b2d781a69d58fd927fb
2020-01-16 10:26:49 -05:00
Egon Elbre
6615ecc9b6
common: separate repository
...
Change-Id: Ibb89c42060450e3839481a7e495bbe3ad940610a
2019-12-27 14:11:15 +02:00
Yaroslav Vorobiov
77839dd41b
satellite/console: project usage limits api ( #3702 )
2019-12-12 14:58:15 +02:00
Nikolai Siedov
ded7f6e2eb
web/satellite: registration/welcome message fixed, usage-report url fixed, storj-sim fixed ( #3622 )
2019-11-22 19:03:15 +02:00
Yehor Butko
a8e4e9cb03
satellite/payments: project usage charges ( #3512 )
2019-11-15 16:27:44 +02:00
Egon Elbre
ee6c1cac8a
private: rename internal to private ( #3573 )
2019-11-14 21:46:15 +02:00
Yaroslav Vorobiov
35edc2bcc3
satellite/payments: invoice creation ( #3468 )
2019-11-05 15:16:02 +02:00
Egon Elbre
9c59efd33d
satellite/rewards: ensure that partner information is asked from a service ( #3275 )
2019-11-05 14:58:09 +02:00
Nikolai Siedov
6354b38849
web/satellite: auth graphql api replaced with REST API ( #3396 )
2019-10-29 16:24:16 +02:00
Yaroslav Vorobiov
1a304f5ef9
satellite/payments: add payments loop, update pending transactions ( #3318 )
2019-10-23 15:04:54 +03:00
Yehor Butko
26cc625dc6
satellite/console: payments api ( #3297 )
2019-10-17 17:42:18 +03:00
Bogdan Artemenko
423d35fb3f
satellite/console: Added support URLs and other fields to config file ( #3090 )
2019-09-27 10:48:53 -06:00
Yaroslav Vorobiov
acbe449435
satellite/console: remove payments ( #3074 )
2019-09-27 12:46:37 +03:00
Bogdan Artemenko
bb6086aeab
web/satellite: API keys paged backend ( #2839 )
2019-09-12 17:19:30 +03:00
Bogdan Artemenko
0decd1419b
satellite/console: project members refactoring ( #2752 )
2019-08-12 13:22:32 +03:00
Yingrong Zhao
aaf3283b4e
satellite/console: referral link for individual users ( #2614 )
...
* init
* change give credit to be invitee credits for free credits
* remove unused variables
* fix tests
2019-07-23 12:08:07 -04:00
Yingrong Zhao
f56cb1c612
satellite/console: add get current reward offer to console ( #2341 )
...
* expose reward offer to satellite gui
* named return
2019-07-02 10:36:54 -04:00
Egon Elbre
f4f776d092
Use mail.test as domain in emails ( #2224 )
2019-06-18 02:28:40 +02:00
Yaroslav Vorobiov
6809129e6f
Console add stripe service ( #2080 )
2019-06-03 16:46:57 +03:00
Egon Elbre
859e04f8f3
satellite/console: use require.NoError in tests ( #1986 )
2019-05-17 09:31:14 -04:00
Egon Elbre
748b2b05a4
satellite/mailservice: wait for goroutines to finish ( #1985 )
...
* satellite/mailservice: wait for goroutines to finish
* fix tests
2019-05-17 14:29:35 +02:00
Bogdan Artemenko
38acc4dba6
Resend account activation email ( #1961 )
2019-05-15 11:28:36 +03:00
Bogdan Artemenko
f46487b015
ResetPassword Table and all CRUD methods. ( #1916 )
2019-05-13 18:53:52 +03:00
Bogdan Artemenko
6a50b187eb
Implemented password reset on satellite console web. ( #1665 )
2019-04-10 22:16:10 +03:00
Yehor Butko
86bf3dee9f
V3-1307 combine first and last name to full name ( #1569 )
...
* V3-1307 combine first and last name to full name
2019-03-27 14:33:32 +02:00
Yaroslav Vorobiov
b2b86bee56
[V3-1366] Email project name bug ( #1571 )
2019-03-26 17:56:16 +02:00
Yehor Butko
c6f8d82978
V3-1319 Add an authorization token field for account creation backend ( #1492 )
...
* V3-1319 Add an authorization token field for account creation on the satellite UI backend
2019-03-19 19:55:43 +02:00
Yehor Butko
3ab696164f
Satellite console new activation flow ( #1421 )
...
Satellite console new activation flow
2019-03-08 16:01:11 +02:00
Yehor Butko
af86d8e368
V3-1095 Update service to send invitations in project ( #1412 )
...
* V3-1095 Update service to send invitations in project
2019-03-06 17:42:19 +02:00
Yaroslav Vorobiov
a30ba4eca8
Add mail service to the satellite ( #1302 )
2019-03-02 17:22:20 +02:00
Yehor Butko
8156d911fa
Updating account activation flow ( #1251 )
...
* Updating account activation flow
* Updated integration tests, createUserMutation updated
* removing redundant index
* removed redundant testing code
* review comments fixed
2019-02-11 12:33:56 +02:00
Bill Thorp
dc7deab695
go test fail due to consoleql UTC issues ( #1198 )
...
* is this right?
* used time.Equal for conceptual clarity
2019-02-06 09:48:30 -05:00
Egon Elbre
07412698a9
Use lower bcrypt cost for console.Service when running tests and disable flaky tests ( #1236 )
2019-02-05 19:31:53 +02:00
Yaroslav Vorobiov
2ff0d9d435
Add bucket to project relationship on satellite ( #1143 )
...
* integrate console api keys with buckets in pointerdb
* fix test
* fix tests kvmetainfo
* linter fix
* disable account activation
* fix test
* review fixes
* fix comments
* little refactoring
* remove debug println
* fix typo
* disable activation in a propper way
* fix test
* fix imports
* fix uplink count in testplanet
* move key creation to planet.newUplink
2019-02-05 19:22:17 +02:00
Egon Elbre
5e27d6ec59
Console postgres tests ( #1188 )
2019-01-31 15:01:13 +02:00
Yehor Butko
19bc01c19a
V3-1091 Extend Users table with IsActive functionality ( #1170 )
...
* V3-1091 Extend Users table with IsActive functionality
* fixed review comments
2019-01-30 17:04:40 +02:00
Bogdan Artemenko
b75f06e229
Removed TermsAccepted in project from satellite console and web. ( #1155 )
...
* Removed TermsAccepted from satellite console and web.
2019-01-28 20:20:33 +02:00
Yaroslav Vorobiov
f437effaef
Add console to satellite peer ( #1120 )
2019-01-24 18:26:36 +02:00
Yehor Butko
e38cf8f50d
Renaming and moving pkg/satellite to satellite/console ( #1054 )
...
* [WIP] V3-853 Merge the satellite DB into the master database
* Removing consoleDB from satelliteDB
* Fixing tests for satellite/console
* fixing linter
* sorting imports in satellite/console
* fixing console config
* fixing linter
2019-01-15 15:03:24 +02:00