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

Release: v4.0.0 (Creator Tokens) #317

Merged
merged 18 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
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
5 changes: 4 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ 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
Expand Down Expand Up @@ -63,6 +64,8 @@ SENDGRID_FROM_EMAIL=gateway@example.com

# Debug settings
SQD_DEBUG=api:*

# playground
OPENAPI_PLAYGROUND=true

# max number of attempts to deliver email notification
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,26 @@ jobs:
node-version: ${{matrix.node-version}}
- name: Build docker image
run: make build-docker

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: Prepare workspace
run: make prepare
- name: create joystream_default network
run: docker network create joystream_default
- 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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ src/auth-server/emails/templates/preview
/scripts/orion-v1-migration/data
/db/export
/db/migrations_dir*
.DS_STORE

# network tests
network-tests/graphql/generated
network-tests/node_modules
network-tests/lib

# LOGS
chron_mail_scheduler.log
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

16 changes: 0 additions & 16 deletions .vscode/tasks.json

This file was deleted.

Binary file added .yarn/install-state.gz
Binary file not shown.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 4.0.0

This is Creator Tokens (CRT) release. It introduces the CRT mappings, custom resolvers and mutations.

# 3.7.0

## Schema changes
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ process: migrate

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

build:
Expand Down Expand Up @@ -48,6 +49,8 @@ codegen:
@npm run generate:schema || true
@npx squid-typeorm-codegen

network-tests:
@npm run generate:network-tests || true

typegen:
@npx squid-substrate-typegen typegen.json
Expand Down
149 changes: 149 additions & 0 deletions db/migrations/1709641962382-Data.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

const { getViewDefinitions } = require('../viewDefinitions')

module.exports = class Views1709622091505 {
name = 'Views1709622091505'
module.exports = class Views1709641962433 {
name = 'Views1709641962433'

async up(db) {
const viewDefinitions = getViewDefinitions(db);
Expand Down
3 changes: 2 additions & 1 deletion docker.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

# Docker db config
DB_HOST=orion_db
# DB connection
# Processor service host
PROCESSOR_HOST=orion_processor
# Archive gateway host&port (can be overriden via local env)
ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-http://orion_archive_gateway:8000/graphql}
ARCHIVE_GATEWAY_URL=${CUSTOM_ARCHIVE_GATEWAY_URL:-http://orion_archive_gateway:8000/graphql}
246 changes: 246 additions & 0 deletions docs/developer-guide.md

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions joystream.jsonl

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions network-tests/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TREASURY_ACCOUNT_URI="//Bob"
TREASURY_INITIAL_BALANCE="100000000000000"
MINI_SECRET=""
Empty file added network-tests/.prettierignore
Empty file.
Loading
Loading