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

Refactor GraphQL*Type TS types to be more DRY #3598

Merged
merged 1 commit into from
May 19, 2022

Conversation

yaacovCR
Copy link
Contributor

Motivation:

  1. Makes it easier to understand the type hierarchy.
  2. Adding a new type, were it ever to happen, would require fewer code changes.

Depends on #3597

@netlify
Copy link

netlify bot commented May 19, 2022

👷 Deploy request for compassionate-pike-271cb3 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bbf800b

@github-actions
Copy link

Hi @yaacovCR, I'm @github-actions bot happy to help you with this PR 👋

Supported commands

Please post this commands in separate comments and only one per comment:

  • @github-actions run-benchmark - Run benchmark comparing base and merge commits for this PR
  • @github-actions publish-pr-on-npm - Build package from this PR and publish it on NPM

@yaacovCR yaacovCR requested a review from a team May 19, 2022 17:56
@yaacovCR yaacovCR added the PR: polish 💅 PR doesn't change public API or any observed behaviour label May 19, 2022
Copy link
Member

@IvanGoncharov IvanGoncharov left a comment

Choose a reason for hiding this comment

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

Adding a new type, were it ever to happen, would require fewer code changes.

I would say chances are close to zero. But who knows.

Overall I think it's an improvement.

P.S. "stacked" PRs are not mandatory if the overall size of PR is small like here. Just create separate commits and merge PR with "merge and rebase". One caveat, if you do that please don't do fix as separate commits (e.g. add tests, review fixes, improve coverage) please update commits directly using git rebase -i

Motivation:
1.  Makes it easier to understand the type hierarchy.
2. Adding a new type, were it ever to happen, would require fewer code changes.

Depends on graphql#3597
@yaacovCR yaacovCR merged commit b97fe0a into graphql:main May 19, 2022
@yaacovCR yaacovCR deleted the dry-more branch May 19, 2022 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: polish 💅 PR doesn't change public API or any observed behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants