Skip to content

fix: Suppress site-down during maintenance and enable downloading audit events - #719

Merged
AyshaHakeem merged 6 commits into
frappe:developfrom
AyshaHakeem:pilot-improvements
Oct 30, 2026
Merged

AyshaHakeem merged 6 commits into
frappe:developfrom
AyshaHakeem:pilot-improvements

Conversation

@AyshaHakeem

@AyshaHakeem AyshaHakeem commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor
  • Suppress site-down alerts during maintenance

  • Add CSV export for audit events

    • Add a Download button next to Refresh on the activity page and site activity tab
    • Download applies the current type and site filters
image

Closes #578 #665

@AyshaHakeem
AyshaHakeem enabled auto-merge (squash) October 30, 2026 09:53
@AyshaHakeem
AyshaHakeem disabled auto-merge October 30, 2026 09:59
- Updates and app installs put sites in maintenance mode, so frappe serves a 503 that the uptime monitor reported as downtime
- Tag pings of sites in maintenance with `maintenance: true` in the uptime log
- Exclude those sites from sustained-down tracking, so no alert or notification fires and the window restarts after maintenance ends

Closes frappe#665
- Add `AuditLog.get_csv()` with fixed main columns and the remaining fields as JSON in a `details` column
- Add `GET /audit-events/export` honoring the `type`, `site` and `status` filters
- Export the full matching history, including the backup trail (completed, failed, downloaded, deleted)
- Add a Download button next to Refresh on the activity page and site activity tab
- Download applies the current type and site filters

Closes frappe#578
- Add date/time filters
- Apply filters while downloading
- Read audit filters with `request.args.get` in each route so the API reference generator picks them up
- Regenerate docs/admin-api-reference.md with the export route and the `since`/`until` filters
@AyshaHakeem
AyshaHakeem enabled auto-merge October 30, 2026 10:09
@AyshaHakeem
AyshaHakeem disabled auto-merge October 30, 2026 10:13
@AyshaHakeem
AyshaHakeem merged commit bcc7f97 into frappe:develop Oct 30, 2026
6 checks passed
@AyshaHakeem AyshaHakeem changed the title fix: Add improvements fix: Suppress site-down during maintenance and enable downloading audit events Oct 30, 2026
@AyshaHakeem
AyshaHakeem deleted the pilot-improvements branch October 30, 2026 10:15
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.

feat: Download button for activity log

1 participant