-
-
Notifications
You must be signed in to change notification settings - Fork 140
fix: prism home api #1245
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
fix: prism home api #1245
Conversation
1. add critical severity alert count to alerts info 2. date level stats in sorted order
WalkthroughThis pull request introduces two primary changes. In the alerts module, it adds a new Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant get_alerts_info
participant AlertHandler
Caller->>get_alerts_info: Call get_alerts_info()
get_alerts_info->>AlertHandler: Iterate over alerts
loop For each alert
AlertHandler->>get_alerts_info: Return alert severity
alt Severity is Critical
get_alerts_info->>get_alerts_info: Increment critical counter
else Other severities
get_alerts_info->>get_alerts_info: Process normally
end
end
get_alerts_info->>Caller: Return AlertsInfo with all counts
sequenceDiagram
participant Caller
participant generate_home_response
participant DatesGenerator
Caller->>generate_home_response: Request home response
generate_home_response->>DatesGenerator: Generate date list (0 to 6)
DatesGenerator->>generate_home_response: Return list of date strings
generate_home_response->>generate_home_response: Reverse date list order
generate_home_response->>Caller: Return modified home response
Suggested reviewers
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (10)
🔇 Additional comments (6)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit