apollographql / apollo-kotlin

:rocket:  A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform.
https://www.apollographql.com/docs/kotlin
MIT License
3.76k stars 655 forks source link

[IJ Plugin] Rename related generated code when renaming an Operation/Fragment #6227

Closed BoD closed 3 weeks ago

BoD commented 3 weeks ago

Fix #6220

We previously tried to rename the references only, but this only works if the new name is suffixed by Query etc, because we don't have a way to specify a name per reference.

So now instead we rename the generated code (which will rename the references). That works, but a side effect is a warning about files changed on disk. A bit annoying but acceptable.

https://github.com/user-attachments/assets/54f462d4-7950-475e-8029-bbc280193d63

svc-apollo-docs commented 3 weeks ago

✅ Docs Preview Ready

No new or changed pages found.

netlify[bot] commented 3 weeks ago

Deploy Preview for apollo-android-docs canceled.

Name Link
Latest commit dcb320708d3689c8f5d4fa00a217c54adb453d5e
Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/6720bf90998e3f0008b80c08