-
Notifications
You must be signed in to change notification settings - Fork 1
DLSV2-535 Show results awaiting verification with Resend and Withdraw links #1300
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
DLSV2-535 Show results awaiting verification with Resend and Withdraw links #1300
Conversation
…Withdraw actions in the Request Confirmation view
…visor verifications table
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty close to what's needed. I've made some comments in code where tweaks are required.
Also, we need to show all outstanding requests rather than just those than are more than 1 week old.
Ideally we should load the EmailSent date from the SelfAssessmentResultSupervisorVerifications table for each request and only display the "Resend" link if the email was sent more than 1 hour ago. Resending should also update the EmailSent field for the SelfAssessmentResultSupervisorVerifications record. This will prevent users from spamming people with email requests.
...LearningSolutions.Web/Views/LearningPortal/SelfAssessments/ReviewConfirmationRequests.cshtml
Outdated
Show resolved
Hide resolved
...LearningSolutions.Web/Views/LearningPortal/SelfAssessments/VerificationPickSupervisor.cshtml
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs
Outdated
Show resolved
Hide resolved
… retrieved and shown
8be41cf to
de401aa
Compare
…SV2-535-ShowViewOfResultsAwaitingVerification
DigitalLearningSolutions.Web/Views/LearningPortal/SelfAssessments/_OverviewActionButtons.cshtml
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| var competencies = PopulateCompetencyLevelDescriptors( | ||
| selfAssessmentService.GetResultSupervisorVerifications(selfAssessmentId, User.GetCandidateIdKnownNotNull()).ToList() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This returns an empty list of competencies (count == 0) for a self assessment that definitely has results that are awaiting confirmation.
DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs
Outdated
Show resolved
Hide resolved
...LearningSolutions.Web/Views/LearningPortal/SelfAssessments/ReviewConfirmationRequests.cshtml
Outdated
Show resolved
Hide resolved
...LearningSolutions.Web/Views/LearningPortal/SelfAssessments/ReviewConfirmationRequests.cshtml
Outdated
Show resolved
Hide resolved
…ted in comments for PR 1300
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good. Made a tiny commit to replace the word "Competency" in the H1 of the new view with the dynamic Self Assessment Vocabulary
Show view of results awaiting verification with resend and withdraw actions in the Request confirmation view.
JIRA link
https://hee-dls.atlassian.net/browse/DLSV2-535
Description
Created
ReviewConfirmationRequests.cshtmland inserted it in the request confirmation gateway as shown on below image. Also added all the logics required for resending and withdrawing requests.Verification confirmation request flow:
Note: controller action methods returning each view are typically named as the view.
Relevant tables for database queries are:
Screenshots
Developer checks
Checked that:
-New confirmation request button, leads to first stage in the request verification gateway.
SelfAssessmentResultSupervisorVerifications.