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

Orion notifications demo #154

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
556 commits
Select commit Hold shift + click to select a range
fc3ee31
fix: jobs
ignazio-bovo Apr 21, 2023
797d414
fix: steps
ignazio-bovo Apr 21, 2023
df31506
fix: workflow
ignazio-bovo Apr 21, 2023
a61c914
fix: uses
ignazio-bovo Apr 21, 2023
0b44cc1
feat: add flow for token issuing
ignazio-bovo Apr 22, 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
0bca96b
fix: trying to resolve packages
ignazio-bovo Apr 25, 2023
1ee1285
Auth API: Encryption artifacts and related tests
Lezek123 Apr 25, 2023
adb91c7
fix: misc
ignazio-bovo Apr 25, 2023
11621a4
fix: graphql dependency
ignazio-bovo Apr 25, 2023
9a57a8e
feat: add network test check
ignazio-bovo Apr 25, 2023
eaa2148
fix: tsc check workflow
ignazio-bovo 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
c984875
fix: start create token flow
ignazio-bovo Apr 27, 2023
8530ce4
fix: reconcile joystream_network
ignazio-bovo Apr 27, 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
fbca328
fix: creator token flow
ignazio-bovo 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
da1be97
fix: add fixtures and flows
ignazio-bovo May 7, 2023
8b72f0f
feat: issue rs fixture
ignazio-bovo May 7, 2023
5ae9511
fix: refactor revenue share flow
ignazio-bovo May 7, 2023
e6dc445
feat: revenue share flow
ignazio-bovo May 7, 2023
43f8619
fix: refactor token sale
ignazio-bovo May 8, 2023
868ccc5
fix: patch types with crt_release types
ignazio-bovo May 8, 2023
5ee7fdd
feat: add amm activation
ignazio-bovo May 8, 2023
6062041
fix: patch types
ignazio-bovo May 8, 2023
e138c6e
feat: add amm flow
ignazio-bovo May 8, 2023
1833ec9
feat: add buy on amm
ignazio-bovo May 8, 2023
d95ef0e
feat: sell on amm
ignazio-bovo May 8, 2023
5fe12e6
feat: deactivate amm
ignazio-bovo May 8, 2023
2297c45
Fix https://github.com/Joystream/atlas/issues/4141 (#127)
Lezek123 May 9, 2023
959a3e2
fix: generate all events versions since mainnet
ignazio-bovo May 9, 2023
f9fcdd6
fix: temp fix after event version generation
ignazio-bovo May 9, 2023
ec305eb
fix: misc errorors
ignazio-bovo May 9, 2023
ea5114a
fix: event versioning
ignazio-bovo May 9, 2023
2224209
fix: add migration
ignazio-bovo May 9, 2023
8e933d6
fix: mignations
ignazio-bovo May 9, 2023
04e38dc
fix: re enable cleanup
ignazio-bovo May 9, 2023
d9c0d22
fix: solve channel not being added
ignazio-bovo May 9, 2023
5542a83
fix: channel creation works
ignazio-bovo May 10, 2023
efb4b51
Fix SQL error, when running mostViewedVideosConnection query (#128)
drillprop May 10, 2023
89550e0
fix: add id to TokenChannel
ignazio-bovo May 10, 2023
875f7b2
fix: non-nullable deleted field set
ignazio-bovo May 10, 2023
3c0756e
fix: token issued event correctly processed
ignazio-bovo May 10, 2023
b65d3ab
Docker build adjustments (#107)
Lezek123 May 10, 2023
a678107
fix: add qn checks for token issued
ignazio-bovo May 10, 2023
85438ce
feat: add account query and checks
ignazio-bovo May 11, 2023
f846876
fix: comment out timestamp check
ignazio-bovo May 11, 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
7a277de
feat: start adding burn toknes checks
ignazio-bovo May 12, 2023
48e871f
feat: complete Burn Token fixture
ignazio-bovo May 14, 2023
7a6ee60
feat: finish JoinWhitelist fixture
ignazio-bovo May 14, 2023
908c44c
feat: add Claim patronage fixture
ignazio-bovo May 14, 2023
6986fe5
fix: complete patronage flow
ignazio-bovo May 15, 2023
7219af7
fix: patronage flow completed
ignazio-bovo May 15, 2023
eb73802
feat: continue on revenue Share flow
ignazio-bovo May 15, 2023
65e73cf
fix: revenue share exit
ignazio-bovo May 15, 2023
03c617f
fix: finalize revenue split fixture
ignazio-bovo May 16, 2023
540e12d
feat: creator token init sale orion checks
ignazio-bovo May 16, 2023
50d469b
feat: complete finalize and update sale
ignazio-bovo May 16, 2023
da1c558
feat: finish transfer and amm fixture
ignazio-bovo May 17, 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
99cbae7
fix: prettier
ignazio-bovo May 22, 2023
29753cc
fix: burn tokens tests ok
ignazio-bovo May 22, 2023
9e651b9
fix: issuer transfer ok
ignazio-bovo May 22, 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
a63cb1a
fix: update types
ignazio-bovo May 23, 2023
cd3dcc0
fix: issuer transfer testo k
ignazio-bovo May 24, 2023
c5910d1
Adjustments:
Lezek123 May 24, 2023
10d29c2
fix: participate & exit revenue split
ignazio-bovo May 25, 2023
e5af22e
fix: activate amm fixtrue ok
ignazio-bovo May 27, 2023
9efcdaf
fix: amm flow ok
ignazio-bovo May 27, 2023
c1d9a3d
fix: sales and orchestrate fixtures
ignazio-bovo May 29, 2023
b75fd9c
fix: all test flow are ok
ignazio-bovo May 29, 2023
b9f7a37
feat: add *-transfer fixtures
ignazio-bovo May 30, 2023
130b10b
feat: complete amm flow with account creation
ignazio-bovo May 30, 2023
f8734d2
feat: add deissue token
ignazio-bovo May 30, 2023
fa2b91c
fix: enable all tests
ignazio-bovo May 30, 2023
2376ac9
fix: setters and getters globals
ignazio-bovo May 30, 2023
142ebf7
fix: orchestrate all fixtures
ignazio-bovo May 30, 2023
2360b5b
fix: re-enable metadata
ignazio-bovo May 31, 2023
28bf510
feat: migration for new db scheam
ignazio-bovo Apr 6, 2023
c147aa8
fix: update event versions
ignazio-bovo May 7, 2023
65a5df0
fix: patch types with crt_release types
ignazio-bovo May 8, 2023
0781ec6
fix: patch types
ignazio-bovo May 8, 2023
653ff96
fix: generate all events versions since mainnet
ignazio-bovo May 9, 2023
9224517
fix: temp fix after event version generation
ignazio-bovo May 9, 2023
0cb414d
fix: event versioning
ignazio-bovo May 9, 2023
f60830f
fix: add migration
ignazio-bovo May 9, 2023
0cf1275
fix: mignations
ignazio-bovo May 9, 2023
2f722f3
fix: solve channel not being added
ignazio-bovo May 9, 2023
e429443
fix: add id to TokenChannel
ignazio-bovo May 10, 2023
2bc9ae4
fix: non-nullable deleted field set
ignazio-bovo May 10, 2023
d538011
fix: format
ignazio-bovo May 16, 2023
833f7f3
feat: creator token init sale re enabling
ignazio-bovo May 16, 2023
a2ffbc3
feat: re enable sale init code
ignazio-bovo May 17, 2023
57fd29e
fix: update types
ignazio-bovo May 23, 2023
dab1204
fix: amm id
ignazio-bovo May 24, 2023
4a10f66
fix: id computation for revenue share
ignazio-bovo May 25, 2023
b5c6f06
fix: amm id computation for token
ignazio-bovo May 27, 2023
3bb636c
fix: issuer transfer accounting
ignazio-bovo May 29, 2023
8bc8251
fix: amm tx id
ignazio-bovo May 27, 2023
9292c5e
fix: destination accounting
ignazio-bovo May 29, 2023
cdebfac
feat: minor fix on holder transfer processing
ignazio-bovo May 30, 2023
b1a2c97
fix: re-enable metadata
ignazio-bovo May 31, 2023
78d6ea5
fix: metadata parsing
ignazio-bovo May 31, 2023
88ac4df
fix: post reword cleanup
ignazio-bovo May 31, 2023
641545a
fix: format
ignazio-bovo May 31, 2023
e619822
fix: silence ci checks
ignazio-bovo May 31, 2023
7f379be
fix: event version
ignazio-bovo May 31, 2023
6e79e8a
fix: add join whitelist flow
ignazio-bovo Jun 1, 2023
510bbb3
fix: join whitelist flow ok
ignazio-bovo Jun 1, 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
fa0cd71
fix: warnings for join whitelist fixure
ignazio-bovo Jun 2, 2023
e9064bd
fix: enable metadata
ignazio-bovo Jun 2, 2023
41d17c9
feat: video fixture and flow
ignazio-bovo Jun 5, 2023
492de0a
fix: correct sale event data
ignazio-bovo Jun 5, 2023
0023119
feat: token issuer remark flow and fixture
ignazio-bovo Jun 5, 2023
e22fc55
fix: init sale event
ignazio-bovo Jun 5, 2023
b13bbef
fix: all jobs ok
ignazio-bovo Jun 5, 2023
389d023
feat: add graph ws link for subscriptions
ignazio-bovo Jun 5, 2023
99f7772
fix: provide websocket impl
ignazio-bovo Jun 5, 2023
5fbb096
feat: generate subscription
ignazio-bovo Jun 5, 2023
b6c518d
fix: test subscription
ignazio-bovo Jun 5, 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
3292567
fix: continue refactoring
ignazio-bovo Jun 6, 2023
f00a1df
fix: complete refactoring
ignazio-bovo Jun 7, 2023
c8ea59d
fix: account number
ignazio-bovo Jun 7, 2023
5130427
fix: actions
ignazio-bovo Jun 7, 2023
e40a6a3
fix: preExecHook refactor
ignazio-bovo Jun 5, 2023
4aab14f
feat: add graph ws link for subscriptions
ignazio-bovo Jun 5, 2023
bface7a
fix: format
ignazio-bovo Jun 7, 2023
25111c5
fix: gitignore for outputs
ignazio-bovo Jun 7, 2023
30c0a1f
fix: remove output
ignazio-bovo Jun 7, 2023
636eb1e
fix: metadata protobuf patch
ignazio-bovo Jun 7, 2023
c0ee136
fix: actions
ignazio-bovo Jun 7, 2023
25f2fe2
fix: actions
ignazio-bovo Jun 7, 2023
6f2ad42
fix: sequence workflows
ignazio-bovo Jun 7, 2023
9f42166
fix: typo
ignazio-bovo Jun 7, 2023
05f4cdf
fix: rearrange workflows
ignazio-bovo Jun 7, 2023
0acbfa4
fix: add codegen generation in gh actions
ignazio-bovo Jun 7, 2023
df3ce28
fix: error
ignazio-bovo Jun 7, 2023
2a06c98
fix: errors
ignazio-bovo Jun 7, 2023
823ff28
fix: build directory
ignazio-bovo Jun 7, 2023
e8f972a
fix: typo
ignazio-bovo Jun 7, 2023
2e12ef7
fix: add upload/download docker artifacts
ignazio-bovo Jun 7, 2023
3b4abe2
fix: repo name
ignazio-bovo Jun 7, 2023
715136f
fix: address PR changes
ignazio-bovo Jun 9, 2023
5993e19
merge master
ignazio-bovo Jun 9, 2023
dfacbbf
fix: add hidden entities conditions
ignazio-bovo Jun 12, 2023
68c542b
fix: add extra fields to token in order to keep track of ongoing status
ignazio-bovo Jun 12, 2023
aa8e72a
fix: build errors
ignazio-bovo Jun 12, 2023
0161de6
fix: adapt mapping to new token fields
ignazio-bovo Jun 12, 2023
8c32b99
fix: format
ignazio-bovo Jun 12, 2023
8a66cc3
feat: add trailer video entity
ignazio-bovo Jun 12, 2023
b0bc754
fix: linter
ignazio-bovo Jun 12, 2023
0e686f7
chore: prettier
ignazio-bovo Jun 12, 2023
9625e44
fix: from PR review
ignazio-bovo Jun 12, 2023
2f0acc3
fix: vesting schedule schema & mappings
ignazio-bovo Jun 12, 2023
16cf81e
fix: burning from vesting
ignazio-bovo Jun 12, 2023
c27ed0d
patch: metadata-protobuf package
ignazio-bovo Jun 12, 2023
5972934
patch: metadata-protobuf package
ignazio-bovo Jun 12, 2023
3be1c04
fix: generate migrations
ignazio-bovo Jun 12, 2023
5be0472
fix: purchase token on sale
ignazio-bovo Jun 12, 2023
90375d3
Update schema/token.graphql
ignazio-bovo Jun 13, 2023
9479791
Update schema/token.graphql
ignazio-bovo Jun 13, 2023
35f17bf
fix: address PR
ignazio-bovo Jun 13, 2023
74cc6a9
fix: hidden entities
ignazio-bovo Jun 13, 2023
098a316
fix: migration ok
ignazio-bovo Jun 13, 2023
47edaa1
feat: add extra check for migrations
ignazio-bovo Jun 13, 2023
00bc2bd
fix: docker network
ignazio-bovo Jun 13, 2023
6f6e2b2
fix: format
ignazio-bovo Jun 13, 2023
4618bd5
fix: remove unrequired constraint
ignazio-bovo Jun 13, 2023
f9fe8f4
Connect follows, reports and views w/ users
Lezek123 Jun 14, 2023
360e4f0
Use jsonl file as typegen input
Lezek123 Jun 14, 2023
23005f3
Merge branch 'orion-v2_crt_mappings_with_metadata' into orion-v2_crt_…
ignazio-bovo Jun 15, 2023
cb90bc5
fix: npm i
ignazio-bovo Jun 15, 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
5d4a933
fix: token fields
ignazio-bovo Jun 15, 2023
091554d
fix: IssueCreatorToken
ignazio-bovo Jun 19, 2023
2e043d7
feat: add helper for event
ignazio-bovo Jun 20, 2023
31515b6
feat: add test notification for channel creation
ignazio-bovo Jun 20, 2023
10ef63b
fix: continue with PoC
ignazio-bovo Jun 21, 2023
e26d435
fix: test values
ignazio-bovo Jun 22, 2023
8e5b488
fix: scritps and env variabes
ignazio-bovo Jun 23, 2023
bb89ec4
merge latest crt_test_subscription
ignazio-bovo Jun 23, 2023
3099b63
fix: update event versions
ignazio-bovo Jun 26, 2023
c5b0dba
fix: add notification and template choice
ignazio-bovo Jun 26, 2023
0433b2f
feat: sketch mutation for setting the prefeences
ignazio-bovo Jun 26, 2023
f3773e4
fix: arguments for preference selection function
ignazio-bovo Jun 26, 2023
5d8ad71
feat: add runtime notification data and notification preferences
ignazio-bovo Jun 27, 2023
1b2f113
fix: notification for runtime events
ignazio-bovo Jun 28, 2023
e85e708
fix: add notification preference mutation
ignazio-bovo Jun 28, 2023
9555950
feat: add email strategy
ignazio-bovo Jun 28, 2023
64c49f6
fix: split Notification into onchain and offchain
ignazio-bovo Jun 29, 2023
4d9bb05
fix: add channel created event notifiation
ignazio-bovo Jun 29, 2023
10dac1e
feat: distinguisher between member and channel notifiation
ignazio-bovo Jun 29, 2023
a4a68a9
feat: enable offchain notification entities export
ignazio-bovo Jun 29, 2023
ffee77f
fix: notification preferences resolver
ignazio-bovo Jun 29, 2023
c6c604f
fix: migration
ignazio-bovo Jun 29, 2023
eb94e03
feat: default notification preferences
ignazio-bovo Jun 29, 2023
bea0a08
feat: start adding tests
ignazio-bovo Jun 30, 2023
fce3096
fix: tests
ignazio-bovo Jun 30, 2023
0eb9d9d
fix: tests
ignazio-bovo Jul 3, 2023
1b0d7e5
fix: notificatino preference mutation and complete test
ignazio-bovo Jul 2, 2023
fa8f362
fix: add support for offchain dat
ignazio-bovo Jul 2, 2023
b11005b
fix: missc
ignazio-bovo Jul 3, 2023
ee81f96
Merge branch 'master' into orion_notifications_demo
ignazio-bovo Jul 3, 2023
5c2e02c
fix: format & fix build errors
ignazio-bovo Jul 3, 2023
c21d415
fix: build and migrations
ignazio-bovo Jul 4, 2023
8862b89
fix: bugs in setting notifications
ignazio-bovo Jul 4, 2023
dac1c65
fix: add case for notification mutation status
ignazio-bovo Jul 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
/node_modules
/lib
/*Versions.jsonl
/db/export.json*
/db/export
/db/persisted
49 changes: 38 additions & 11 deletions .env
Original file line number Diff line number Diff line change
@@ -1,35 +1,62 @@
# LOCAL ENVIRONMENT
# LOCAL DEV ENVIRONMENT

ORION_ENV=development
DEV_DISABLE_SAME_SITE=true

# Db config
DB_NAME=squid
DB_PASS=squid
DB_ADMIN_USER=admin
DB_ADMIN_PASS=admin
DB_PORT=23798
# Processor service host
PROCESSOR_HOST=localhost

# Processor service prometheus port
PROCESSOR_PROMETHEUS_PORT=3337
# Graphql server port
GQL_PORT=4350
# Auth api port
AUTH_API_PORT=4074

# Archive gateway url
ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-http://localhost:8888/graphql}

# Default config values
# ======================================================
# ============== DEFAULT CONFIG VALUES =================
# ======================================================
APP_NAME=Gleev
SUPPORT_NO_CATEGORY_VIDEOS=true
SUPPORT_NEW_CATEGORIES=true
KILL_SWITCH_ON=false
VIDEO_VIEW_PER_IP_TIME_LIMIT=86400 # 86400 seconds = 24 hours
VIDEO_RELEVANCE_VIEWS_TICK=50 # every 50 views video relevance score will be recalculated
RELEVANCE_WEIGHTS="[1, 0.03, 0.3, 0.5, [7,3]]" # [newness (negative number of days since created) weight, views weight, comments weight, rections weights, [joystream creation weight, YT creation weight]]

# 10 seconds
VIDEO_VIEW_PER_USER_TIME_LIMIT=10
# Operator API secret
OPERATOR_SECRET=this-is-not-so-secret-change-it
# Processor configuration
# every 50 views video relevance score will be recalculated
VIDEO_RELEVANCE_VIEWS_TICK=50
# [
# newness (negative number of days since created) weight,
# views weight,
# comments weight,
# rections weights,
# [joystream creation weight, YT creation weight]
# ]
RELEVANCE_WEIGHTS="[1, 0.03, 0.3, 0.5, [7,3]]"
MAX_CACHED_ENTITIES=1000
APP_PRIVATE_KEY=this-is-not-so-secret-change-it
SESSION_EXPIRY_AFTER_INACTIVITY_MINUTES=60
SESSION_MAX_DURATION_HOURS=720
EMAIL_CONFIRMATION_ROUTE=http://localhost:4074/api/v1/confirm-email?token={token}
EMAIL_CONFIRMATION_TOKEN_EXPIRY_TIME_HOURS=24
EMAIL_CONFIRMATION_TOKEN_RATE_LIMIT=5
ACCOUNT_OWNERSHIP_PROOF_EXPIRY_TIME_SECONDS=300 # 5 minutes
COOKIE_SECRET=this-is-not-so-secret-change-it

TRUST_PROXY=uniquelocal

# Adjust accordingly with the number of trusted (used) reverse proxies!
TRUSTED_REVERSE_PROXIES=1
# Sendgrid API
SENDGRID_API_KEY=
SENDGRID_FROM_EMAIL=gateway@example.com

# Debug settings
SQD_DEBUG=api:*
OPENAPI_PLAYGROUND=true
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ module.exports = {
ignoreVoid: true,
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-misused-promises': 'error',
},
plugins: ['standard', '@typescript-eslint', 'prettier'],
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tests
on: [push, pull_request]

jobs:
auth-api:
name: Auth API tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
fail-fast: true
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{matrix.node-version}}
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node-version}}
- name: Prepare workspace
run: make prepare
- name: Run tests
run: npm run tests:auth-api
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.json*
/db/export
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ src/model/generated
db/migrations/*.js
schema.graphql
/scripts/orion-v1-migration/data
/db/export.json*
/db/export
Binary file added .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,4 @@ For detailed overview of the new architecture, see the [developer guide](docs/de
- `setVideoViewPerIpTimeLimit` - allows specifying the time after which a video view triggered from the same ip address will be counted again (see: `addVideoView`)
- `excludeContent` - allows excluding specified channels/videos/comments from all query results. Can be used as a gateway-level mechanism to censor some of the content. Comments are the only entities that don't get completely filtered-out from query results when excluded. Instead, their `text` becomes hidden and `isExcluded` property is set to `true`.
- `restoreContent` - effectively the opposite of `excludeContent`, can be used to make content appear in the query results again (if previously excluded).
- `setFeaturedNfts` - allows the operator to provide the list of nfts (ids) that are currently featured by the Gateway. This will affect the `isFeatured` propety of the `OwnedNft` entity.
- `setFeaturedNfts` - allows the operator to provide the list of nfts (ids) that are currently featured by the Gateway. This will affect the `isFeatured` propety of the `OwnedNft` entity.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN npm ci
ADD tsconfig.json .
ADD src src
ADD schema schema
ADD scripts scripts
RUN npx squid-typeorm-codegen
RUN npm run build

Expand All @@ -32,6 +33,7 @@ RUN echo -e "loglevel=silent\nupdate-notifier=false" > /squid/.npmrc
ADD db db
ADD assets assets
ADD schema schema
ADD scripts scripts
# TODO: use shorter PROMETHEUS_PORT
ENV PROCESSOR_PROMETHEUS_PORT 3000
EXPOSE 3000
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ process: migrate
@SQD_DEBUG=sqd:processor:mapping node -r dotenv-expand/config lib/processor.js

install:
@rm -rf node_modules # clean up node_modules to avoid issues with patch-package
@npm install

build:
Expand All @@ -13,6 +14,9 @@ build-docker:
serve:
@npx squid-graphql-server --subscriptions

serve-auth-api:
@npm run auth-server-start

migrate:
@npx squid-typeorm-migration apply

Expand Down Expand Up @@ -40,8 +44,7 @@ up-archive:
up: up-archive up-squid

down-squid:
@docker-compose stop orion_processor
@npm run offchain-state:export && docker-compose down -v
@docker-compose down -v

down-archive:
@docker-compose -f archive/docker-compose.yml down -v
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Orion V2
# Orion

Orion V2 is a backed node powering [Atlas](https://github.com/Joystream/atlas).
Orion is a backed node powering [Atlas](https://github.com/Joystream/atlas).
The project is using [Subsquid framework](https://docs.subsquid.io/) and is based on [squid-substrate-template](https://github.com/subsquid/squid-substrate-template).

## [Developer guide](docs/developer-guide.md)
## [Developer guide](docs/developer-guide/index.md)
## [Operator guide](docs/operator-guide.md)
2 changes: 1 addition & 1 deletion archive/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DB_PORT=12345
GATEWAY_PORT=8888
WS_SOURCE=ws://joystream-node:9944
EXPLORER_PORT=4444
EXPLORER_PORT=4444
Loading