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

BUG: Users are being created without a userId #10459

Closed
11 tasks
zachrog opened this issue Aug 6, 2024 · 4 comments
Closed
11 tasks

BUG: Users are being created without a userId #10459

zachrog opened this issue Aug 6, 2024 · 4 comments
Assignees
Labels
bug Something isn't working Medium Severity

Comments

@zachrog
Copy link
Collaborator

zachrog commented Aug 6, 2024

Describe the Bug
Some users in production do not have a custom:userId attribute in cognito. This means that they have no userId when they log in and the system will crash. Below is a report of affected cognito users.

prod-users-no-custom-userId.txt

This issue may be related to bug #10353

Business Impact/Reason for Severity
Users are unable to log into the Dawson system

In which environment did you see this bug?
production

Who were you logged in as?

What were you doing when you discovered this bug? (Using the application, demoing, smoke tests, testing other functionality, etc.)

To Reproduce
Unknown how this bug is occurring. It can be confirmed that DAWSON is creating these malformed users.

Expected Behavior
All users get created and retain their custom:userId

Actual Behavior
Sometimes users are created without a userId or their userId is being removed.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Cause of Bug, If Known

Process for Logging a Bug:

  • Complete the above information
  • Add a severity tag (Critical, High Severity, Medium Severity or Low Severity). See below for priority definition.

Severity Definition:

  • Critical Defect
    Blocks entire system's or module’s functionality
    No workarounds available
    Testing cannot proceed further without bug being fixed.

  • High-severity Defect
    Affects key functionality of an application
    There's a workaround, but not obvious or easy
    App behaves in a way that is strongly different from the one stated in the requirements

  • Medium-severity Defect
    A minor function does not behave in a way stated in the requirements.
    Workaround is available and easy

  • Low-severity Defect
    Mostly related to an application’s UI
    Doesn't need a workaround, because it doesn't impact functionality

Definition of Ready for Bugs(Created 10-4-21)

Definition used: A failure or flaw in the system which produces an incorrect or undesired result that deviates from the expected result or behavior. (Note: Expected results are use cases that have been documented in past user stories as acceptance criteria and test cases, and do not include strange behavior unrelated to use cases.)

The following criteria must be met in order for the development team to begin work on the bug.

The bug must:

  • Be focused on solving a user problem
  • Contain data for all fields in the bug template, so the team can pick it up and begin working immediately

Process: If the unexpected results are new use cases that have been identified, but not yet built, new acceptance criteria and test cases should be captured in a new user story and prioritized by the product owner.

If the Court is not able to reproduce the bug, add the “Unable to reproduce” tag. This will provide visibility into the type of support that may be needed by the Court. In the event that the Court cannot reproduce the bug, the Court will work with Flexion to communicate what type of troubleshooting help may be needed.

Definition of Done (Updated 4-14-21)

Product Owner

  • Bug fix has been validated in the Court's test environment

Engineering

  • Automated test scripts have been written
  • Field level and page level validation errors (front-end and server-side) integrated and functioning
  • Verify that language for docket record for internal users and external users is identical
  • New screens have been added to pa11y scripts
  • All new functionality verified to work with keyboard and macOS voiceover https://www.apple.com/voiceover/info/guide/_1124.html
  • READMEs, other appropriate docs and swagger/APIs fully updated
  • UI should be touch optimized and responsive for external only (functions on supported mobile devices and optimized for screen sizes as required)
  • Interactors should validate entities before calling persistence methods
  • Code refactored for clarity and to remove any known technical debt
  • Deployed to the Court's test environment if prod-like data is required. Otherwise, deployed to any experimental environment for review.
@ttlenard ttlenard added the bug Something isn't working label Aug 7, 2024
@ttlenard
Copy link
Collaborator

ttlenard commented Aug 7, 2024

Some Investigation notes:

I am seeing similar errors in the logs for a handful of these users. For the users that I looked into, I see that they are getting an error that their user already exists, even though they only first created their account.

image.png

image.png

For the users with duplicate accounts, I believe that this is related to bug #10353. I was able to recreate this by adjusting this setting for my mouse, and I was able to duplicate this issue:

Here is a real user:
image.png

Here are the logs from test. Notice I was able recreate it:
image.png

To recreate, adjust your mouse settings to this:
image.png

And you can see the results in Cognito. Two accounts created:
image.png

Do we just need to disable the continue button after the first click? Seems this might be part of the problem?
image.png

@Mwindo Mwindo self-assigned this Aug 14, 2024
@Mwindo
Copy link
Collaborator

Mwindo commented Aug 15, 2024

I'm updating #10353 with some findings that are relevant to this bug.

@Mwindo
Copy link
Collaborator

Mwindo commented Aug 16, 2024

Part of this is explained by #10353 (see comment thread there). The other part is explained by users who encountered errors on the old Cognito-hosted signup page. We will run a script to fix these users' accounts so that they can actually use DAWSON.

@Mwindo
Copy link
Collaborator

Mwindo commented Aug 16, 2024

@jimlerza Feel free to reassign this as needed now that you have a handle on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Medium Severity
Projects
Status: Closed
Development

No branches or pull requests

7 participants