The-Strategy-Unit / experiencesdashboard

Shiny dashboard visualising and analysing patient experience data from the NHS England Friends and Family Test (https://www.england.nhs.uk/fft/)
https://connect.strategyunitwm.nhs.uk/qdc_public/
Other
8 stars 4 forks source link

temporarily Fix data upload #201

Closed asegun-cod closed 11 months ago

asegun-cod commented 11 months ago

Temporarily work around for #200 This PR is a temporary fix for the main time.

API_url_tracker.rmd

  1. This scheduled rmd file will write the prediction to a pin board.
  2. Attempt to write the prediction to DB, a. if it is successful then the data written in step 1 is deleted b. if unsuccessful, we will get an email for failed rendering from posit, then we can proceed to step 3

Local_API_url_tracker.qmd

  1. if step 2b, run the Local_API_url_tracker.qmd file locally. this takes the prediction data from the pin board (for all the uncompleted jobs) and writes the prediction to the DB.