hzi-braunschweig / SORMAS-Stats-next-gen

SORMAS-Stats contain functions to analyze and visualize surveillance data collected by SORMAS.
GNU General Public License v3.0
4 stars 6 forks source link

Migrate data import from global.r to server.r #131

Closed bernardsilenou closed 2 years ago

bernardsilenou commented 2 years ago

Feature Description

When sormas db is empty, the app breaks because there is no data to analyse

Problem Description

Allow app to launch even there is no data in sormas db

Proposed Change

Additional Information

jwijffels commented 2 years ago

@bernardsilenou I've created a merge request to fix this at https://github.com/hzi-braunschweig/SORMAS-Stats-next-gen/pull/135

jwijffels commented 2 years ago
jwijffels commented 2 years ago

The 2 pull requests moved the data loading to the server side except the fixed shapefiles Everything which fails due to either data connectivity or missing data in the database is now shown as an error message at the startup of the app. This involves all data loading code at https://github.com/hzi-braunschweig/SORMAS-Stats-next-gen/blob/development/sormas-stats-shinyapp/sormas-stats-app/server.R#L6:L127