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
Make content-type response checks on '/versions` endpoint optional #670
Conversation
de34aad
to
2cccd7a
Compare
Codecov Report
@@ Coverage Diff @@
## master #670 +/- ##
==========================================
+ Coverage 93.30% 93.58% +0.28%
==========================================
Files 61 61
Lines 3300 3306 +6
==========================================
+ Hits 3079 3094 +15
+ Misses 221 212 -9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Any objection to me using this PR to disable the codecov status checks appearing in GH actions? We'd still get the coverage report as comment, which is more useful. It's annoying seeing the ❌ on the main repo page for 0.005% coverage drops, I don't think they ever fixed the problems with the |
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.
Looks alright. Any way to test it?
Also, the two different parts of this PR (validator fix and codecov change) should be merged as a separate commit each.
The suggested changes here are not critical, and even if rejected it can still be merged, hence the approval. If it's updated, I'll approve right away.
Well it now passes for the netlify preview (showing the optional failure) and still passes on all implementations that already had the headers, so think we're okay. |
162f957
to
25cf7bf
Compare
Ah you ran it locally for the providers PR? Great! I mean.. it's not a real "test" ... but it'll do ;) |
You can merge from the CLI (using |
Panic reverted this to a draft, following the discussion: |
acbb026
to
ed09680
Compare
Right, reworked it slightly to allow for this mixed requirement... hopefully no major issues! |
ed09680
to
1987f3f
Compare
1987f3f
to
4f6d15b
Compare
c9af7d0
to
58502b1
Compare
Removing the codecov changes here as #672 fixes the threshold for GH status checks |
58502b1
to
d9b48e6
Compare
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.
Very minor clarifications of error messages.
Still missing a test 😅 (can be merged without, no worries).
I was actually writing one before I was rudely interrupted by a meeting... you'll see how convoluted it is, even for this simple endpoint, though perhaps this is the most important one to test due to the lack of pydantic models. |
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.
Just adding all investigated counts for all tests.
And great work on the test!!
3e89cd8
to
fe9a910
Compare
Resolved and rebased back into one commit, should be good to go! Probably worth a release after this too. |
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.
Merge away if all checks succeed 👍
Closes #668 and closes #669.
/versions
endpoint validation.header=present
and media type parameters of theContent-Type
header of/versions
completely optional.