fix(graphql_analyze): also flag duplicate fields within extensions#9869
fix(graphql_analyze): also flag duplicate fields within extensions#9869
Conversation
🦋 Changeset detectedLatest commit: 8753a03 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Merging this PR will not alter performance
Comparing Footnotes
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe GraphQL linter rules were broadened to consider type, interface and input extensions when checking for duplicate field names. The Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.changeset/tender-owls-arrive.md:
- Line 5: Update the changeset description to include a user-facing link to the
rule documentation instead of plain code formatting: reference the rule name
"noDuplicateFieldDefinitionNames" as a markdown link to its docs (e.g.
[noDuplicateFieldDefinitionNames](https://your-docs-site/.../noDuplicateFieldDefinitionNames)),
and if this is a bug fix also reference the issue with a link (e.g. Fixed
[`#4444`](...)); ensure the sentence reads like user-facing copy rather than
inline code and replace the current backticked rule name with the linked form.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: f1599cad-3f9d-4639-91be-d7d5bf1f96f9
⛔ Files ignored due to path filters (2)
crates/biome_graphql_analyze/tests/specs/nursery/noDuplicateFieldDefinitionNames/invalid.graphql.snapis excluded by!**/*.snapand included by**crates/biome_graphql_analyze/tests/specs/nursery/noDuplicateFieldDefinitionNames/valid.graphql.snapis excluded by!**/*.snapand included by**
📒 Files selected for processing (5)
.changeset/tender-owls-arrive.mdcrates/biome_graphql_analyze/src/lint/nursery/no_duplicate_field_definition_names.rscrates/biome_graphql_analyze/src/lint/nursery/no_root_type.rscrates/biome_graphql_analyze/tests/specs/nursery/noDuplicateFieldDefinitionNames/invalid.graphqlcrates/biome_graphql_analyze/tests/specs/nursery/noDuplicateFieldDefinitionNames/valid.graphql
Summary
Flag duplicate fields within graphql type extensions, interface extensions & input extensions. Not cross definitions & extensions yet, opened a ticket for that, but is blocked by the schema service
Saw parsing issue in another rule's snapshot & added
Any*in front of unionTest Plan
Unit tests
Docs