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

UI behaviour when controller is unreachable #298

Open
cc-a opened this issue Jan 10, 2025 · 0 comments
Open

UI behaviour when controller is unreachable #298

cc-a opened this issue Jan 10, 2025 · 0 comments

Comments

@cc-a
Copy link
Contributor

cc-a commented Jan 10, 2025

Currently if the controller UI is opened and the root controller is unreachable (e.g. because it is not running) then the Finite State Machine and Application Tree boxes on the page simply do not populate and the user receives no feedback. Under the hood the connectivity server raises an exception when it is unable to find the root controller and the htmx requests used to populate the page elements get a 500 response.

A simple improvement we could make here would be to handle the error raised by the connectivity server and return a generic "Unable to contact root controller" message.

We already have some infrastructure to help with this in the form of the main/views/utils.py::handle_errors decorator. This could be fairly straightforwardly enhanced to allow a customisable error message and applied to the relevant view functions in the controller.

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

No branches or pull requests

1 participant