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

admin provider verification task #3131

Merged
merged 5 commits into from
Sep 5, 2024
Merged

Conversation

rjlynch
Copy link
Contributor

@rjlynch rjlynch commented Aug 28, 2024

Adds the admin provider verification task.

Probably best to review each commit separately, the main ones are

  • Add provider verification admin task - This commit adds the UI for displaying the verification in the admin area but leaves the task as a manual one for ops to complete.
  • Automate admin task - This commit adds the automatic task passing based on the answers given by the provider.

I've used the existing claim verifier mechanism to handle calling the provider verification task, this means the claim verifier code will be run twice for the same claim, once when the claimant submits the claim and once when the provider verifies it. If there's an issue with he claim verifier code being ran twice that I've overlooked, let me know, can always create the task directly in the verification form.

Walk through

walk-through.mov

@rjlynch rjlynch changed the base branch from master to fe-provider-dsi-bypass August 28, 2024 14:29
@rjlynch rjlynch force-pushed the admin-provider-verification-task branch from 87a9693 to e8b4dee Compare August 28, 2024 14:30
@rjlynch rjlynch changed the base branch from fe-provider-dsi-bypass to send-verification-request-to-provider August 28, 2024 14:30
@rjlynch rjlynch force-pushed the send-verification-request-to-provider branch from 20c20b0 to a861811 Compare August 29, 2024 08:57
Base automatically changed from send-verification-request-to-provider to master August 29, 2024 09:03
@rjlynch rjlynch force-pushed the admin-provider-verification-task branch 5 times, most recently from 5dc7af3 to 240218f Compare September 2, 2024 15:12
@rjlynch rjlynch added the deploy Deploy a review app for this PR label Sep 3, 2024
@rjlynch rjlynch marked this pull request as ready for review September 3, 2024 11:13
@rjlynch rjlynch force-pushed the admin-provider-verification-task branch 2 times, most recently from 850afdf to 3539374 Compare September 4, 2024 11:20
Renames the `hours_teaching_eligible_subjects` key to
`half_teaching_hours` as `half_teaching_hours` maps to the question
shown to the claimant.
Adds the admin task for reviewing the provider's verification of the
claimant's claim.
This task is currently a manual check by the admin but in a future
iteration will be replaced with an automated check. There isn't a design
for the manual check yet but all the other checks use a yes / no radio
button so we've gone for that, the copy for the admin question may be
suject to change.
There's a bit of awkwardness in presenting the verification table as
there questions the provider signs off on are slightly different to
those shown in the admin task. Rather than clutter the
admin_tasks_presenter, which will handle showing information about other
tasks, the admin task presenter calls a specific verification presenter
to handle displaying the verification table.
Some of this code feels a bit awkward, maybe we need to consider moving
the verification json into and object.
Captures the organisation name from DfE sign in, we'll want to know
this if we're creating `DfeSignIn::User` records for the providers.
When we create the verification record we want to also capture the
organisation and roles as we'll be using the verification to create a
DfeSignIn::User record which expects these fields.
If the provider has verified all the information provider by the client
we want to mark the task as passed. If the provider hasn't verified all
the information from the client we want to mark the task as failed.
Tasks are associated with a `DfeSignIn::User` so we need to create one
of these for the provider. NOTE that the find_or_create includes the
organisation check, we may have providers with multiple organisations,
in such cases we'll create a duplicate record for them. The
DfeSignIn::User only has a single organisation so if we want to record
the organisation the user was logged in as we can't really avoid
duplicate users here.
@rjlynch rjlynch force-pushed the admin-provider-verification-task branch from 3539374 to e67efa1 Compare September 5, 2024 09:12
@rjlynch rjlynch merged commit 3cc2d1b into master Sep 5, 2024
14 checks passed
@rjlynch rjlynch deleted the admin-provider-verification-task branch September 5, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Deploy a review app for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants