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

Schema type renaming #276

Merged
merged 27 commits into from
Jun 7, 2024

Conversation

BobaFetters
Copy link
Member

@BobaFetters BobaFetters commented Feb 17, 2024

Adds the ability to customize names of schema types using the configurations options added in #242

Copy link

netlify bot commented Feb 17, 2024

Deploy Preview for eclectic-pie-88a2ba canceled.

Name Link
🔨 Latest commit bc49804
🔍 Latest deploy log https://app.netlify.com/sites/eclectic-pie-88a2ba/deploys/65d7870df5e14d000846e173

@BobaFetters BobaFetters changed the base branch from main to codegen-delete-ccn February 22, 2024 17:42
@BobaFetters BobaFetters changed the base branch from codegen-delete-ccn to feature/rename-schema-types February 22, 2024 17:42
@BobaFetters
Copy link
Member Author

Updated this draft with the initial pass at the new IR types to represent the schema types, all changes are under the IR source folder, everything else is left over from previous iteration that will be removed/changed

Redid the new name handling to be on existing GraphQL schema type objects in GraphQLCompiler instead of new IR objects.
…e-types

# Conflicts:
#	apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/InterfaceTemplate.swift
@BobaFetters
Copy link
Member Author

Have this updated with what should be the final implementation for handling schema type renaming after going through a few iterations. Moving on to implementing tests now and will see from there if any further tweaks are needed.

…e-types

# Conflicts:
#	apollo-ios-codegen/Sources/ApolloCodegenLib/Templates/RenderingHelpers/GraphQLNamedType+NameFormatting.swift
#	apollo-ios-codegen/Sources/GraphQLCompiler/GraphQLSchema.swift
@BobaFetters BobaFetters marked this pull request as ready for review June 4, 2024 18:44
@BobaFetters BobaFetters changed the title [DRAFT] Schema type renaming Schema type renaming Jun 4, 2024
Copy link
Contributor

@AnthonyMDev AnthonyMDev left a comment

Choose a reason for hiding this comment

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

This is looking great! Just a few suggestions. Thanks for the work on this @BobaFetters .

Copy link
Contributor

Choose a reason for hiding this comment

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

This is really clean. Nice job!

apollo-ios-codegen/Sources/IR/IR+EntitySelectionTree.swift Outdated Show resolved Hide resolved
BobaFetters and others added 2 commits June 5, 2024 18:57
Co-authored-by: Anthony Miller <anthonymdev@gmail.com>
BobaFetters and others added 4 commits June 6, 2024 17:33
…late.swift

Co-authored-by: Anthony Miller <anthonymdev@gmail.com>
…gHelpers/GraphQLName+RenderingHelper.swift

Co-authored-by: Anthony Miller <anthonymdev@gmail.com>
@BobaFetters BobaFetters dismissed AnthonyMDev’s stale review June 7, 2024 18:08

Feedback Addressed

@BobaFetters BobaFetters requested a review from AnthonyMDev June 7, 2024 18:08
Copy link
Contributor

@AnthonyMDev AnthonyMDev left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks for all the work on this Zach. This is going to resolve so many problems for so many users going forward!

@BobaFetters BobaFetters merged commit 2892072 into feature/rename-schema-types Jun 7, 2024
17 checks passed
@BobaFetters BobaFetters deleted the feature/codegen-rename-types branch June 7, 2024 22:59
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