-
Notifications
You must be signed in to change notification settings - Fork 100
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
feat(gateway): support for order=, dups= parameters from IPIP-412 #370
Conversation
Codecov Report
@@ Coverage Diff @@
## main #370 +/- ##
==========================================
+ Coverage 49.17% 49.36% +0.18%
==========================================
Files 245 245
Lines 29812 29886 +74
==========================================
+ Hits 14660 14753 +93
+ Misses 13713 13695 -18
+ Partials 1439 1438 -1
|
b28776f
to
2f2e7f2
Compare
819c808
to
cf9117b
Compare
9b5f313
to
65cc6a8
Compare
Pushed a minor refactor in c6e10eb:
Will bubble up to Kubo and then add some tests in ipfs/gateway-conformance#87 tomorrow. |
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.
In case I don't get to this before you are back @hacdias, feel free to bubble this up to ipfs/kubo#9989 and ipfs/gateway-conformance#87
- adds more type safety: DuplicateBlocksPolicy is no longer a pointer to bool, and together with DagOrder has an explicit *Unspecified state. - removes passing pointer and reliance on mutation. now mutation happens only once, in buildCarParams func, where implicit defaults are set when order or dups are unspecified in the request - moved car version validation and other parameter related logic into the same build funcs - fixed a bug where ?format=car eclipsed params from Accept header
Implements IPIP-412. Closes #349.