PUL-346
[PUL-6930] Reworked aco_session_hierarchy updates
Details
Participant | Role | Time Spent | Comments | Latest Comment |
---|---|---|---|---|
Matthew Giannelli (deleted user)
|
Author | 58m | 1 | Yeah I think it would be good to have that discussion at ... |
David Hannan (deleted user)
|
Reviewer - Complete | 1m | ||
Eliott Nicholson (deleted user)
|
Reviewer - Complete | 30m | 2 | At some point in time we should have some discussion arou... |
Total | 1h 30m | 3 |
- Linked Issue:
-
Objectives
- PUL-6930 Reworked aco_session_hierarchy updates, and refactored some
- Merge branch 'develop' into feature/PUL-6930-aco-session-finalization-metrics-tracking
- PUL-6930 Removed updateSiteHierarchy and updated unit tests
Also refactored some of the related DAO methods into smaller units of work, which are orchestrated in the service layer instead of DAO.
Tests executed locally:
Create Coils ACO session for site 4782 (first ACO session for this site)
> inserts new record into aco_site_hierarchy for site and coils hierarchy with status 1
Finalize Coils ACO session
> updates record in aco_site_hierarchy for site and coils hierarchy to status 2
Create Coils+Electric Pumps session for site 4782 (first ACO session for electric pumps, second for coils)
> inserts new record into aco_site_hierarchy for site and electric pumps hierarchy with status 1
> does not touch the existing record in aco_site_hierarchy for coils hierarchy
Finalize Coils+Electric Pumps ACO session
> updates record in aco_site_hierarchy for site and electric pumps hierarchy to status 2
> does not touch the existing record in aco_site_hierarchy for coils hierarchy
Delete ACO session
> records in aco_site_hierarchy are deleted for site and hierarchy id(s)