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] Add inspection to warn about the presence of a GraphQL config file #5908

Merged
merged 7 commits into from
May 29, 2024

Conversation

BoD
Copy link
Contributor

@BoD BoD commented May 20, 2024

Also remove GraphQL config files when migrating v3 -> v4.

Fix for #5887

Screenshot 2024-05-20 at 19 44 13 Screenshot 2024-05-20 at 19 43 56

@BoD BoD requested a review from martinbonnin as a code owner May 20, 2024 17:47
Copy link

netlify bot commented May 20, 2024

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 497f0b2
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/6655a928a134b500087bc627

@BoD BoD changed the title Add inspection to warn about the presence of a GraphQL config file [IJ Plugin] Add inspection to warn about the presence of a GraphQL config file May 21, 2024
groupKey="inspection.group.graphql.apolloKotlin"
key="inspection.graphQLConfigFilePresent.displayName"
enabledByDefault="true"
level="ERROR"
Copy link
Contributor

Choose a reason for hiding this comment

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

If it is not needed but doesn't harm it should be a warning.

Suggestion:

Apollo Kotlin 4 uses the Gradle tooling API to retrieve the GraphQL configuration and doesn't use the GraphQL config file.

If it's an actual error, ERROR is fine of course but sounds like there is a disconnect between the message and the level here.

@BoD BoD force-pushed the ij-plugin-graphqlconfig-file-present branch from 829964e to c525036 Compare May 27, 2024 09:38
@BoD BoD force-pushed the ij-plugin-graphqlconfig-file-present branch from c525036 to 88a4f66 Compare May 27, 2024 12:31
@BoD BoD force-pushed the ij-plugin-graphqlconfig-file-present branch from 88a4f66 to 91dd7e6 Compare May 27, 2024 12:55
…loGraphQLConfigFilePresent.html

Co-authored-by: Martin Bonnin <martin@mbonnin.net>
@BoD BoD merged commit 3bd84c7 into main May 29, 2024
9 checks passed
@BoD BoD deleted the ij-plugin-graphqlconfig-file-present branch May 29, 2024 07:26
BoD added a commit to BoD/apollo-kotlin that referenced this pull request Jul 1, 2024
…nfig file (apollographql#5908)

* Add inspection to warn about the presence of a GraphQL config file

* Add v3 -> v4 migration to delete GraphQL config files

* Add tests

* Tweak wording

* Change severity to warning and tweak messages

* Fix test

* Update intellij-plugin/src/main/resources/inspectionDescriptions/ApolloGraphQLConfigFilePresent.html

Co-authored-by: Martin Bonnin <martin@mbonnin.net>

---------

Co-authored-by: Martin Bonnin <martin@mbonnin.net>
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.

2 participants