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

feat: CoJ receivedFromTis #380

Merged
merged 2 commits into from
Sep 15, 2023
Merged

feat: CoJ receivedFromTis #380

merged 2 commits into from
Sep 15, 2023

Conversation

ReubenRobertsHEE
Copy link
Contributor

TIS21-4718

@ReubenRobertsHEE
Copy link
Contributor Author

There is a lot of obsolete code to clean-up in e.g.
ProgrammeMembershipService.updateProgrammeMembershipForTrainee() and associated tests
I'm thinking this is best removed once TIS21-4715 is complete

@ReubenRobertsHEE ReubenRobertsHEE marked this pull request as ready for review September 13, 2023 14:04
@ReubenRobertsHEE ReubenRobertsHEE requested a review from a team September 13, 2023 14:04
ReubenRobertsHEE added a commit that referenced this pull request Sep 13, 2023
Dependent on
#380
merged, TIS CoJ DMS redrive and checks on all UUID-style PMs CoJs having receivedFromTis set.

TIS21-4715
DorisWongNHS
DorisWongNHS previously approved these changes Sep 13, 2023
@@ -220,7 +220,7 @@ public Optional<ProgrammeMembership> signProgrammeMembershipCoj(
for (ProgrammeMembership existingProgrammeMembership : existingProgrammeMemberships) {
if (existingProgrammeMembership.getTisId().equals(programmeMembershipId)) {
ConditionsOfJoining conditionsOfJoining =
new ConditionsOfJoining(Instant.now(), GoldGuideVersion.getLatest());
new ConditionsOfJoining(Instant.now(), GoldGuideVersion.getLatest(), null);
Copy link
Contributor Author

@ReubenRobertsHEE ReubenRobertsHEE Sep 14, 2023

Choose a reason for hiding this comment

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

Setting the syncedAt' value to null here is because the CoJ has just been signed; the complete record with that value set will be received from trainee-sync once it's been saved into TCS.

@sonarcloud
Copy link

sonarcloud bot commented Sep 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@ReubenRobertsHEE
Copy link
Contributor Author

Sorry @DorisWongNHS - I renamed the variable, so I need a re-review if that's ok 😀

@ReubenRobertsHEE ReubenRobertsHEE merged commit 457c511 into main Sep 15, 2023
4 checks passed
@ReubenRobertsHEE ReubenRobertsHEE deleted the feat/cojSync branch September 15, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants