Repository navigation
Conversation
Assisted-By: OpenAI GPT-6.2-astra Signed-off-by: Joab-SC <142185992+Joab-SC@users.noreply.github.com>
7 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Validate updates to existing
ClientNonPersonrecords before the firstsaveAndFlush(...)inupdateClient(...). For partial updates, the service combines the requested values with the stored values and passes the resulting incorporation date, validity date, and constitution ID toClientDataValidator.validateClientNonPerson(...).This covers both ways an update could leave the dates inconsistent. Changing only
incorpValidityTillDatenow checks it against the storeddateOfBirth. Changing onlydateOfBirthchecks it against the stored validity date, even when the request omitsclientNonPersonDetails. Equal dates are valid.Move
JsonCommandhandling and change tracking fromClientNonPerson.update(...)into the write service. The entity receives typed values, and the service continues to report changed fields, including the original date string, format, and locale.This addresses the existing-record update discussed in #7064. Both branches are based on
developand currently include the shared validator. I’ll rebase this branch after #7064 merges. General client validation is covered separately in #7118.This PR completes part of FINERACT-3171.
Verification
ClientCreateUpdateWritePlatformServiceTestandClientDataValidatorTestpassed in a focused JUnit run after formatting. Eight of those tests are new.git diff --checkpassed.Checklist
Assisted-By: OpenAI GPT-6.2-astra.