jhu-bids / TermHub

Web app and CLI tools for working with biomedical terminologies. https://github.com/orgs/jhu-bids/projects/9/views/7
https://bit.ly/termhub
GNU General Public License v3.0
11 stars 10 forks source link

`networkx` auto-updates: UX while loading #979

Open joeflack4 opened 4 days ago

joeflack4 commented 4 days ago

Overview

If a vocab refresh has happened, and if the app is currently re-building the networkx graph, TermHub may possibly be unusable while the new graph is being generated.

If so, we should set a manage var that says it's in progress, and whenever TermHub fetches on the backend, there needs to be a hook that checks this and returns a message to the user letting them know that the app is on pause until it completes.

To consider

Workflowy notes dump

Options: - a. Notification - Let the user know that the refresh is happening and to come back in a few minutes - b. Check independent of hitting the home route - Some kind of cronjob process that's set up on the server that checks early in the morning, after a refresh would have been completed, or perhaps checks once an hour, and sees if there's been an update, and rebuilds the graph - This probably requires or is best done with setting up a separate worker - But that is also time consuming to set up since we haven't done that yet

Why this is low priority