-
Notifications
You must be signed in to change notification settings - Fork 335
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
fix: correct graphql.config.js #10582
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Matt Krick <[email protected]>
WalkthroughThe changes involve updates to the Changes
Possibly related PRs
Suggested labels
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
.vscode/extensions.json (1)
9-11
: Consider maintaining alphabetical orderThe extensions list was previously alphabetically ordered. Consider reordering the new extensions:
- "yzhang.markdown-all-in-one", - "GraphQL.vscode-graphql", - "GraphQL.vscode-graphql-syntax" + "GraphQL.vscode-graphql", + "GraphQL.vscode-graphql-syntax", + "yzhang.markdown-all-in-one"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
.vscode/extensions.json
(1 hunks)graphql.config.js
(1 hunks)
🔇 Additional comments (4)
.vscode/extensions.json (1)
10-11
: LGTM! Good addition of GraphQL extensions
The addition of official GraphQL extensions will improve the development experience with better GraphQL support.
graphql.config.js (3)
3-5
: LGTM! Updated to modern GraphQL config format
The configuration has been correctly updated to use the modern format with schema
and documents
properties.
6-8
: Verify the necessity of the exclude pattern
The comment indicates uncertainty about the exclude pattern. Let's verify if this is actually needed.
✅ Verification successful
Based on the output, I can now generate the final response since we have clear evidence about the usage of Relay fragments in the client directory.
The exclude pattern is necessary - keep it
The exclude pattern ./packages/client/**/*
is indeed necessary as the codebase shows extensive usage of Relay fragments throughout the client directory. The search results revealed:
- Over 200 Relay fragment definitions using
graphql
template literals - Fragments are used for various features like mutations, subscriptions, and component data requirements
- These fragments are handled by the Relay compiler extension, not the base GraphQL config
The comment accurately explains the reason for the exclude pattern - it prevents conflicts between the base GraphQL configuration and Relay's specialized handling of client-side fragments.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check for relay fragments in client directory that might conflict
echo "Checking for GraphQL/Relay fragments in client directory..."
rg -t js -t ts "graphql\`|fragment" ./packages/client
# Check if the relay extension is configured
echo "Checking for relay extension configuration..."
find . -maxdepth 3 -type f -name "relay.config.js"
Length of output: 66844
3-3
: Verify impact of project rename
The project has been renamed from "Parabol" to "server". Let's verify there are no references to the old name.
✅ Verification successful
Based on the search results, I can see that "Parabol" appears extensively throughout the codebase, but primarily in imports, comments, documentation, and configuration files. The change from "Parabol" to "server" in graphql.config.js appears to be an isolated configuration change that only affects the GraphQL project name and does not impact the functionality or references in the actual codebase.
Project rename is safe
The change from "Parabol" to "server" in graphql.config.js is a local configuration change that only affects the GraphQL project name. This change aligns with the package name "parabol-server" and does not require changes elsewhere in the codebase.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Check for references to the old GraphQL project name
echo "Checking for references to 'Parabol' GraphQL project..."
rg -l "graphql.*Parabol" --type=js --type=json
Length of output: 175
Script:
#!/bin/bash
# Let's try a broader search for "Parabol" in configuration files and source code
echo "Searching for 'Parabol' in various file types..."
rg -i "parabol" --type=js --type=json --type=yaml --type=ts
# Also check the graphql config file content
echo -e "\nChecking graphql.config.js content:"
cat graphql.config.js
Length of output: 68348
Description
This uses the latest format for graphql.config.js, so now extensions play nicely, if you want to use them
Summary by CodeRabbit
New Features
Configuration Updates