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

Prevent duplicate degree subject #1467

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Conversation

martyn-w
Copy link
Contributor

@martyn-w martyn-w commented Sep 5, 2024

This change improves the synchronisation of qualification records:

  • adds checks to ensure a qualification record is not re-created if it already exists
  • creates qualification records immediately, rather than via a queued job

@github-actions github-actions bot added VisualCSharp Visual C # Test Test scripts and harnesses labels Sep 5, 2024
Copy link

sonarqubecloud bot commented Sep 5, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
65.7% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link
Collaborator

@asatwal asatwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question below.


private bool ContainsQualification()
{
return UkDegreeGradeId != null || DegreeStatusId != null || DegreeSubject != null || DegreeTypeId != null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are any of these fields mandatory for a Degree to be valid ? Vould missing fiedls here cause problems with the downstream systems ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, they are intentionally optional as older clients will not send the new degree fields. Missing these values means that a qualification record will not be created in the CRM (as is currently the case), but shouldn't break anything downstream.

Copy link
Collaborator

@asatwal asatwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@martyn-w martyn-w merged commit 2faa0d6 into master Sep 9, 2024
8 of 9 checks passed
@martyn-w martyn-w deleted the prevent-duplicate-degree-subject branch September 9, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test Test scripts and harnesses VisualCSharp Visual C #
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants