This repository was archived by the owner on Jun 11, 2025. It is now read-only.
fix: gateway supergraph build script updates#296
Merged
Conversation
There was a problem hiding this comment.
Hey @nxtcoder17 - I've reviewed your changes and they look great!
General suggestions:
- Consider validating the 'out' variable in the generate-schema.sh script to ensure it handles paths with spaces or special characters gracefully.
- Review the changes to ensure that the dynamic output path for the schema generation does not introduce any unexpected behavior in different environments.
- Ensure that the removal of the Generate Schema step in the GitHub workflow does not impact other dependent processes or workflows.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Docstrings: all looks good
Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨
| cat ../message-office/internal/app/graph/*.graphqls >./schemas/message-office-api.schema | ||
|
|
||
| rover supergraph compose --config ./supergraph.yml --output prod-schema.graphql --elv2-license accept | ||
| rover supergraph compose --config ./supergraph.yml --output "$out" --elv2-license accept |
There was a problem hiding this comment.
suggestion (code_refinement): It's good practice to quote shell variables to prevent globbing and word splitting. However, ensure that the variable out is always expected to be a single word or path without spaces, or this could lead to unexpected behavior.
Suggested change
| rover supergraph compose --config ./supergraph.yml --output "$out" --elv2-license accept | |
| if [[ "$out" =~ \ |\' ]]; then | |
| echo "Error: The output path ('out') contains spaces or single quotes, which might cause unexpected behavior." | |
| exit 1 | |
| fi | |
| rover supergraph compose --config ./supergraph.yml --output "$out" --elv2-license accept |
abdheshnayak
pushed a commit
that referenced
this pull request
Nov 5, 2024
fix: gateway supergraph build script updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.