Repository navigation
List user policies within the page limit in the live staging test - #3944
Merged
Merged
Conversation
_policy_ids asked GET /v2/user-policies for limit=1000, but the Public API caps limit at MAXIMUM_QUERY_LIMIT (500), so the request got 422 and the signed-out round-trip test failed. That test gates the staging deploy, so every merge to master stopped before production. The helper now asks for MAXIMUM_QUERY_LIMIT. Fixes #3943 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3944 +/- ##
===========================================
+ Coverage 47.76% 85.49% +37.73%
===========================================
Files 239 255 +16
Lines 13374 14667 +1293
Branches 2300 2580 +280
===========================================
+ Hits 6388 12540 +6152
+ Misses 6363 1320 -5043
- Partials 623 807 +184 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch was successfully deployed
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.
Fixes #3943
Summary
_policy_idshelper askedGET /v2/user-policiesforlimit=1000. The Public API capslimitatMAXIMUM_QUERY_LIMIT(500), so the request got 422 andtest_live_unauthenticated_users_round_trip_and_upgradefailed.MAXIMUM_QUERY_LIMITfrompolicyengine_api.query_parametersand asks for that, so the test and the API's limit can't drift apart again.Testing
ruff formatandruff checkpass on the changed file.🤖 Generated with Claude Code