Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
caf901f
Initial schema and pg tables for schema proposals feature
jdolle Jun 3, 2025
418dfdc
Connections everywhere
jdolle Jun 3, 2025
1c53535
Remove crypto imports
jdolle Jun 3, 2025
6b1ee95
Add migration import
jdolle Jun 3, 2025
3147e5a
fix migration syntax
jdolle Jun 3, 2025
4eb5b89
Generate types
jdolle Jun 3, 2025
f7f22b9
Add schema coordinate to proposal review
jdolle Jun 11, 2025
ff481e9
Merge branch 'main' into schema-proposals-schema
jdolle Jun 14, 2025
47b7607
Merge branch 'main' into schema-proposals-schema
jdolle Jun 14, 2025
7098780
Fix types
jdolle Jun 14, 2025
cae00ef
Schema proposals UI list (#6842)
jdolle Jun 16, 2025
1857d61
WIP
jdolle Jun 20, 2025
16fe4a2
WIP
jdolle Jun 25, 2025
5241a18
WIP
jdolle Jun 26, 2025
ddc197e
WIP patch
jdolle Jul 2, 2025
c04ea8e
WIP
jdolle Jul 2, 2025
e055860
Prettier; patch schema
jdolle Jul 3, 2025
21e2275
In order change processing; handle most change types
jdolle Jul 17, 2025
5e0f401
Remove new patch logic; This is moved to inspector's codebase
jdolle Aug 7, 2025
373d882
wip: Begin sdl jsx rendering
jdolle Aug 12, 2025
280dbd8
Support more graphql types in jsx diff printing
jdolle Aug 13, 2025
b9e7ee1
support remaining types etc
jdolle Aug 14, 2025
a584913
Add spacing between elements; adjust highlighting
jdolle Aug 14, 2025
0dc68b5
Improve color scheme and add highlighting on hover
jdolle Aug 14, 2025
7072e1c
prettier
jdolle Aug 14, 2025
c9d6ee2
Return sample changes and sample schema from api; use local graphql-i…
jdolle Aug 19, 2025
0f158a2
Add more spacing
jdolle Aug 22, 2025
c42e56b
adjust proposal layout; add supergraph and details pages
jdolle Aug 23, 2025
4cc835f
Fix proposal navigation w/pages
jdolle Aug 23, 2025
eaeda8d
Add incompatible and ignored changes to schema page
jdolle Aug 26, 2025
9921cb0
Add detached comments; improve comment ui
jdolle Aug 27, 2025
f1656bb
add todo
jdolle Aug 27, 2025
f8c0465
Adjust navigation to separate list and single proposal pages
jdolle Aug 28, 2025
cc600a9
Rework UI per feedback
jdolle Aug 29, 2025
a18322a
Prettier
jdolle Aug 29, 2025
79557b8
Move to using existing schema checks; implement create, list, and get…
jdolle Aug 31, 2025
d4af710
Implementing resolvers
jdolle Sep 1, 2025
5923550
Add new fields to change serializer
jdolle Sep 2, 2025
c3d167b
Remove log
jdolle Sep 2, 2025
5f4a894
add interface support on schemadiff; add shcema check list
jdolle Sep 2, 2025
0298ac6
Service heading
jdolle Sep 2, 2025
3d2c5f4
Add proposalId to schema check command; fix latest filter sql logic; …
jdolle Sep 3, 2025
0e05df7
add all stages toggle to filter
jdolle Sep 3, 2025
2e5c9fe
Fixed multi service schema rendering
jdolle Sep 3, 2025
a6702b4
Add padding to bottom of details service groups
jdolle Sep 8, 2025
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
2 changes: 1 addition & 1 deletion docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ services:

clickhouse:
image: clickhouse/clickhouse-server:24.8-alpine
mem_limit: 2048m
mem_limit: 4096m
environment:
CLICKHOUSE_USER: test
CLICKHOUSE_PASSWORD: test
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
"@graphql-codegen/typescript-resolvers": "4.4.4",
"@graphql-codegen/urql-introspection": "3.0.0",
"@graphql-eslint/eslint-plugin": "3.20.1",
"@graphql-inspector/cli": "4.0.3",
"@graphql-inspector/cli": "link:../graphql-inspector/packages/cli",
"@graphql-inspector/core": "file:../graphql-inspector/packages/core",
"@graphql-inspector/patch": "file:../graphql-inspector/packages/patch",
"@manypkg/get-packages": "2.2.2",
"@next/eslint-plugin-next": "14.2.23",
"@parcel/watcher": "2.5.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
extend schema
@link(
url: "https://specs.apollo.dev/federation/v2.3"
import: ["@key", "@shareable", "@inaccessible", "@tag"]
)
@link(url: "https://specs.graphql-hive.com/hive/v1.0", import: ["@meta"])
@meta(name: "priority", content: "tier1")

directive @meta(
name: String!
content: String!
) repeatable on SCHEMA | OBJECT | INTERFACE | FIELD_DEFINITION

type Query {
allProducts: [ProductItf] @meta(name: "owner", content: "hive-team")
product(id: ID!): ProductItf
}

interface ProductItf implements SkuItf @meta(name: "domain", content: "products") {
id: ID!
sku: String
name: String
package: String
variation: ProductVariation
dimensions: ProductDimension
createdBy: User
hidden: String @inaccessible
oldField: String @deprecated(reason: "refactored out")
}

interface SkuItf {
sku: String
}

type Product implements ProductItf & SkuItf
@key(fields: "id")
@key(fields: "sku package")
@key(fields: "sku variation { id }")
@meta(name: "owner", content: "product-team") {
id: ID!
sku: String @meta(name: "unique", content: "true")
name: String
package: String
variation: ProductVariation
dimensions: ProductDimension
createdBy: User
hidden: String
reviewsScore: Float!
oldField: String @deprecated(reason: "Not used any longer")
}

enum ShippingClass {
STANDARD
EXPRESS
}

type ProductVariation {
id: ID!
name: String
}

type ProductDimension @shareable {
size: String
weight: Float
}

type User @key(fields: "email") {
email: ID!
totalProductsCreated: Int @shareable
}
50 changes: 50 additions & 0 deletions packages/libraries/cli/examples/federation.reviews-changes.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
extend schema
@link(
url: "https://specs.apollo.dev/federation/v2.3"
import: ["@key", "@shareable", "@override"]
)
@link(url: "https://specs.graphql-hive.com/hive/v1.0", import: ["@meta"])
@meta(name: "owner", content: "reviews-team")

directive @meta(
name: String!
content: String!
) repeatable on SCHEMA | OBJECT | INTERFACE | FIELD_DEFINITION

type Product implements ProductItf @key(fields: "id") {
id: ID!
reviewsCount: Int!
reviewsScore: Float! @shareable @override(from: "products")
reviews: [Review!]!
}

interface ProductItf {
id: ID!
reviewsCount: Int!
reviewsScore: Float!
reviews: [Review!]!
}

type Query {
review(id: ID!): Review
reviewsByProductId(id: ID!): [Review]
}

type Mutation {
reviewProduct(productId: ID!, input: ReviewProductInput!): Review
}

input ReviewProductInput {
body: String!

"""
Rating on a scale of 0 - 5
"""
rating: Int! = 3
}

type Review {
id: ID!
body: String!
rating: Int!
}
2 changes: 1 addition & 1 deletion packages/libraries/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"dependencies": {
"@graphql-hive/core": "workspace:*",
"@graphql-inspector/core": "5.1.0-alpha-20231208113249-34700c8a",
"@graphql-inspector/core": "file:../../../../graphql-inspector/packages/core",
"@graphql-tools/code-file-loader": "~8.1.0",
"@graphql-tools/graphql-file-loader": "~8.0.0",
"@graphql-tools/json-file-loader": "~8.0.0",
Expand Down
Loading