fix: honor page parameter in work item pagination (#9340) - #9906
praneeth-7606 wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe work-item list API now documents a one-based ChangesWork-item pagination
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Page-based work-item pagination appears ready for normal checks before merging. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new page option follows the existing cursor and authorization paths. No introduced security issue was established, but end-to-end verification and security coverage remain incomplete. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Honor the one-based
pagequery parameter for work-item list pagination by translating it into the existing zero-based cursor offset. An explicit cursor takes precedence. Invalid page values return HTTP 400. Document the parameter in the endpoint schema.Type of Change
Screenshots and Media (if applicable)
N/A (backend change).
Test Scenarios
uvx ruff check apps/api/plane/utils/paginator.py apps/api/plane/utils/openapi/parameters.py apps/api/plane/api/views/issue.py apps/api/plane/tests/unit/utils/test_paginator.py-- passed.docker compose -f docker-compose-test.yml run --rm --no-deps api-tests pytest plane/tests/unit/utils/test_paginator.py -q-- 5 passed.References
Closes #9340