road86 / bahis-desk

Desktop application for BAHIS2
GNU General Public License v3.0
2 stars 1 forks source link

Synchronise catchments after a BAHIS update #25

Closed ChasNelson1990 closed 6 months ago

ChasNelson1990 commented 1 year ago

Problem

24 moves the catchment db synchronisation outside of the main app sync operation; however, it now only syncs when a db is initialised (new user, change of user). This means that on the rare occasion catchments do change we need to manually reinitialise all dbs - not ideal.

Desired Solution

Can we add a global flag or something to the autoUpdateBahis function so that whenever a user logs in for the first time after an update, we run synchroniseCatchments?

Considered Alternatives

A manual sync button in the UI?

Additional Context

No response

ChasNelson1990 commented 1 year ago

We need to do this update roughly once a quarter which is why the above is suggested