-
Notifications
You must be signed in to change notification settings - Fork 167
refactor(consume): avoid github api calls for direct url fixture inputs #1788
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
Conversation
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.
Thanks! Some small tweaks/suggestions on the docs below :)
We should maybe rename from --no-api-calls
to something else, like --reduced/suppress-api-calls
, regarding this section:
- ❌ Version specifiers always require API calls, e.g. `--input=stable@latest` (the flag is ignored).
Co-authored-by: spencer <[email protected]>
Remove the --no-api-calls flag and instead make the behavior automatic: - Direct GitHub release URLs: No API calls, no release page output - Release specifiers (stable@latest): API calls required, includes release page This provides better CI/UX without requiring additional flags.
Describe the automatic API call avoidance for direct URLs without mentioning any flags since we implemented automatic behavior.
--no-api-calls
to avoid using the Github API with release URL inputs
From @spencer-tb offline:
This suggestion makes much more sense, so I updated this PR to go with that! |
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.
LGTM! Just a couple docs nits.
Co-authored-by: spencer <[email protected]>
…ts (#1788) * feat(consume): add `--no-api-calls` flag for --input=<github-release-url> * docs(consume): update consume cache docs for the `--no-api-calls` flag * docs(hive): align sub-section title style * docs: update changelog * Apply suggestions from code review Co-authored-by: spencer <[email protected]> * refactor(consume): simplify API behavior for direct URLs Remove the --no-api-calls flag and instead make the behavior automatic: - Direct GitHub release URLs: No API calls, no release page output - Release specifiers (stable@latest): API calls required, includes release page This provides better CI/UX without requiring additional flags. * docs(changelog): update consume API behavior entry Describe the automatic API call avoidance for direct URLs without mentioning any flags since we implemented automatic behavior. * Apply suggestions from code review Co-authored-by: spencer <[email protected]> --------- Co-authored-by: spencer <[email protected]>
🗒️ Description
Simplified
consume
API behavior: Direct GitHub release URLs now automatically avoid GitHub API calls (better for CI), while release specifiers likestable@latest
continue to use the API.🔗 Related Issues
None
✅ Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.