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

Improve user experience when the backend is down #65

Open
kazlauskis opened this issue Oct 27, 2022 · 1 comment
Open

Improve user experience when the backend is down #65

kazlauskis opened this issue Oct 27, 2022 · 1 comment

Comments

@kazlauskis
Copy link
Member

kazlauskis commented Oct 27, 2022

It was an idea from Steph to help users inform of maintenance downtime.

We should develop a mechanism for the app to check if the Drupal website and the Indicia warehouse are down. Ideally, there should be some https://website/health endpoint that allows the app to read a downtime message in case it can’t communicate to any of the servers. An admin would write a status message, which would then be fetched by the app and displayed to the user as a popup or a banner, similar to how websites do it. This endpoint could serve all the BRC apps linked to the same infrastructure.

A simple static JSON file hosted on some website might do the trick. It should be independent of the current infrastructure.

One way to implement this would be to pick a more reliable Drupal website like the brc.ac.uk hosted on Pantheon and create a content type called AppMessage with the following fields: Title, Message. BRC website admin could then create AppMessage content entries (nodes), which would then be exposed to brc.ac.uk/app-messages endpoint as JSON and read by any BRC apps. This setup wouldn't need to be limited to downtime messages and could be used to message app users for other things, too.

@kazlauskis
Copy link
Member Author

@DavidRoy @johnvanbreda app users are contacting me asking why apps are timing out when communicating with the website or the warehouse. Sometimes, it is planned maintenance, but occasionally, the backend is down, so it would be better to show a more informative message to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant