storj/scripts
Yingrong Zhao 09b0c2a630
create db implementation for offer table (#2031)
* init marketing service

Fix linting error

Create offerdb implementation

Create offers service

Add update method

Create offer table and migration

Fix linting error

fix conflicts

Insert new data

Change duration to have clear indication to be based on days

add error wrapper

Change from using uuid to int for id field

* Create Marketing service

* make error virable name more readable

* add condition in update service method to check offer status

* generate lock file

Change get to listAllOffers

* Add method for getting current offer

wip

* add check for expires_at in update method

* Fix conflicts

* add copyright header

* Fix linting error

* only allow update to active offers

* add isDefault argument to GetCurrent

* Update lock file

* add migration file

* finish migrate for adding credit_in_cents for both award and invitee

* save 100 years as expiration date for default offers

* create crud test for offers

* add GetCurrent test

* modify doc

* Fix GetCurrent to work with default offer

* fix linting issue

* add more tests and address feedbacks

* fix migration file

* add type column back to match with mockup design

* add type column back to match with mockup design

* move doc changes to new pr

* add comments

* change GetCurrent to GetCurrentByType

* fix typo
2019-06-04 15:17:01 -04:00
..
testdata add capability of logging all GRPC calls/payloads (#2067) 2019-06-04 14:55:24 +02:00
waitlist Waitlist script (#573) 2018-11-06 18:43:20 +01:00
cert-gating.sh certificates config and --certs-dir fixes (#1093) 2019-01-22 13:35:48 +01:00
check-clean-directory.go jenkins: add tidiness checks (#1824) 2019-04-24 18:33:01 +03:00
check-copyright.go updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
check-dbx-version.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
check-imports.go jenkins: use -race for check-imports and fix dbx check (#1873) 2019-05-01 09:44:12 -06:00
check-mod-tidy.go jenkins: add tidiness checks (#1824) 2019-04-24 18:33:01 +03:00
check-peer-constraints.go jenkins: peer constraints (#1933) 2019-05-10 14:13:09 +02:00
check-satellite-config-lock.sh jenkins: check that lock file is updated properly (#1977) 2019-06-04 19:12:27 +02:00
cover-remove-generated.go cover all the things (#1818) 2019-04-26 16:39:11 +03:00
dependencies_test.go Add arguments to lockedgen for using it in other places (#1030) 2019-01-11 18:07:26 +02:00
fail-on-race.go Fail integration tests on panic (#1032) 2019-01-11 18:18:16 +02:00
install-awscli.sh Travis with go1.11 and modules (#479) 2018-10-16 20:02:00 +03:00
lockedgen.go create db implementation for offer table (#2031) 2019-06-04 15:17:01 -04:00
protobuf.go jenkins: check that lock file is updated properly (#1977) 2019-06-04 19:12:27 +02:00
release.sh Fixing upload and build binaries (#1751) 2019-04-12 13:28:04 -04:00
test-aio.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-aws-benchmark.sh aws s3 performance tests (#2060) 2019-05-28 11:46:58 -07:00
test-certificate-signing.sh Improve cert signing integration test+: (#997) 2019-01-11 15:59:35 +01:00
test-network-stalls.go Test that network stalls don't cause indefinite hangs in uplink (#1530) 2019-03-20 08:58:07 -06:00
test-sim-aws.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-sim-benchmark.sh aws s3 performance tests (#2060) 2019-05-28 11:46:58 -07:00
test-sim.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
test-uplink.sh server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
update-satellite-config-lock.sh jenkins: check that lock file is updated properly (#1977) 2019-06-04 19:12:27 +02:00
use-ports.go updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
utils.sh certificates config and --certs-dir fixes (#1093) 2019-01-22 13:35:48 +01:00
xunit.go ensure tests fail when parsing test output fails (#1914) 2019-05-08 16:36:41 +03:00