Skip to content

Commit 55244e0

Browse files
committed
Merge branch 'main' of github.com:graphql-hive/console into feat/lab-query-plan
2 parents b71eb76 + 84043d9 commit 55244e0

38 files changed

Lines changed: 1130 additions & 565 deletions

File tree

.changeset/loud-mammals-clean.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,4 @@ Cargo.lock
160160
Cargo.lock
161161
Cargo.lock
162162
Cargo.lock
163+
Cargo.lock

deployment/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# hive
22

3+
## 11.0.2
4+
5+
### Patch Changes
6+
7+
- [#7940](https://github.com/graphql-hive/console/pull/7940)
8+
[`742f50c`](https://github.com/graphql-hive/console/commit/742f50c52e846ab63843635c6f408016a30f6288)
9+
Thanks [@jdolle](https://github.com/jdolle)! - Fix lint policy block title color; add policy link
10+
to lines and rule id tooltip
11+
12+
- [#7936](https://github.com/graphql-hive/console/pull/7936)
13+
[`96bd390`](https://github.com/graphql-hive/console/commit/96bd390c7ffa75baf7db0c0bb3a3117c6ef6f631)
14+
Thanks [@jdolle](https://github.com/jdolle)! - Do not cache edge types in graphql eslint. This
15+
fixes an issue where edge types were cached between runs and only the cached edge types would be
16+
referenced for subsequent runs
17+
318
## 11.0.1
419

520
### Patch Changes

deployment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hive",
3-
"version": "11.0.1",
3+
"version": "11.0.2",
44
"private": true,
55
"scripts": {
66
"generate": "tsx generate.ts",

deployment/services/proxy.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,13 @@ export function deployProxy({
9696
service: graphql.service,
9797
requestTimeout: '60s',
9898
retriable: true,
99-
rateLimit: {
100-
maxRequests: 10,
101-
unit: 'minute',
102-
},
10399
},
104100
{
105101
name: 'usage',
106102
path: '/usage',
107103
service: usage.service,
108104
retriable: true,
105+
loadBalancerPolicy: 'WeightedLeastRequest',
109106
},
110107
])
111108
.registerService({ record: environment.apiDns }, [

deployment/utils/reverse-proxy.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ export class Proxy {
8484
requestTimeout?: `${number}s` | 'infinity';
8585
idleTimeout?: `${number}s`;
8686
retriable?: boolean;
87+
loadBalancerPolicy?:
88+
| 'WeightedLeastRequest'
89+
| 'RoundRobin'
90+
| 'Random'
91+
| 'RequestHash'
92+
| 'Cookie';
8793
customRewrite?: string;
8894
virtualHost?: Output<string>;
8995
httpsUpstream?: boolean;
@@ -153,9 +159,9 @@ export class Proxy {
153159
port: route.service.spec.ports[0].port,
154160
},
155161
],
156-
// https://projectcontour.io/docs/1.29/config/request-routing/#session-affinity
162+
// https://projectcontour.io/docs/1.31/config/request-routing/
157163
loadBalancerPolicy: {
158-
strategy: 'Cookie',
164+
strategy: route.loadBalancerPolicy ?? 'RoundRobin',
159165
},
160166
// https://projectcontour.io/docs/1.29/config/rate-limiting/#local-rate-limiting
161167
rateLimitPolicy: route.rateLimit

integration-tests/testkit/seed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export function initSeed() {
353353
const result = await pool.any(psql`
354354
UPDATE "organization_access_tokens"
355355
SET "expires_at" = NOW()
356-
WHERE id IN (${psql.join(tokenIds, psql`, `)}) AND organization_id = ${organization.id}
356+
WHERE id IN (${psql.join(tokenIds, psql.fragment`, `)}) AND organization_id = ${organization.id}
357357
RETURNING
358358
"id"
359359
`);

integration-tests/tests/api/organization/members.spec.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { pollFor } from 'testkit/flow';
12
import { graphql } from 'testkit/gql';
23
import { ResourceAssignmentModeType } from 'testkit/gql/graphql';
34
import { execute } from 'testkit/graphql';
@@ -115,15 +116,19 @@ test.concurrent('cannot delete a role with members', async ({ expect }) => {
115116
test.concurrent('email invitation', async ({ expect }) => {
116117
const seed = initSeed();
117118
const { createOrg } = await seed.createOwner();
118-
const { inviteMember } = await createOrg();
119+
const { inviteMember, organization } = await createOrg();
119120

120121
const inviteEmail = seed.generateEmail();
121122
const invitationResult = await inviteMember(inviteEmail);
122123
const inviteCode = invitationResult.ok?.createdOrganizationInvitation.code;
123124
expect(inviteCode).toBeDefined();
124125

125-
const sentEmails = await history();
126-
expect(sentEmails).toContainEqual(expect.objectContaining({ to: inviteEmail }));
126+
await pollFor(async () => {
127+
const sentEmails = await history(inviteEmail);
128+
return sentEmails.length > 0;
129+
});
130+
const sentEmails = await history(inviteEmail);
131+
expect(sentEmails[0].subject).toEqual('You have been invited to join ' + organization.slug);
127132
});
128133

129134
test.concurrent('can not invite with role not existing in organization', async ({ expect }) => {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@
175175
"eslint@8.57.1": "patches/eslint@8.57.1.patch",
176176
"@graphql-eslint/eslint-plugin@3.20.1": "patches/@graphql-eslint__eslint-plugin@3.20.1.patch",
177177
"got@14.4.7": "patches/got@14.4.7.patch",
178-
"slonik@30.4.4": "patches/slonik@30.4.4.patch",
179178
"@oclif/core@3.26.6": "patches/@oclif__core@3.26.6.patch",
180179
"oclif": "patches/oclif.patch",
181180
"graphiql": "patches/graphiql.patch",
@@ -184,7 +183,9 @@
184183
"p-cancelable@4.0.1": "patches/p-cancelable@4.0.1.patch",
185184
"bentocache": "patches/bentocache.patch",
186185
"@graphql-codegen/schema-ast": "patches/@graphql-codegen__schema-ast.patch",
187-
"@fastify/vite": "patches/@fastify__vite.patch"
186+
"@fastify/vite": "patches/@fastify__vite.patch",
187+
"@slonik/pg-driver": "patches/@slonik__pg-driver.patch",
188+
"slonik": "patches/slonik.patch"
188189
},
189190
"onlyBuiltDependencies": [
190191
"msw"

packages/internal/postgres/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
".": "./src/index.ts"
88
},
99
"dependencies": {
10-
"slonik": "30.4.4",
11-
"slonik-interceptor-query-logging": "46.4.0"
10+
"@standard-schema/spec": "1.0.0",
11+
"slonik": "48.13.2",
12+
"slonik-interceptor-query-logging": "48.13.2",
13+
"slonik-sql-tag-raw": "48.13.2",
14+
"zod": "3.25.76"
1215
},
1316
"devDependencies": {
1417
"@hive/service-common": "workspace:*"

0 commit comments

Comments
 (0)