Skip to content

Commit 3b97072

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 511ffc3 + e7c162d commit 3b97072

File tree

232 files changed

+12442
-8080
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+12442
-8080
lines changed

.dockerignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,16 @@ README*
1111

1212
# Yarn / NPM
1313
!.yarnrc.yml
14-
!.yarn/releases
14+
!.yarn/keep
15+
!.yarn/patches
1516
!.yarn/plugins
1617
node_modules
1718

19+
# edgedb generated
20+
src/core/edgedb/generated-client
21+
src/core/edgedb/schema.ts
22+
src/**/*.edgeql.ts
23+
1824
# Local
1925
dist
2026
coverage

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,13 @@ trim_trailing_whitespace = true
1010

1111
[*.md]
1212
trim_trailing_whitespace = false
13+
14+
# Webstorm needs consistent indentation for syntax highlighting
15+
# with the textmate bundle hack.
16+
[*.esdl]
17+
trim_trailing_whitespace = false
18+
19+
# These are auto created and contain a hash of the content.
20+
# Removing whitespace counts as a hash change so avoid.
21+
[dbschema/migrations/*.edgeql]
22+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
.yarn
22
dist
3+
src/core/edgedb/generated-client
4+
src/core/edgedb/schema.ts
5+
src/**/*.edgeql.ts

.eslintrc.cjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,17 @@ const namingConvention = [
102102
filter: '__typename',
103103
format: null,
104104
},
105+
// allow exceptions for edgedb query builder
106+
{
107+
selector: 'objectLiteralProperty',
108+
filter: 'filter_single',
109+
format: null,
110+
},
111+
{
112+
selector: 'objectLiteralProperty',
113+
filter: 'order_by',
114+
format: null,
115+
},
105116
// Allow object literal keys to be anything if they are in quotes
106117
// Used mainly by cypher query builder
107118
{
@@ -173,6 +184,13 @@ const config = {
173184
'@typescript-eslint/method-signature-style': 'off',
174185
},
175186
},
187+
{
188+
files: './src/core/edgedb/generator/*.ts',
189+
rules: {
190+
// Scripts can use the console for logging
191+
'no-console': 'off',
192+
},
193+
},
176194
],
177195
};
178196

.gitattributes

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
# Hide yarn from GitHub's language detection & suppress in diffs
2-
/.yarn/** linguist-generated
3-
yarn.lock linguist-generated
4-
51
# Represent TS generated files as generated
62
*.generated.tsx linguist-generated
73
*.generated.ts linguist-generated
8-
9-
# Represent postman files as generated
10-
*.postman_collection.json linguist-generated
11-
*.postman_environment.json linguist-generated
12-
*.postman_globals.json linguist-generated
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Setup EdgeDB
2+
description: 'Setup EdgeDB server, migrate schema, generate TS files'
3+
runs:
4+
using: composite
5+
steps:
6+
- name: Setup EdgeDB
7+
uses: edgedb/setup-edgedb@v1
8+
9+
- run: edgedb migrate --dev-mode
10+
shell: bash
11+
12+
- name: Generate EdgeDB TS files
13+
shell: bash
14+
run: yarn edgedb:gen

.github/actions/setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ description: 'Setup Node.js and install dependencies with Yarn'
33
runs:
44
using: composite
55
steps:
6-
- uses: actions/setup-node@v3
6+
- uses: actions/setup-node@v4
77
with:
8-
node-version: 18
8+
node-version: 20
99

1010
- name: Yarn cache
1111
uses: actions/cache@v3
@@ -18,7 +18,7 @@ runs:
1818

1919
- name: Install dependencies
2020
shell: bash
21-
run: yarn install
21+
run: corepack enable && yarn install
2222
env:
2323
YARN_ENABLE_GLOBAL_CACHE: 'false' # Use local cache folder to keep downloaded archives
2424
YARN_NM_MODE: 'hardlinks-local' # Hardlinks-(local|global) reduces io / node_modules size

.github/workflows/api-schema.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ jobs:
1515
matrix:
1616
ref: [base, head]
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
ref: ${{ matrix.ref == 'base' && github.event.pull_request[matrix.ref].ref || '' }}
2121

2222
- name: Node Setup & Yarn Install
2323
uses: ./.github/actions/setup
2424

25+
- name: EdgeDB Setup
26+
uses: ./.github/actions/edgedb-setup
27+
2528
- name: Generate GraphQL Schema
2629
run: yarn start -- --gen-schema
2730

@@ -36,7 +39,7 @@ jobs:
3639
needs: [generate]
3740
runs-on: ubuntu-latest
3841
steps:
39-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4043

4144
- uses: actions/download-artifact@v3
4245
with:
@@ -56,7 +59,7 @@ jobs:
5659

5760
- name: Enforce compatibility
5861
run: |
59-
yarn dlx graphql-schema-diff \
62+
corepack enable && yarn dlx graphql-schema-diff \
6063
--use-colors --fail-on-breaking-changes \
6164
./base/schema.graphql ./head/schema.graphql
6265
if: ${{ !contains(github.event.pull_request.labels.*.name, 'breaking change') }}

.github/workflows/edgedb.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: EdgeDB
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
Clean:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Node Setup & Yarn Install
11+
uses: ./.github/actions/setup
12+
13+
- uses: edgedb/setup-edgedb@v1
14+
15+
- name: Schema Migrations In Sync
16+
run: edgedb migration status
17+
18+
- name: Validate seed scripts are error free
19+
run: yarn edgedb:seed
20+
shell: bash

.github/workflows/lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Node Setup & Yarn Install
1616
uses: ./.github/actions/setup
1717

18+
- name: EdgeDB Setup
19+
uses: ./.github/actions/edgedb-setup
20+
1821
- name: Check for no duplicate dependencies
1922
run: yarn dedupe --check
2023

0 commit comments

Comments
 (0)