Skip to content

fix: add missing sync outage methods, improve maintenance update robustness#16

Merged
KhaledSalhab-Develeap merged 1 commit into
mainfrom
fix/audit-findings
Apr 17, 2026
Merged

fix: add missing sync outage methods, improve maintenance update robustness#16
KhaledSalhab-Develeap merged 1 commit into
mainfrom
fix/audit-findings

Conversation

@KhaledSalhab-Develeap
Copy link
Copy Markdown
Collaborator

Summary

  • Sync/async parity (critical): Added 4 missing methods to sync OutagesMixin: create_outage, delete_outage, get_outage, unacknowledge_outage. These were only available in the async client.
  • Maintenance update robustness: Replaced hard-coded field enumeration with model_dump(include=...) pattern, matching the approach used by update_monitor.
  • Incident update error context: add_incident_update() now provides clear error context when the POST succeeds but the follow-up GET fails, instead of raising a generic exception that hides the successful write.

Test plan

  • Run pytest with sync client using new outage methods
  • Verify update_maintenance sends all writable fields

…stness

- Add create_outage, delete_outage, get_outage, unacknowledge_outage
  to sync OutagesMixin (were only available in async client)
- Use consistent field set for maintenance update payload construction
- Improve error context in add_incident_update when refresh fails
@KhaledSalhab-Develeap KhaledSalhab-Develeap merged commit f74212f into main Apr 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant