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

Wrong user displayed in assignment dropdown when actual user is anonymised #4855

Open
jonkri opened this issue Feb 21, 2024 · 0 comments
Open

Comments

@jonkri
Copy link
Contributor

jonkri commented Feb 21, 2024

Describe the bug

We noticed that the wrong user was being displayed in the assignment dropdown in the inspector form.

Looking in the database, we figured out that the user_id value in user_planned_reports referenced a user that has been anonymized.

To Reproduce

Steps to reproduce the behavior:

  1. Make sure there are at least two body users
  2. Assign one of the users to a report
  3. Remove the assigned user's account
  4. Visit the report from Step 1
  5. Notice that the wrong user is displayed in the assignment dropdown

Expected behavior

That the assignment dropdown displays “unassigned”.

Screenshots

N/A

Desktop (please complete the following information):

  • OS: N/A
  • Browser: N/A
  • Version: N/A

Smartphone (please complete the following information):

  • Device: N/A
  • OS: N/A
  • Browser: N/A
  • Version: N/A

Additional context

It seems to me that the dropdown should be able to handle anonymized users or that anonymized users should be unassigned.

The former option retains more information.

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

No branches or pull requests

1 participant