Setup Wizard - importing user from facility that doesn't require learner passwords #11605
Labels
APP: Setup Wizard
Re: Setup Wizard (facility import, superuser creation, settings, etc.)
bug
Behavior is wrong or broken
TODO: needs decisions
Design or specifications are necessary
Milestone
Observed behavior
if progressing through the setup wizard:
Group-learning
>LOD
>Import one or more existing user accounts...
& the user selects a facility where learners are not required to have a password, the followingImport individual user accounts
page does not display a password field due to its conditional rendering.if user enters a username that does not exist within the selected facility, currently an error occurs that is not visible to users and keeps them from progressing further in the wizard. the error appears only in the console and doesn't seem to accurately reflect to the scenario that occurred, as the error details are
Password is required
, despite the password field not being available to the user.Errors and logs
code for errors arising in this case was updated recently in #11541
Expected behavior
surfacing error to user: currently if the user attempts to enter a non-existent username, a console error occurs but no error surfaced to the user and they remain on the page, inexplicably unable to progress. the user should be made aware of what problems are keeping them from progressing through setup.
raising accurate error: currently the error that is raised if user enters a non-existent username, when investigated, has the detail
Password is required
- this message does not seem to accurately represent the scenario that has occurred, which is expected to be the detail that accompanieserror_constants.AUTHENTICATION_FAILED
("401 Client Error: Unauthorized for url:..."
)handling legitimate non-learner cases: if an extant coach or admin username is entered into the username field on the
Import individual user accounts
page, user should be prompted for that username's password as well - even if a facility does not require learner passwords, it still does require passwords for coach or admin users. in this case, raising thePassword is required
error could be appropriate but users also need guidance/a next step nudging them towards theUse an admin account
link if the password text field is still not made available on the page.User-facing consequences
user gets "stuck" on
Import individual user accounts
page without any indication of what is wrongSteps to reproduce
Group-learning
>LOD
>Import one or more existing user accounts...
The text was updated successfully, but these errors were encountered: