Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMP-4613 Add ARM RPO check for getExtendedProductionsByMatter status #2446

Merged

Conversation

karen-hedges
Copy link
Contributor

@karen-hedges karen-hedges commented Jan 17, 2025

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/DMP-4613

Change description

  1. getExtendedProductionsByMatter 

From the response, extract the Production Id using the "name" attribute which is Production Id. If not found try again in next execution.
If found, check 'endProductionTime' is not null. If null then the ARM job is not finished and try again in next execution.

  1. getProductionOutputFiles

From the response extract productionExportFile.status
Since we can have multiple productionExportFile objects we will have to handle the following scenarios :
CSVs are still running [1]: In Progress so try again in next execution.
CSVs are all reported as success [4]: The job was a complete success. Download.
CSVs are all a failure [not 1 or 4]: The job was a complete failure. Investigate.
CSVs are partially a success, partially a failure [mixture of 4s and not 4/1s]: Partially process and the failed CSV objects will be marked as ARM_REPLAY.

3. Add getExtendedProductionsByMatter & getProductionOutputFiles in-progress to re-polling states

  1. Fix bug where first search name is being return by getExtendedSearchesByMatter instead of the matching search items name

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[ x] No

@karen-hedges karen-hedges force-pushed the DMP-4613-AddARMRPOCheckGetExtendedProductionsByMatterStatus branch from f5ead64 to 4857e52 Compare January 19, 2025 20:43
@karen-hedges karen-hedges force-pushed the DMP-4613-AddARMRPOCheckGetExtendedProductionsByMatterStatus branch 2 times, most recently from 1e2ec04 to 228607d Compare January 21, 2025 18:25
@karen-hedges karen-hedges force-pushed the DMP-4613-AddARMRPOCheckGetExtendedProductionsByMatterStatus branch from 1a3a655 to 3b7cd65 Compare January 22, 2025 10:01
@karen-hedges karen-hedges marked this pull request as ready for review January 22, 2025 10:31
@karen-hedges karen-hedges requested review from a team as code owners January 22, 2025 10:31
@karen-hedges karen-hedges requested review from davet1985, jackmaloney, hemantasharma1129, c4seyla, ozzyib and manohar-hmcts and removed request for a team January 22, 2025 10:31
@karen-hedges karen-hedges force-pushed the DMP-4613-AddARMRPOCheckGetExtendedProductionsByMatterStatus branch from 971095a to 99b7bf9 Compare January 22, 2025 11:01
@karen-hedges karen-hedges force-pushed the DMP-4613-AddARMRPOCheckGetExtendedProductionsByMatterStatus branch from bc7ea13 to 84ee082 Compare January 22, 2025 15:06
@karen-hedges karen-hedges enabled auto-merge (squash) January 22, 2025 16:04
@karen-hedges karen-hedges force-pushed the DMP-4613-AddARMRPOCheckGetExtendedProductionsByMatterStatus branch from 50eb87e to eb73834 Compare January 22, 2025 16:45
1) Add to the ARM RPO getExtendedProductionsByMatter object status and check that it is either 4 or 5.

4 represents READY

5 represents CONNECTION_ERROR

If neither status don't move on, just keep as in-progress.

2) Add getExtendedProductionsByMatter in-progress to re-polling states

3) Fix bug where first search name is being return by getExtendedSearchesByMatter instead of the matching search items name

4) Change  getExtendedProductionsByMatter to not return the production id of the first production but the one that matches the search name for point 3.
@karen-hedges karen-hedges force-pushed the DMP-4613-AddARMRPOCheckGetExtendedProductionsByMatterStatus branch from eb73834 to 1d8d89f Compare January 22, 2025 17:41
@karen-hedges karen-hedges merged commit d1feed6 into master Jan 22, 2025
10 checks passed
@karen-hedges karen-hedges deleted the DMP-4613-AddARMRPOCheckGetExtendedProductionsByMatterStatus branch January 22, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants