ARA-Trans / iAM

iAM - Infrastructure Asset Management
GNU Affero General Public License v3.0
4 stars 4 forks source link

vnext/617: Prevent analysis if committed project start < analysis start #799

Closed ppator1 closed 4 years ago

ppator1 commented 4 years ago

-added BridgeCareContext as a parameter to 'RunSimulation' function -added select for simulation inside 'RunSimulation' to get a simulation with its committed projects --added check for any committed projects on selected simulation --added check for earliest committed project start year being less than the simulation analysis start --added mongo db update for simulation status with message 'Error: Projects committed before analysis start' when earliest committed project start year is less than simulation analysis start --throw constraint exception when earliest committed project start year is less than simulation analysis start