Skip to content

Improve GraphQL union types formatting #15870

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

Merged
merged 8 commits into from
Jan 7, 2024

Conversation

ArchitGajjar
Copy link
Contributor

@ArchitGajjar ArchitGajjar commented Jan 3, 2024

Description

Issue: 14234 - Improve GraphQL union types formatting

Fixes #14234

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@fisker fisker changed the title Fix/issue 14234 - Improve GraphQL union types formatting Improve GraphQL union types formatting Jan 3, 2024
Copy link
Member

@fisker fisker left a comment

Choose a reason for hiding this comment

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

Changes looks good, Can you add changelog entry?

@ArchitGajjar
Copy link
Contributor Author

@fisker added changes. Thank you for your feedback

@ArchitGajjar ArchitGajjar requested a review from fisker January 3, 2024 23:13
@ArchitGajjar
Copy link
Contributor Author

Thank you @fisker for reviewing and approving. is this PR good to merge ?

@fisker
Copy link
Member

fisker commented Jan 4, 2024

Let's wait for other maintainers to review, please be patient.

@sosukesuzuki
Copy link
Member

Code changes looks good to me, but I concern for #14234 (comment). We should treat this as a breaking change.

@fisker
Copy link
Member

fisker commented Jan 6, 2024

It has been supported for 6 years, I think we can merge this.

@ArchitGajjar
Copy link
Contributor Author

Yes, 6 years of gap is huge amount of time.

I noticed graphQL version v0.10.3 had published with leading pipe schema changes in 2017.

Recently, GraphQL version v16.8.1 published Sept 2023. The gap between major versions 0.10.x to 16.x.x is also huge.

Copy link
Member

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

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

I got it. Thank you for working on this!

@sosukesuzuki sosukesuzuki merged commit 5cae451 into prettier:main Jan 7, 2024
@ArchitGajjar ArchitGajjar deleted the fix/issue-14234 branch January 7, 2024 17:35
@ArchitGajjar
Copy link
Contributor Author

Thank you @fisker & @sosukesuzuki for reviewing this PR. This was my first contribution to Prettier, please feel free to tag me or assign me any other bug/feature/enhancement tickets, I would be very happy to help.

medikoo pushed a commit to medikoo/prettier-elastic that referenced this pull request Feb 17, 2024
* Fix:14234 added fix for formating graphql union type

* Fix:14234 clean up code and push the fix

* Fix:14234 added test cases

* Fix:14234 added changelog entry

* Fix:14234 cleanup changelog entry

* Fix:14234 cleanup changelog

* Update changelog_unreleased/graphql/15870.md

* Update changelog_unreleased/graphql/15870.md

---------

Co-authored-by: fisker Cheung <[email protected]>
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.

Improve GraphQL union types formatting
3 participants