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

T1627 - Fix BeneficiaryMajorRevision GMC request handling #1941

Merged
merged 7 commits into from
Aug 15, 2024

Conversation

Prazn
Copy link
Contributor

@Prazn Prazn commented Aug 7, 2024

Description

There was a bug related to notifying a sponsor when information about his child changed. The sponsor would in fact be notified through the BeneficiaryMajorRevision GMC message, however the contents of the letter would be weird, for example 14'000 lines of repeating text.

Technical Aspects

The first fix of this PR is that there was no mapping made for the 'Local Grade Level' to get the corresponding field from the json. This is why in the letter the grade was empty.

The second fix is a bit more complex and related to how we map the json to ORM methods, basically the RevisedValues field was mapped as having relation records through a foreign key, but it wasn't the case. So when the mapping was done we would have incorrect ORM methods which corrupted the data inside the table as time went on.

Misc

The existing data in the table compassion_major_revision should be cleared since the data is wrong.

@Prazn Prazn self-assigned this Aug 7, 2024
@Prazn Prazn force-pushed the nip/T1627-FixMajorRevision branch from cda14ef to 2748a4e Compare August 8, 2024 12:31
@Prazn Prazn force-pushed the nip/T1627-FixMajorRevision branch from a9edd18 to 1dde539 Compare August 9, 2024 13:32
@Prazn Prazn requested a review from ecino August 12, 2024 08:17
@Prazn Prazn marked this pull request as ready for review August 12, 2024 08:17
Copy link

sonarcloud bot commented Aug 15, 2024

@ecino ecino merged commit 885506e into 14.0 Aug 15, 2024
1 of 2 checks passed
@ecino ecino deleted the nip/T1627-FixMajorRevision branch August 15, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants