TSS - Technical user support

This page lists the user support issues that may currently arise, and the technical guidance for resolving them. Once an issue no longer requires manual intervention (i.e. it is now handled in code), it should be removed.


User cannot log-in

Example

https://hee-nhs-tis.slack.com/archives/G010E91L89K/p1652714909319359

Probable issue

User tried logging in before having signed up.

Check

Have they signed-up? Check that they have an account in the Cognito user pool. If not, they need to be advised to sign-up before logging-in.

User cannot sign-up, with message ‘An account with the given email already exists’, but also cannot reset password with message ‘there are no credentials for this account’

Probable issue

User started signing up, but failed with the verify email element.

Workaround

Disable and delete user from Cognito user pool and ask them to sign-up again.

User does not receive password reset code

Probable issue

User has not checked their spam folders.

Workaround

Assuming they have checked spam folders, disable and delete user from Cognito user pool and ask them to sign-up again.

https://hee-tis.atlassian.net/browse/TIS21-2176 to add logging of emails coming from Cognito to confirm they have been sent to the trainee.

User does not receive MFA log-in code

Probably issue

User inadvertently selected Authenticator app as the method for authentication, rather than the simpler SMS, and is not familiar with the mechanics.

Check

MFA methods for the user on Cognito, in case they selected the Authenticator App as the MFA method, but are expecting an SMS.

User cannot sign-up, with a message ‘PreSignUp failed with error Invalid email…’

Possible issues

  1. they do not have the ‘DR in Training’ role assigned, or

  2. their email address has been changed after their profile was first sync’d to TIS Self-Service, or

  3. they are not using their TIS email address to sign up for Self-Service.

Check

  1. Do they have the ‘DR in Training’ role? Look at the Role for the trainee in the Person table on TCS-PROD on Metabase (or look at the ‘Sensitive data’ tab for the person on TIS Admin).
    You may need to search by email address, name or GMC number, depending on what information comes from the local office or trainee.
    If not: their Local office needs to assign that role, and we will need to do a complete sync to add their profile to Trainee Self-Service.

  2. Is their email address different on TIS Self-Service compared to TIS? (i.e. it has been changed in TIS after the user has signed-up to TSS)
    If it is, we will need to do a complete sync to update their profile in TIS Self-Service.

User can log-in, but gets the message ‘Error couldn’t load your personal details'

Issue

Duplicate profiles (same email address) in the trainee.TraineeProfile Mongo collection, which prevents the correct account being linked to Cognito.

Workaround

Find the best looking TraineeProfile in the database, get its TraineeTisId, and add this as attribute custom:TisId to the Cognito account for the user in the Cognito user pool.

FormR: cannot submit with a revalidation date

Probable / Possible Issue

 

Check / Workaround

 

FormR: delete forms submitted in error

Issue

Submitted a form, realised it wasn’t right, submitted another rather than contact their LO.

Workaround

Add custom Mongock migration to tis-trainee-forms to delete the form from the forms database and the JSON file from the S3 bucket.

FormR: Error - Couldn’t save your Form R (Part B). If problem persists please contact your Local Office

Issue

Safari version <15 datepicker issue.
There were other validation-type issues that are now resolved (where the back-end enforced validation that the front-end did not consider)

Workaround

Trainee will be advised now to use another browser, or update Safari.
Investigate Sentry logs (timestamps will guide investigation into trainee app cloudwatch logs)

If necessary, investigate better datepicker option.

TODO: consider better error messaging from back-end.

Network error

Example

 

Issue

Intermittent WiFi?

Connection to AWS service failed during log-in process?

Workaround

Ask trainee to try on a device directly connected to the internet (instead of over WiFi).

Refresh page (stale session).

Notes:

  1. To do a complete data sync from TIS to TSS: https://eu-west-2.console.aws.amazon.com/dms/v2/home?region=eu-west-2#taskDetails/trainee-refresh-prod . This will take a number of hours (~12-24?) to complete.

  2. Cognito trainee-prod-v4 user pool https://eu-west-2.console.aws.amazon.com/cognito/v2/idp/user-pools/eu-west-2_H6QQebU1A/users?region=eu-west-2.