Add bounds on number of elements in api/v1/log/entries/retrieve#1011
Merged
priyawadhwa merged 3 commits intosigstore:mainfrom Aug 29, 2022
Merged
Add bounds on number of elements in api/v1/log/entries/retrieve#1011priyawadhwa merged 3 commits intosigstore:mainfrom
priyawadhwa merged 3 commits intosigstore:mainfrom
Conversation
Currently set the limit to 10 entries, we can increase it if users request it. Signed-off-by: Priya Wadhwa <priya@chainguard.dev>
Member
|
can you also add the limit to the various fields in |
Contributor
Author
yup, added! |
bobcallaway
reviewed
Aug 29, 2022
Codecov Report
@@ Coverage Diff @@
## main #1011 +/- ##
==========================================
+ Coverage 41.41% 41.45% +0.04%
==========================================
Files 70 70
Lines 6863 6867 +4
==========================================
+ Hits 2842 2847 +5
Misses 3724 3724
+ Partials 297 296 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
28a4447 to
d0f528d
Compare
Signed-off-by: Priya Wadhwa <priya@chainguard.dev>
|
For rollout there are options:
Post GA we will need to be following some combination of 1&2 for any breaking or risky change. |
Contributor
Author
|
I'm open to 2 or 3 for this change. @bobcallaway or @var-sdk, any preferences? |
Member
|
I think a notification period (email and slack), wait a few days, then roll it out with a potential breakage would be fine. |
Signed-off-by: Priya Wadhwa <priya@chainguard.dev>
Contributor
Author
|
SGTM. Had to fix a merge conflict, if someone could LGTM this :) |
bobcallaway
approved these changes
Aug 29, 2022
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Currently set the limit to 10 entries, we can increase it if users request it.
It's difficult to know how much this will affect users. Based on parsing Rekor logs in the last 1 week, there are 290 requests to this endpoint that took >1s, which I'm assuming was requesting more than 10 entries (but could also just be related to something else). A lot of these logs are manual testing @var-sdk and I were doing, and there aren't any logs on the weekend. If anyone has suggestions on how to roll this out I'm happy to make changes.
closes #901
logs query
Signed-off-by: Priya Wadhwa priya@chainguard.dev
cc @var-sdk