US-EPA-CAMD / easey-ui

Project Management repo for EPA Clean Air Markets Division (CAMD) Business Suite of applications
MIT License
0 stars 0 forks source link

Correct SP Used To Revert Workspace MP #6266

Open djw4erg opened 1 month ago

djw4erg commented 1 month ago

Correct the SP Used to revert workspace MP.

Programming Changes:

  1. delete_monitor_plan_emissions_data_from_workspace: Currently the procedure deletes any emissions for locations associated with the specified MP. It should only delete them for the RPT_PERIOD_ID of EMISSION_EVALUATION rows with the MP.
  2. delete_monitor_plan_qa_data_from_workspace: Includes the delete for QA_CERT_EVENT_SUPP_DATA, which is an emissions table. QA_CERT_EVENT_SUPP_DATA has an FK to QA_CERT_EVENT, but that FK has a cascade delete, so if the QA_CERT_EVENT is deleted first, the QA_CERT_EVENT_SUPP_DATA will also be deleted. So, this delete should move to the delete_monitor_plan_emissions_data_from_workspace procedure.
annalbrecht commented 3 weeks ago

Need acceptance criteria.