-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migrate manage income evidence stored procedure #130
Migrate manage income evidence stored procedure #130
Conversation
a125d28
to
3d08441
Compare
…ervice This commit implements and refactors the logic from _manage_income_evidence_ stored procedure from the legacy database into the Evidence Service. Some of the logic in the stored procedure has not been implemented as it is no longer applicable or necessary, or is defined as part of a separate story, such as migrating the create_default_income_evidence stored procedure.
cd6e9e4
to
f8def0f
Compare
This commit makes changes in line with a new decision to update the income evidence not within the Evidence Service as initially thought but instead to do this within the Orchestration Service. As such, the CMA client and calls to it are removed, with new fields instead introduced via an update of the mod schemas to version `1.16.0` to replace the information previously obtained from the CMA Service.
af801f8
to
72cb0da
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lg2m
and ((i2.partner_emst_code is null and ?3 is null) or (i2.partner_emst_code = ?3)) | ||
and I2.APPLICANT_PARTNER = ?4 | ||
and i2.ANNUAL_PENSION_AMOUNT <= nvl(?5,0) | ||
and i2.ANNUAL_PENSION_AMOUNT > I.ANNUAL_PENSION_AMOUNT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a good candidate for adding some indexes to the DB for - imagine it's slow to run!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be, I didn't check if it has any indexes already but this is the same query that's currently in one of the nested stored procedures, so should at least be no worse than it currently is.
This PR migrates the income evidence stored procedure to the Evidence Service, refactoring the existing logic at the same time as migrating and operating on the following directions and assumptions:
check_values
from the stored procedure as this has already been front-loaded into the serviceAs part of migrating the logic from the stored procedure, it is now necessary to call out to the CMA service to find the means assessment that is requested to be updated, before then calling back later with the rest to update that assessment with the evidence passed in.
This PR also updates crime-commons mod schemas from version
1.8.0
to1.16.0
.Link to story