sanity icon indicating copy to clipboard operation
sanity copied to clipboard

fix(cli): graphql api flag is respected during validation

Open mwain opened this issue 1 year ago • 4 comments

Description

During GraphQL deployment we validate APIs have unique dataset/tag. This check wasn't respecting the --api CLI flag.

Ref CLDX-2142

What to review

  • Test the graphql deploy command
  • Is this behaviour expected?

Testing

Tested locally with various GQL API configs, and command line args

Notes for release

mwain avatar May 09 '24 18:05 mwain

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

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 2:32pm
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 2:32pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 2:32pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 2:32pm

vercel[bot] avatar May 09 '24 18:05 vercel[bot]

No changes to documentation

github-actions[bot] avatar May 09 '24 18:05 github-actions[bot]

Component Testing Report Updated May 21, 2024 2:38 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 40s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 26s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 32s 11 7 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 14s 6 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 37s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 18s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 7s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 8s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 21s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 15s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 31s 12 0 0

github-actions[bot] avatar May 09 '24 18:05 github-actions[bot]

Changes makes sense to me. Although is it possible to add some tests for this? looks like there are already some tests here for graphql cli.

Im not sure, i would need to update the graphql config to add a new api definition, but then the other test will also deploy 2 apis

mwain avatar May 09 '24 20:05 mwain

Rebased on origin/next

mwain avatar May 14 '24 17:05 mwain

Hello @mwain! When will this be released? The customer asked :)

bobinska-dev avatar May 21 '24 12:05 bobinska-dev