Skip to content

Conversation

@daniel-manta-hee
Copy link
Contributor

@daniel-manta-hee daniel-manta-hee commented Jul 21, 2022

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.cshtml and 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:

review confirmation requests

Note: controller action methods returning each view are typically named as the view.

Relevant tables for database queries are:

SupervisorVerifications_DB

Screenshots

image

image


Developer checks

Checked that:
-New confirmation request button, leads to first stage in the request verification gateway.

  • Withdraw link is hard deleting the selected record from table SelfAssessmentResultSupervisorVerifications.
  • Resend link, sends email request again and the link works by replacing production url by localhost url address e.g. https://localhost:44363/Supervisor/Staff/5020/ProfileAssessment/1008/Review/4678.
  • Cancel button on VerificationPickSupervisor now leads to ReviewConfirmationRequest instead of SelfAssessmentOverview.

…Withdraw actions in the Request Confirmation view
Copy link
Contributor

@kevwhitt-hee kevwhitt-hee left a 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.

@daniel-manta-hee daniel-manta-hee force-pushed the Develop/Features/DLSV2-535-ShowViewOfResultsAwaitingVerification branch from 8be41cf to de401aa Compare August 8, 2022 18:17
…SV2-535-ShowViewOfResultsAwaitingVerification
}

var competencies = PopulateCompetencyLevelDescriptors(
selfAssessmentService.GetResultSupervisorVerifications(selfAssessmentId, User.GetCandidateIdKnownNotNull()).ToList()
Copy link
Contributor

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.

Copy link
Contributor

@kevwhitt-hee kevwhitt-hee left a 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

@kevwhitt-hee kevwhitt-hee merged commit 697777b into master Aug 15, 2022
@kevwhitt-hee kevwhitt-hee deleted the Develop/Features/DLSV2-535-ShowViewOfResultsAwaitingVerification branch August 15, 2022 08:11
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.

2 participants