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

fix(api): Do not cache server responses when refreshing API defs #225

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

wdullaer
Copy link
Contributor

@wdullaer wdullaer commented Nov 2, 2023

Also ignores any CLI or env parameters passed in when querying for API definitions: only profile specified params are used.

I also took the liberty of refactoring how the options work.

Final note: the tests timeout when ran natively on mac silicon (at least on my machine). They pass in a ubuntu VM.

Fixes #216

Also ignores any CLI or env parameters passed in when querying
for API definitions: only profile specified params are used.

Fixes danielgtaylor#216
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #225 (13fe1aa) into main (c4befd0) will decrease coverage by 0.02%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #225      +/-   ##
==========================================
- Coverage   76.92%   76.90%   -0.02%     
==========================================
  Files          26       26              
  Lines        3666     3663       -3     
==========================================
- Hits         2820     2817       -3     
  Misses        639      639              
  Partials      207      207              
Files Coverage Δ
cli/api.go 72.80% <100.00%> (-0.43%) ⬇️
cli/request.go 68.04% <72.00%> (+0.62%) ⬆️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4befd0...13fe1aa. Read the comment docs.

@danielgtaylor danielgtaylor self-assigned this Nov 2, 2023
@danielgtaylor danielgtaylor added the bug Something isn't working label Nov 2, 2023
Copy link
Owner

@danielgtaylor danielgtaylor left a comment

Choose a reason for hiding this comment

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

Sorry for the delay! I did a bunch of testing of this code and it looks great, thank you so much! 🚀

@danielgtaylor danielgtaylor merged commit 2db8c10 into danielgtaylor:main Dec 14, 2023
2 of 4 checks passed
@wdullaer
Copy link
Contributor Author

No worries, I know you will get to these eventually.
Thanks again for all the work on restish. It's a joy to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refreshing API definition interacts strangely with CLI flags and CachedTransport
2 participants