[PUL-6930] Reworked aco_session_hierarchy updates

PUL-346 3

Keyboard shortcuts  
Summarize the review outcomes (optional)
 
#permalink

Details

Warning: no files are visible, they have all been filtered.
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 completed
Reviewer - Complete 1m    
Eliott Nicholson (deleted user)
Reviewer completed
Reviewer - Complete 30m 2 At some point in time we should have some discussion arou...
Total   1h 30m 3  
#permalink

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)

Branches in review

#permalink

Issues Raised From Comments

Key Summary State Assignee
#permalink

General Comments

There are no general comments on this review.
/src/main/java/.../dao/impl/AcoDAOImpl.java Changed 2
Open in IDE #permalink
/src/main/.../dao/impl/SessionDAOImpl.java Changed 1
/src/main/java/.../dao/interfaces/AcoDAO.java Changed
Open in IDE #permalink
/src/main/.../dao/interfaces/SessionDAO.java Changed
/src/main/.../service/impl/AcoServiceImpl.java Changed
Open in IDE #permalink
/src/main/.../impl/SessionServiceImpl.java Changed
/src/main/.../interfaces/AcoService.java Changed
Open in IDE #permalink
/src/main/.../interfaces/SessionService.java Changed
/src/test/.../dao/impl/AcoDaoImplTest.groovy Changed
Open in IDE #permalink

Review updated: Reload | Ignore | Collapse

You cannot reload the review while writing a comment.

Create issue

X
Assign To Me

Log time against