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

feat(cli): add CDR metadata to GraphQL json schema #4975

Merged
merged 1 commit into from
Oct 17, 2023
Merged

Conversation

ricokahler
Copy link
Contributor

@ricokahler ricokahler commented Oct 4, 2023

Description

The following PR adds CDR metadata to the GraphQL json schema to enable CDR support in the gatsby-source-sanity plugin.

There's a new key under the ConvertedType interface labeled crossDatasetReferenceMetadata that includes the dataset name and the type names.

Important note: Our graphql service must be updated before this gets merged else all GraphQL deployments with crossDatasetReferences will fail because of the extra key.

Fixes SDX-768
Fixes SDX-765

What to review

See the updated types and tests to see how the GraphQL JSON schema will change.

Notes for release

N/A (more of an internal add for the time being)

@ricokahler ricokahler requested a review from rexxars October 4, 2023 22:55
@vercel
Copy link

vercel bot commented Oct 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview Oct 4, 2023 10:55pm
test-studio ✅ Ready (Inspect) Visit Preview Oct 4, 2023 10:55pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Oct 4, 2023 10:55pm

@ricokahler ricokahler requested a review from binoy14 October 4, 2023 22:55
@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2023

No changes to documentation

@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2023

Component Testing Report Updated Oct 4, 2023 11:01 PM (UTC)

File Status Duration Passed Skipped Failed
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 8s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 11s 3 0 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 11s 6 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 15s 9 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 49s 18 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 11s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 7s 3 0 0

@bjoerge bjoerge force-pushed the next branch 2 times, most recently from e7bf4c3 to 4151f2e Compare October 9, 2023 11:02
@binoy14 binoy14 marked this pull request as ready for review October 12, 2023 21:08
@binoy14 binoy14 self-requested a review October 12, 2023 21:08
Copy link
Contributor

@binoy14 binoy14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tested it and everything works great!

@rexxars rexxars added this pull request to the merge queue Oct 17, 2023
Merged via the queue into next with commit cb80240 Oct 17, 2023
14 checks passed
@rexxars rexxars deleted the feat/cdr-metadata branch October 17, 2023 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants