Skip to content

Fix state reset issues

Duggan, John requested to merge 34-fix-config-reset-button into main

I've fixed the following issues related to resetting the front-end state:

  1. Using the "Reset Config" button removes the selected IPTS, but ONCat data wasn't being updated to reflect this leaving stale run numbers in the front-end (now you shouldn't see any run numbers until a new IPTS is selected).
  2. When running a second reduction workflow, the stitching model state wasn't being reset, which was breaking the front-end.
  3. Using the "Reset Config" or "Upload Config" buttons after running a reduction workflow completely breaks the front-end. They aren't very logical functionalities after running a reduction, anyways, so I've just disabled the reset and upload config buttons after the job is finished. I left the download functionality since that doesn't break anything and may still have some use.
  4. I refactored the active_tab options as they were very confusing to me while I was debugging these issues.

Closes #34 (closed)

Merge request reports