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

feature: Add suffix to schema type filenames #580

Merged
merged 11 commits into from
Jan 22, 2025

Conversation

calvincestari
Copy link
Member

Fixes apollographql/apollo-ios#2598.

Users now have the codegen configuration option (appendSchemaTypeFilenameSuffix) to have a suffix added to their schema type filenames. This will help resolve problems in Xcode where the name of a schema type and operation type are the same causing a build error.

This new config option has a default value of false which means this should have no effect on users without the filename conflict error.

Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for eclectic-pie-88a2ba ready!

Name Link
🔨 Latest commit 5743c59
🔍 Latest deploy log https://app.netlify.com/sites/eclectic-pie-88a2ba/deploys/678af5754c105700080dd6b2
😎 Deploy Preview https://deploy-preview-580--eclectic-pie-88a2ba.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Jan 16, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 1 changed, 0 removed
* (developer-tools)/ios/(latest)/code-generation/codegen-configuration.mdx

Build ID: 9d04abe4e703ef5acab42d0d

URL: https://www.apollographql.com/docs/deploy-preview/9d04abe4e703ef5acab42d0d

Copy link

netlify bot commented Jan 16, 2025

Deploy Preview for apollo-ios-docc canceled.

Name Link
🔨 Latest commit 5743c59
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docc/deploys/678af575f9e6a0000869136d

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.

Just one issue to be resolved with the way the editable generated files are handled.

We also need to add this new option to the documentation (not just the generated docs).

@calvincestari
Copy link
Member Author

calvincestari commented Jan 16, 2025

This PR already updated the codegen configuration documentation - Here it is in the docs preview for this PR. Is there another place in the docs to update?

I'll take a look at the other two review comments now..

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.

Thanks for making the changes! LGTM

@calvincestari calvincestari merged commit c919452 into main Jan 22, 2025
35 checks passed
@calvincestari calvincestari deleted the feature/filename-suffix branch January 22, 2025 21:02
BobaFetters pushed a commit to apollographql/apollo-ios-codegen that referenced this pull request Jan 22, 2025
BobaFetters pushed a commit that referenced this pull request Jan 22, 2025
92f94b4d feature: Add suffix to schema type filenames (#580)

git-subtree-dir: apollo-ios-codegen
git-subtree-split: 92f94b4d9556b71359fbe7a55c5bcdb6bc3249c0
BobaFetters pushed a commit that referenced this pull request Jan 22, 2025
…ype filenames

git-subtree-dir: apollo-ios-codegen
git-subtree-mainline: 6501841
git-subtree-split: 92f94b4d9556b71359fbe7a55c5bcdb6bc3249c0
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.

CodegenCLI - File name collision if Fragment has the same name as Type
4 participants