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

EVA-3529 Notify submission update to user through email #10

Merged
merged 5 commits into from
Mar 26, 2024

Conversation

nitin-ebi
Copy link
Collaborator

Test-Email

@nitin-ebi nitin-ebi self-assigned this Mar 14, 2024
@@ -85,9 +95,17 @@ public boolean checkUserHasAccessToSubmission(SubmissionAccount account, String
Optional<Submission> optSubmission = submissionRepository.findById(submissionId);
if (optSubmission.isPresent()) {
SubmissionAccount submissionAccount = optSubmission.get().getSubmissionAccount();
return submissionAccount.getId() == account.getId();
return submissionAccount.getId().equals(account.getId());
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume this fixes EVA-3536 as well 👍

.addGap(1)
.addText("Here is the update for your submission: ")
.addGap(1)
.addText("submission id: " + submissionId)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.addText("submission id: " + submissionId)
.addText("Submission ID: " + submissionId)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@@ -87,6 +88,7 @@ public ResponseEntity<?> markSubmissionUploaded(@RequestHeader("Authorization")
}

Submission submission = this.submissionService.markSubmissionUploaded(submissionId);
submissionService.sendMailNotificationForStatusUpdate(submissionAccount, submissionId, SubmissionStatus.UPLOADED, Boolean.TRUE);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, is there a reason to use a Boolean object here instead of a primitive?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not really and frankly not needed. Have changed to primitive to be consistent

@nitin-ebi nitin-ebi merged commit 6b1b342 into EBIvariation:main Mar 26, 2024
1 check passed
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