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

[IJ Plugin] Operation and fragment definition rename #5912

Merged
merged 4 commits into from
May 27, 2024

Conversation

BoD
Copy link
Contributor

@BoD BoD commented May 22, 2024

When renaming an operation or fragment, also rename its containing file (if it already had the same name). Also rename corresponding usage in Kotlin code.

Note: renaming a fragment also impacts the generated synthetic field name - for now this isn't handled. Not sure if it's doable - will track in dedicated ticket.

Screen.Recording.2024-05-22.at.17.57.35.mov

Resolves #5040

@BoD BoD requested a review from martinbonnin as a code owner May 22, 2024 16:07
Copy link

netlify bot commented May 22, 2024

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 507268b
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/664e1829662b960008c666fe

@BoD BoD merged commit d8004d6 into main May 27, 2024
9 checks passed
@BoD BoD deleted the ij-plugin-rename-operation branch May 27, 2024 08:56
BoD added a commit to BoD/apollo-kotlin that referenced this pull request Jul 1, 2024
)

* Add GraphQLOperationRenameProcessor

* Rename code references

* Add support for Fragments

* Tweak name
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.

[IJ/AS plugin] Operation renaming improvement
2 participants