Skip to content
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

Add fire alarm #2241

Merged
merged 6 commits into from
Nov 19, 2021
Merged

Add fire alarm #2241

merged 6 commits into from
Nov 19, 2021

Conversation

pschoenfelder
Copy link
Contributor

Fairly basic fire alarm capability for Singularity.

The idea is that in an emergency, when users taking certain actions could be destructive (e.g. bouncing while agent capacity is low due to an outage) but we don't want to outright disallow then, a banner can be displayed warning users about the potential consequences of certain actions.

This allows setting, updating, and deleting a firealarm. Can easily make it more sophisticated if necessary.

This does not include UI updates. When it's time to implement that, the banner should probably also check the disasters resource to check what actions are currently explicitly disallowed.

@ssalinas
Copy link
Member

Backend part looks fine. As for UI, I'm wondering if we should include this data in some version of the state json (or some other thing the UI already fetches on every page). Just trying to be careful about adding yet another api call made on every UI page

@pschoenfelder
Copy link
Contributor Author

Added to state. Should just get picked up without any kind of migration since it's an optional.


@GET
@Path("/firealarm")
@Operation(summary = "Set a firealarm warning in singularity")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this is the same summary as the post endpoint

@rosalind210
Copy link
Contributor

🚢

@pschoenfelder pschoenfelder merged commit 76c383f into master Nov 19, 2021
@pschoenfelder pschoenfelder deleted the firealarm branch November 19, 2021 18:27
Copy link
Contributor

@WH77 WH77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@ssalinas ssalinas added this to the 1.5.0 milestone May 4, 2022
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.

4 participants