Skip to content

fix: include Administrator when alerting System Managers in the desk - #21

Closed
tulayha wants to merge 1 commit into
developfrom
fix/alert-administrator
Closed

tulayha wants to merge 1 commit into
developfrom
fix/alert-administrator

Conversation

@tulayha

@tulayha tulayha commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What

Read the System Managers from Has Role directly instead of frappe.utils.user.get_users_with_role.

Why

get_users_with_role leaves out Administrator. On a site where Administrator is the only System Manager, a failure raised no desk notification for anyone. This was found by hand on a local v16 bench after #18 had already merged, so the fix did not make it into that pull request.

Administrator still gets no email, as its address is a placeholder on most sites.

Testing

Unit test updated. Checked by hand on a local v16 bench: a simulated failure appears in Administrator's notification panel.

@tulayha

tulayha commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Superseded: #19 carried this fix and has merged, so this pull request no longer changes anything on develop.

@tulayha tulayha closed this Oct 7, 2026
@tulayha
tulayha deleted the fix/alert-administrator branch October 7, 2026 13:59
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