Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User account notifications #163

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
309 commits
Select commit Hold shift + click to select a range
8283f36
Category filtering: Part 3 - add missing views and operator auth
Lezek123 Dec 21, 2022
f3ed88c
mostViewedVideosConnection custom query + generic custom queries fixes
Lezek123 Jan 10, 2023
f8812c8
Kill switch
Lezek123 Jan 10, 2023
721491c
mostRecentChannels query
Lezek123 Jan 11, 2023
83c6972
channelNftCollectors query
Lezek123 Jan 11, 2023
3a2b2c0
extendedVideoCategories query
Lezek123 Jan 11, 2023
0f67419
Fix AND-OR queries and "eq: null"
Lezek123 Jan 11, 2023
f9b3179
Docker setup improvements
Lezek123 Jan 11, 2023
476a8b9
Video hero
Lezek123 Jan 12, 2023
5d13dc2
Category featured videos
Lezek123 Jan 12, 2023
58b122b
Entity caching (overlay) refactorization
Lezek123 Jan 17, 2023
6570f3e
Prettier
Lezek123 Jan 17, 2023
6889951
Documentation, setup improvements, cleanup
Lezek123 Jan 19, 2023
7214e1c
FIX: Save NextEntityIds
Lezek123 Jan 24, 2023
3dcdbe3
Excludable content
Lezek123 Jan 25, 2023
518e607
- Allow limiting the total number of cached entities
Lezek123 Jan 26, 2023
fee5ee2
setVideoViewPerIpTimeLimit operator mutation
Lezek123 Jan 27, 2023
faefe65
Ephesus mappings WIP
Lezek123 Jan 27, 2023
cfa5420
Ephesus mappings
Lezek123 Jan 29, 2023
d4ca0da
Fix conflicts with local Joystream docker setup
Lezek123 Jan 29, 2023
5c68360
Metadata-protobuf patch location fix
Lezek123 Jan 30, 2023
98d92f3
Ephesus Atlas queries
Lezek123 Jan 30, 2023
0e11168
Update CHANGELOG
Lezek123 Jan 30, 2023
d6e04ec
Linting/formatting fixes, dead code removal
Lezek123 Jan 30, 2023
a6fb8b4
Apps metaprotocol mappings
Lezek123 Jan 31, 2023
c7b8680
Open auction topBid fix
Lezek123 Feb 1, 2023
75bdefc
Fix metadata-protobuf patch
Lezek123 Feb 1, 2023
d8c99c6
Add signAppActionCommitment endpoint
Lezek123 Feb 1, 2023
cce4daa
Tests: Basic data comparison script + bug fixes
Lezek123 Feb 7, 2023
891f151
Remove channel-owned apps
Lezek123 Feb 8, 2023
2be704b
Remove Ephesus scope
Lezek123 Feb 8, 2023
2f2f2e0
Apps as member-owned initial rework
Lezek123 Feb 8, 2023
c416bb9
Fixes after compareState vs mainnet
Lezek123 Feb 13, 2023
61957e6
Remove lead-owned apps, fix typeorm-codegen patch
Lezek123 Feb 20, 2023
90f292c
AppAction support (https://github.com/Joystream/joystream/pull/4631)
Lezek123 Feb 20, 2023
6459568
Update CHANGELOG based on tests
Lezek123 Feb 20, 2023
55c6d6e
Allow controlling "is_censored" content exclusion via env
Lezek123 Feb 21, 2023
d7fc176
buildExtendedChannelsQuery fix (activeVideosCount_gt: 0)
Lezek123 Feb 21, 2023
c0bc9ca
Benchmarking script
Lezek123 Feb 22, 2023
1fb7d6d
Benchmarking results
Lezek123 Feb 22, 2023
1a53e7a
Event queries optimalizations, fix gitignored v1 and v2 schemas
Lezek123 Feb 22, 2023
6a867e3
Adjust autovacuum_analyze_scale_factor
Lezek123 Feb 22, 2023
3393847
Fix entity cache cleanup
Lezek123 Feb 22, 2023
4a486a7
Add index on event's `inExtrinsic` field
Lezek123 Feb 22, 2023
dafebda
Benchmarking round 2
Lezek123 Feb 22, 2023
1325868
Fix req.ip reverse proxy issue, allow conditionally displaying exclud…
Lezek123 Feb 23, 2023
ae08e0e
App-actions functionality (#75)
attemka Feb 24, 2023
c5a1b60
Operator queries
Lezek123 Feb 24, 2023
eed1ef1
Update docs
Lezek123 Feb 24, 2023
8f11d67
Prettier format
Lezek123 Feb 27, 2023
36d1588
Add CI checks
Lezek123 Feb 27, 2023
7a7c4b2
Remove issue template, fix "workflows" location
Lezek123 Feb 27, 2023
47c61ed
Disallow app deletion
Lezek123 Feb 28, 2023
d099b53
Update `generateAppActionCommitment` from `@joystream/js`
Lezek123 Feb 28, 2023
5370165
Fix channel follows, video views and reports after operator queries
Lezek123 Feb 28, 2023
21561a7
Fix https://github.com/Joystream/orion/issues/82
Lezek123 Feb 28, 2023
4c79cc8
Comment notifications: Don't notify the author about their own comment
Lezek123 Feb 28, 2023
70a6551
Update app action commitment, disallow signing arbitrary appActionMet…
Lezek123 Mar 1, 2023
bd2eef7
Introduce a mechanism to preserve views, follows, reports and config …
Lezek123 Mar 1, 2023
5d3b37a
mostViewedVideosConnection missing params fix
Lezek123 Mar 2, 2023
6e43eaf
Fix assets encoding (AppAction)
Lezek123 Mar 2, 2023
c8f95b6
Assets url resolving
Lezek123 Mar 2, 2023
e3a2f7d
Remove accidently commited file
Lezek123 Mar 2, 2023
44eaaac
Fix Aquarium deployment
Lezek123 Mar 2, 2023
7695fb4
Update CHANGELOG
Lezek123 Mar 3, 2023
975870c
Improve caching speed and add more logs
Lezek123 Mar 3, 2023
46a2a98
Latest apps-related updated (generateAppActionCommitment, mappings)
Lezek123 Mar 6, 2023
537c5c6
Process member banning/unbanning
Lezek123 Mar 7, 2023
9e5d34d
Fix: Remove banned members when channel is removed
Lezek123 Mar 7, 2023
ac2242a
Update migration
Lezek123 Mar 7, 2023
39739de
State queries: Re-enable apps
Lezek123 Mar 7, 2023
16659a4
OpenAPI draft docs
Lezek123 Mar 9, 2023
37c5eaf
Auth API: Part 1 - Anonymous Auth
Lezek123 Mar 13, 2023
8db6ccf
Views: Add missing chanel/video related entities
Lezek123 Mar 15, 2023
330f1c6
Excluding/restoring comments: Update:
Lezek123 Mar 15, 2023
636954d
Operator queries: 401 Unauthorized, remove `x-display-hidden-entities…
Lezek123 Mar 15, 2023
518b551
Update changelog
Lezek123 Mar 15, 2023
c6476c1
Simplify processor state subscription
Lezek123 Mar 15, 2023
f9b3fec
Prevent the same comment from being "excluded"/"restored" multiple times
Lezek123 Mar 15, 2023
83c24d8
Small adjustments to docs and compareState script
Lezek123 Mar 15, 2023
c613323
Orion v1 migration scripts
Lezek123 Mar 16, 2023
8989170
New logic for comment exclusion
Lezek123 Mar 16, 2023
f1c8f21
Fix: Reference to `yarn` in package.json
Lezek123 Mar 17, 2023
10e1b85
Increase interval of ProcessorStateRetriever from 100 ms to 1000 ms
Lezek123 Mar 17, 2023
5f3e4e8
Auth API: Part 2 - Session extension and registration
Lezek123 Mar 17, 2023
f24c56b
Merge branch 'orion-v2' into orion-v2-user-accs
Lezek123 Mar 17, 2023
5005c66
Auth API: Part 3 - Basic e-mail confirmation
Lezek123 Mar 20, 2023
f6a8449
Update `generateAppActionCommitment` impl. (#85)
Lezek123 Mar 22, 2023
1897d43
Auth API: Part 4 - Login and logout
Lezek123 Mar 24, 2023
05c0768
Orion v2 (#49) (#101)
Lezek123 Mar 30, 2023
0c54128
Ephesus release (#103)
Lezek123 Apr 7, 2023
a62dfad
Ephesus version bump and CHANGELOG update (#111)
Lezek123 Apr 7, 2023
dce76b6
Merge remote-tracking branch 'upstream/master' into user-accounts
Lezek123 Apr 19, 2023
cf78f27
Auth API: Part 5 - Connect / disconnect Joystream account(s)
Lezek123 Apr 20, 2023
c1634ed
Auth API: Part 6 - E-mail confirmation token re-send
Lezek123 Apr 20, 2023
7b4f125
Query for ending london auctions nfts (#115)
attemka Apr 24, 2023
a3a4d91
Auth API: Schema adjustments for signature sign-in
Lezek123 Apr 24, 2023
c9606c1
Top selling channels (#114)
attemka Apr 25, 2023
1ee1285
Auth API: Encryption artifacts and related tests
Lezek123 Apr 25, 2023
289ae9d
Auth API: Cookie authentication
Lezek123 Apr 25, 2023
f9478c8
Auth API: Introduce rate limits and adjust proxy configuration
Lezek123 Apr 26, 2023
faf83cc
Auth API: DROP ANY NOTION OF E-MAIL CONFIRMATION AND PASSWORD RESET
Lezek123 Apr 26, 2023
7d9de81
Auth API: Max number of connected accounts and other data insertion l…
Lezek123 Apr 26, 2023
d3d97ec
Merge remote-tracking branch 'upstream/master' into user-accounts
Lezek123 Apr 26, 2023
4558c8c
Formatting
Lezek123 Apr 26, 2023
873eb73
Feature/video relevance (#120)
WRadoslaw Apr 27, 2023
f8f09c8
Bring back e-mail confirmation features
Lezek123 Apr 27, 2023
4216e9e
Merge remote-tracking branch 'upstream/master' into user-accounts
Lezek123 Apr 27, 2023
e17ede3
AuthAPI: OpenAPI playground, fixes, dev settings
Lezek123 Apr 27, 2023
f3fbbb5
Auth API: Login - provide accountId in response
Lezek123 Apr 28, 2023
135b4bd
fix issue with incorrect order in mostViewedVideos (#124)
drillprop Apr 28, 2023
15fd9ec
Auth API: Fix GraphQL server cors config to allow testing
Lezek123 Apr 28, 2023
f905007
sold NFTs amount for topSellingChannels (#125)
attemka Apr 28, 2023
3b7fa9a
Changes (#123)
WRadoslaw Apr 28, 2023
fcf5e8b
Auth API: Update docs
Lezek123 Apr 28, 2023
2c639b5
Auth API: Minor getSessionArtifacts response data fix
Lezek123 Apr 28, 2023
61bf501
Auth API: An attempt to fix CI tests
Lezek123 Apr 28, 2023
1610da7
Auth API: 2nd attempt to fix CI tests
Lezek123 Apr 28, 2023
2297c45
Fix https://github.com/Joystream/atlas/issues/4141 (#127)
Lezek123 May 9, 2023
efb4b51
Fix SQL error, when running mostViewedVideosConnection query (#128)
drillprop May 10, 2023
b65d3ab
Docker build adjustments (#107)
Lezek123 May 10, 2023
aa3df79
FIX: Set session cookie even if the session isn't new
Lezek123 May 11, 2023
e1b38e2
FIX: disconnect-account should not require signing
Lezek123 May 11, 2023
dc59112
Improve offchain data migration process (#129)
Lezek123 May 11, 2023
c30e8d3
Update CHANGELOG and version (#130)
Lezek123 May 11, 2023
f49f8c4
OffchainState fix: Batch inserts during import to avoid query errors …
Lezek123 May 11, 2023
417ecac
Merge remote-tracking branch 'upstream/master' into user-accounts
Lezek123 May 18, 2023
3be01ba
Update developer guide + small package.json / Makefile fixes
Lezek123 May 19, 2023
6426a40
Fix OperatorOnly and add AccountOnly middleware
Lezek123 May 19, 2023
49970ec
Use `signatureVerify` instead of `sr25519Verify` to support external …
Lezek123 May 19, 2023
bc156ae
Add warning about `tests:auth-api` to the docs
Lezek123 May 19, 2023
299ea9b
Fix link in README
Lezek123 May 19, 2023
8a67394
Auth API adjustmnets due to new schema, bug fixes, `accountData` quer…
Lezek123 May 23, 2023
585fc69
Fix session artifacts unit test
Lezek123 May 23, 2023
054d4ed
Fix docker build
Lezek123 May 23, 2023
c67cb00
Fix generate-schema-file.sh
Lezek123 May 23, 2023
c5910d1
Adjustments:
Lezek123 May 24, 2023
fdba860
Operator guide + related developer guide adjustments
Lezek123 Jun 1, 2023
61a8041
Adjustments to facilitate Orion deployment, upgrading and maintenance
Lezek123 Jun 1, 2023
72bd1de
Fix formatting, remove accidently commited files
Lezek123 Jun 1, 2023
0d85b50
Minor fixes ported from `user-accounts` branch (#136)
Lezek123 Jun 6, 2023
21f0178
Add `auction_type` and `member_metadata_avatar` indexes (#140)
Lezek123 Jun 6, 2023
bc03682
Fix/introduce average newness for ypp (#137)
WRadoslaw Jun 6, 2023
6573fff
Bump version and update changelog (#142)
Lezek123 Jun 6, 2023
f9fe8f4
Connect follows, reports and views w/ users
Lezek123 Jun 14, 2023
360e4f0
Use jsonl file as typegen input
Lezek123 Jun 14, 2023
268ebde
Merge branch 'orion-v3' into user-accounts
Lezek123 Jun 15, 2023
7035955
Remove usused patch
Lezek123 Jun 15, 2023
2e58efb
Fix example env values in Operator guide
Lezek123 Jun 16, 2023
be5e961
Fix config values visibility issue
Lezek123 Jun 16, 2023
ee88dd6
feat: squash all commits for notification demo
ignazio-bovo Jun 26, 2023
3f7446b
fix: remove non needed entity for migration
ignazio-bovo Jul 7, 2023
aef6b68
feat: mark notifications as read
ignazio-bovo Jul 7, 2023
099825a
fix: runtime notification migration generation
ignazio-bovo Jul 7, 2023
196c781
feat: add event notification for video posted
ignazio-bovo Jul 10, 2023
2de8b4d
feat: add video comment
ignazio-bovo Jul 10, 2023
eaacfab
feat: add chanel verification mutation
ignazio-bovo Jul 10, 2023
1445eee
feat: video excluded from app notifications
ignazio-bovo Jul 12, 2023
174fb2e
feat: channel exclusion
ignazio-bovo Jul 12, 2023
5d8e6c1
fix: Channel exclusion
ignazio-bovo Jul 12, 2023
119a9bf
feat: notification deposit for video reaction
ignazio-bovo Jul 12, 2023
5ea8c97
feat: reaction for comment notification
ignazio-bovo Jul 12, 2023
f88061c
feat: refactor and add channel excluded mail template
ignazio-bovo Jul 12, 2023
5bede46
fix: email
ignazio-bovo Jul 13, 2023
103e66e
feat: regenerate migrations
ignazio-bovo Jul 13, 2023
f261d42
fix: WS_SOURCE for archive
ignazio-bovo Jul 13, 2023
8e85414
feat: boilerplate code for notification testing
ignazio-bovo Jul 13, 2023
d1bc27e
:recycle: Refactor into object mother like context
ignazio-bovo Jul 17, 2023
60533ce
:adhesive_bandage: Fix: graphql client now working
ignazio-bovo Jul 17, 2023
90aa9a6
:bug: Logged in client able to send mutation
ignazio-bovo Jul 18, 2023
bdc5e83
:pencil2: Fix: set missing notification preferences
ignazio-bovo Jul 19, 2023
8345834
Merge branch 'master' into user_account_notifications
ignazio-bovo Jul 24, 2023
6d94e56
:adhesive_bandage: Match notification pref names with design
ignazio-bovo Jul 24, 2023
c05851c
:adhesive_bandage: Match notification pref names with design
ignazio-bovo Jul 24, 2023
0fe9b31
:adhesive_bandage: Fix: SetAccountNotificationPreference resolver
ignazio-bovo Jul 25, 2023
fa8c66f
:white_check_mark: Test: Channel created notification
ignazio-bovo Jul 25, 2023
42c3e08
:white_check_mark: Test: FolloChannel notificatino
ignazio-bovo Jul 25, 2023
8946628
:recycle: Ref: notification deposit function
ignazio-bovo Jul 26, 2023
86b2143
:white_check_mark: Test: Video posted
ignazio-bovo Jul 26, 2023
7cd10d9
:recycle: Ref: addNotification and notification type
ignazio-bovo Jul 27, 2023
3cff89b
feat: :art: create extrinsic file and add make payment to channel
ignazio-bovo Jul 30, 2023
171b235
feat: :art: add extra extrinsic for auction notifications
ignazio-bovo Jul 31, 2023
c34ca4f
feat: :art: add react to video, comment to video and send payment to …
ignazio-bovo Jul 31, 2023
8fba23e
refactor: :sparkles: refactoring code in order to account for manual …
ignazio-bovo Jul 31, 2023
a6146c0
feat: :art: improve test by adding start auction and start offer
ignazio-bovo Jul 31, 2023
3180665
docs: :memo: review auction bid notification cases and added comments
ignazio-bovo Aug 1, 2023
a106b90
fix: :bug: notify creator on video comment
ignazio-bovo Aug 1, 2023
7f7a064
fix: :green_heart: build error
ignazio-bovo Aug 1, 2023
f8414e6
feat: :art: add notification for featured video / nft
ignazio-bovo Aug 1, 2023
10b1585
fix: :bug: channel follower user id
ignazio-bovo Aug 1, 2023
13aa68e
fix: :bug: review notification pref parsing
ignazio-bovo Aug 1, 2023
31bdbd0
feat: :art: migrate Account to Account with pref (all enabled)
ignazio-bovo Aug 1, 2023
b713e5c
feat: :art: migration from Channel to Channel with verification
ignazio-bovo Aug 1, 2023
5c8a1ff
feat: :art: offchain notifcations creation timestmap
ignazio-bovo Aug 1, 2023
38f2afb
refactor: :recycle: Notification code rework to accomodate design specs
ignazio-bovo Aug 1, 2023
be20b11
fix: :art: notification delivery and fields
ignazio-bovo Aug 2, 2023
4358c21
feat: :art: no separate notifications
ignazio-bovo Aug 2, 2023
fc4a0d9
migration order
ignazio-bovo Aug 2, 2023
78d82d4
email function rework
ignazio-bovo Aug 2, 2023
77a5e69
notifications rework
ignazio-bovo Aug 2, 2023
c1d8d62
feat: :art: migrate next entity id for account
ignazio-bovo Aug 2, 2023
5e10c69
refactor: :recycle: unify notifications
ignazio-bovo Aug 2, 2023
ea9afde
fix: :green_heart: fix notification build error after schema changes
ignazio-bovo Aug 2, 2023
2284f60
feat: :truck: rename and re org utils/notification directory
ignazio-bovo Aug 2, 2023
c00c14b
fix: :green_heart: mappings/content/channels tsc errors
ignazio-bovo Aug 2, 2023
09e9def
refactor: :green_heart: fix content/comments and reactions / videos
ignazio-bovo Aug 3, 2023
0fff87f
fix: :green_heart: fix content / nft notification deposit
ignazio-bovo Aug 3, 2023
864d7f9
fix: :green_heart: channel / resolvers notification deposit
ignazio-bovo Aug 3, 2023
43fb76f
fix: :green_heart: Video resolver notification deposit
ignazio-bovo Aug 3, 2023
84e9052
fix: :green_heart: admin resolvers
ignazio-bovo Aug 3, 2023
0f60e6c
fix: :green_heart: fix direct member payment notification deposit
ignazio-bovo Aug 3, 2023
9809f82
fix: :green_heart: fix notification resolvers
ignazio-bovo Aug 3, 2023
e434a7f
feat: :art: add app root domain
ignazio-bovo Aug 3, 2023
28e5075
feat: :art: add notification links
ignazio-bovo Aug 3, 2023
94290eb
feat: :art: notification links
ignazio-bovo Aug 4, 2023
ea25d62
feat: :art: set resolver for setting app_root_domain and notification…
ignazio-bovo Aug 4, 2023
7a41d49
feat: :art: add email content with some formatting
ignazio-bovo Aug 4, 2023
9b697f2
feat: :art: add verify channel resolver with approporiate ChannelVeri…
ignazio-bovo Aug 4, 2023
feef657
fix: :fire: no events or notifications are removed
ignazio-bovo Aug 4, 2023
8f6ef34
feat: :art: add royalty payment
ignazio-bovo Aug 4, 2023
ca1d941
fix: :green_heart: build errors
ignazio-bovo Aug 4, 2023
64d111e
fix: :adhesive_bandage: patch squid middleware to return 401 for unauth
ignazio-bovo Aug 4, 2023
80f4790
Merge branch 'orion_notifications' into user_account_notifications
ignazio-bovo Aug 6, 2023
dd0122b
fix: :green_heart: fix ci build
ignazio-bovo Aug 7, 2023
c842523
Revert "Merge branch 'orion_notifications' into user_account_notifica…
ignazio-bovo Aug 7, 2023
75b6573
temporarely hide integration tests
ignazio-bovo Aug 7, 2023
e1e8b2a
fix gitignore
ignazio-bovo Aug 7, 2023
79db8f1
fix: :green_heart: eslint fixes
ignazio-bovo Aug 7, 2023
bd29803
prettier
ignazio-bovo Aug 7, 2023
1d84475
chore: :green_heart: generate migration data and bump versions
ignazio-bovo Aug 7, 2023
e953bc6
feat: add channel verification to hidden entities
ignazio-bovo Aug 7, 2023
d976b58
feat: :bug: migrations
ignazio-bovo Aug 7, 2023
5332e0e
fix: :green_heart: CI checks on migrations
ignazio-bovo Aug 7, 2023
b537515
notifications visible to accounts
ignazio-bovo Aug 7, 2023
5437868
feat: :fire: re-establish old visibility policy for notificatinos
ignazio-bovo Aug 7, 2023
4e86b84
fix: misc
ignazio-bovo Aug 7, 2023
3df0561
fix: :bug: misc fixes for migrations
ignazio-bovo Aug 8, 2023
a6d85b9
feat: :art: rename auctionExpired -> timedAuctionExpired and add noti…
ignazio-bovo Aug 8, 2023
3ca5f2c
feat: :art: channel suspension resolver
ignazio-bovo Aug 8, 2023
7070692
feat: :art: initial schema generation
ignazio-bovo Aug 8, 2023
2ba183c
feat: :sparkles: better emails
ignazio-bovo Aug 8, 2023
d764d27
fix: :bug: royalty computation and notification id tag
ignazio-bovo Aug 9, 2023
1bf4c20
feat: :art: add notification timestamp
ignazio-bovo Aug 9, 2023
6cc72c0
fix: :bug: purchased nft / channel payment / funds withdrawn notifica…
ignazio-bovo Aug 9, 2023
ccc2523
fix: :bug: resolvers
ignazio-bovo Aug 9, 2023
a9e88a2
fix: :bug: VideoHero and channel suspension resolvers
ignazio-bovo Aug 9, 2023
122e93e
feat: :green_heart: fix ci build
ignazio-bovo Aug 9, 2023
3dab3fb
fix: :green_heart: generate Data.js and add suspension to hidden enti…
ignazio-bovo Aug 10, 2023
44d89b8
fix: :art: add channel_suspended to migrated entities
ignazio-bovo Aug 10, 2023
05e987e
style: :lipstick: better name for computeRoyalty args
ignazio-bovo Aug 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ EMAIL_CONFIRMATION_TOKEN_RATE_LIMIT=5
ACCOUNT_OWNERSHIP_PROOF_EXPIRY_TIME_SECONDS=300 # 5 minutes
COOKIE_SECRET=this-is-not-so-secret-change-it

# Notification related variables
APP_ROOT_DOMAIN=gleev.xyz
NOTIFICATION_CENTER_PATH=notification-center # https://${APP_ROOT_DOMAIN}/${NOTIFICATION_CENTER_PATH}

TRUST_PROXY=uniquelocal

# Sendgrid API
Expand All @@ -59,4 +63,4 @@ SENDGRID_FROM_EMAIL=gateway@example.com

# Debug settings
SQD_DEBUG=api:*
OPENAPI_PLAYGROUND=true
OPENAPI_PLAYGROUND=true
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,31 @@ name: Tests
on: [push, pull_request]

jobs:
migrations:
name: Run migrations
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Create joystream_default network
run: docker network create joystream_default
- name: Prepare workspace
run: make prepare
- name: Start db
run: docker-compose up -d orion_db
- name: Wait for db
run: |
while ! docker-compose exec -T orion_db pg_isready -U postgres -p 23798; do
sleep 1
done
- name: Run migrations
run: make migrate
auth-api:
name: Auth API tests
needs: [migrations]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ src/model/generated
/schema.graphql
/db/persisted
/scripts/orion-v1-migration/data
/db/export
/db/export
16 changes: 16 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "lint",
"problemMatcher": [],
"label": "npm: lint",
"detail": "eslint --ext .ts ./src",
"group": {
"kind": "test",
"isDefault": true
}
}
]
}
4 changes: 2 additions & 2 deletions archive/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DB_PORT=12345
GATEWAY_PORT=8888
WS_SOURCE=wss://rpc.joystream.org:9944
EXPLORER_PORT=4444
WS_SOURCE=ws://joystream-node:9944
EXPLORER_PORT=4444
Loading
Loading