r-world-devs / shinyCohortBuilder

https://r-world-devs.github.io/shinyCohortBuilder/
Other
6 stars 0 forks source link

Handling errors - details/ideas #17

Open krystian8207 opened 2 years ago

krystian8207 commented 2 years ago
  1. tryCatchLog for each main observer method. When error shows: a) we display browser alert b) we print the current state (erroneous one) to the console (or events logger db)
  2. Some exceptions (also extra but higher priority): a) when error shown during executing restore method we:
    • before starting restore we save the previous state (if the state was empty it's okay)
  3. Extra: a) We save state before each operation changing cohort state (steps, filters) as a queue of states b) When the error is shown we display modal that allows to restore previous state (selected one from history?)