Skip to content

App doesn't check that dwCheckApi is online before searching #6

@GaProgMan

Description

@GaProgMan

Because the app doesn't check whether dwCheckApi is online before sending a search, the user is left staring at a "Searching, please wait" message whilst it (dwCheckApi) spins up. This leads to a bad user experience, as all searches are very quick usually.

To get around this, send some kind of small request when any of the search screens loads. When dwCheckApi responds, enable the search controls. If there is no response, display a message to the user saying that functionality has been disabled (or something similar).

While waiting for a response from the server, display a "please wait" type message informing the user that they will have to wait.

Or send a fire and forget request on first load (from the server side code?), which will force dwCheckApi to spin up if it is closed.

Perhaps we need an API endpoint to call on dwCheckApi which will return a status enum (Started OK, Database Issue, +++Out of Cheese Error+++, etc.)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions