Repository navigation
rights: add rights retrieval and listing queries - #17
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (20)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThis change adds public rights retrieval and listing endpoints. Retrieval returns an indexed rights record and publisher sidecars. Listing supports author filters, timestamp-based ordering, and cursor pagination. Lexicons, manifests, documentation, and tests cover the endpoints. ChangesRights Queries
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Client as HTTP client
participant List as listRights.handle
participant DB as PostgreSQL
participant Hydration as rights_hydrate_actor_views
Client->>List: Send author and pagination parameters
List->>DB: Query filtered rights rows in cursor order
DB-->>List: Return limit plus one rows
List->>Hydration: Hydrate publisher sidecars
Hydration->>DB: Load publisher profile and organization records
DB-->>Hydration: Return sidecar records
Hydration-->>List: Return hydrated rights views
List-->>Client: Return rights and optional next cursor
Merge Risk: ⚪ Minimal · up to No identified rights-query issue remains that should prevent merge after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 57 functions across 12 files. (8 skipped: 8 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
|
❌ The last analysis has failed. |
Scope
Adds public
org.hypercerts.claim.getRightsandorg.hypercerts.claim.listRightsendpoints, with repeated-author filtering, stable cursor pagination, publisher sidecars, Lexicons, manifests, and coverage.Validation
pnpm test:unit: 110/110 tests passed;pnpm checkandpnpm buildpassed locally.pnpm test:httpwas not run. Unit tests use local fixtures/fake adapters and do not install handlers, seed PostgreSQL, or contact HappyView. CI HTTP coverage exercises real XRPC over HTTP against the installed HappyView + PostgreSQL test environment; its result is pending from PR creation.Summary by CodeRabbit
New Features
Documentation