-
-
Notifications
You must be signed in to change notification settings - Fork 270
Extend Nest API with Snapshot data #2556
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
base: main
Are you sure you want to change the base?
Extend Nest API with Snapshot data #2556
Conversation
Summary by CodeRabbit
WalkthroughAdds a new Snapshots API v0 module with list/detail endpoints and related-collection endpoints, registers the snapshot router, extends the Snapshot model with five read-only count properties, and adds unit tests updating the router expectations. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Pre-merge checks and finishing touches✅ 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 |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
backend/apps/api/rest/v0/__init__.py(2 hunks)backend/apps/api/rest/v0/snapshot.py(1 hunks)backend/apps/owasp/models/snapshot.py(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (3)
backend/apps/api/rest/v0/__init__.py (1)
backend/apps/owasp/api/internal/queries/snapshot.py (1)
snapshot(14-22)
backend/apps/owasp/models/snapshot.py (1)
backend/apps/owasp/api/internal/nodes/snapshot.py (5)
new_chapters(35-37)new_issues(40-42)new_projects(45-47)new_releases(50-52)new_users(55-57)
backend/apps/api/rest/v0/snapshot.py (2)
backend/apps/api/decorators/cache.py (1)
cache_response(19-56)backend/apps/owasp/models/snapshot.py (7)
Snapshot(7-72)Status(14-18)new_chapters_count(50-52)new_issues_count(55-57)new_projects_count(60-62)new_releases_count(65-67)new_users_count(70-72)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Run CI Denendencies Scan
- GitHub Check: CodeQL (javascript-typescript)
9391d76 to
5644467
Compare
|



Resolves #2539
Proposed change
Checklist
make check-testlocally; all checks and tests passed.