-
Notifications
You must be signed in to change notification settings - Fork 37
fix: issues with delete_mute_timing #238
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
Conversation
Summary by CodeRabbit
WalkthroughThe delete_mute_timing operation now uses the HTTP DELETE method instead of GET in both async and sync alerting provisioning clients. Corresponding unit test added to exercise the DELETE request path. No signature or endpoint path changes; only the HTTP verb and test coverage updated. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Caller
participant Client as AlertingProvisioning
participant HTTP as HTTP Client
participant API as Grafana API
Dev->>Client: delete_mute_timing(name)
Client->>HTTP: DELETE /v1/provisioning/mute-timings/{name}
HTTP->>API: DELETE /v1/provisioning/mute-timings/{name}
API-->>HTTP: 200/204 (JSON/empty)
HTTP-->>Client: Response
Client-->>Dev: Result
note over Client,HTTP: HTTP verb changed from GET to DELETE
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
✨ Finishing Touches
🧪 Generate unit tests
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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #238 +/- ##
==========================================
+ Coverage 92.27% 92.49% +0.21%
==========================================
Files 27 27
Lines 1825 1825
==========================================
+ Hits 1684 1688 +4
+ Misses 141 137 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Excellent, thank you again!
How about releasing a new version of grafana-client with this fixes? |
Description
Fix for the issue #237
Checklist