refactor: auto incidents #45
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
help wanted
invalid
javascript
question
rust
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nord-studio/miru!45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "auto-incid-rework"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes https://github.com/nord-studio/miru/issues/40
✅ Deploy Preview for miru-docs ready!
5dc2e8d375Toggle QR Code...
Use your smartphone camera to open QR code link.
To edit notification comments on pull requests, go to your Netlify project configuration.
Pull Request Overview
Introduces a configurable “graceful pings” threshold for auto-resolving incidents, updates the database schema and migrations to track ping success, and wires the new setting through the UI and monitoring service.
ping_thresholdsetting to config and UI (grace_pings)tracked_incidentsschema/migrations withsuccess,monitoring_created,investigating_createdReviewed Changes
Copilot reviewed 12 out of 15 changed files in this pull request and generated 4 comments.
Show a summary per file
ping_thresholddefaultgrace_pingsconfig typesuccess,monitoring_createdandinvestigating_createdcolumnssuccesscolumn migrationmonitoring_createdandinvestigating_createdcolumnspings_thresholdto config struct and defaultsinfoFiles not reviewed (3)
[nitpick] Grammar: change "We looking into this now." to "We’re looking into this now." or "We are looking into this now." for clarity.
@ -32,6 +32,7 @@ pub struct MiruConfigIncident {#[derive(Deserialize, Default)]pub struct MiruConfigIncidentAuto {pub enabled: bool,pub pings_threshold: u64,This field name (
pings_threshold) should match the config key in your TOML and the UI naming (grace_pings/ping_threshold) to ensure the threshold is actually deserialized.The property
grace_pingsdoes not match the key in config.toml (ping_threshold). Align the naming or add a mapping layer so the UI value is correctly loaded from the TOML.The key
ping_thresholdin config.toml doesn’t match the Rust struct fieldpings_threshold(and the TS fieldgrace_pings). Rename it topings_thresholdor update the code to useping_thresholdso the setting is read correctly.