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

Deleting a peron who has been linked to a survey, breaks the survey submission list #2487

Open
katjam opened this issue Jan 19, 2025 · 0 comments

Comments

@katjam
Copy link
Contributor

katjam commented Jan 19, 2025

Description

When a person is linked to as survey as a respondent and is subsequently deleted, they remain linked to the survey. This breaks the submission list view for that survey.

Steps to reproduce

  1. Go to a survey submission list e.g /organize/1/projects/standalone/surveys/1/submissions
  2. Identify a person who has been linked to a survey that you are happy to delete (or make a new one & link them)
  3. Go to manage that linked person e.g. /organize/1/people/200/manage and click the Remove person button
  4. Return to the submissions list and see the person is still linked with their name visible & a broken avatar image
  5. Hover over the avatar to see the crash!

Expected Behaviour (Needs to be defined)

Need to decide if we revert deleted person links to anonymous or if we want to retain any of the info in the respondent data. If we want to retain some of the info, we should make sure the hover does not rely on the person existing.

Actual Behaviour

The name is retained as text.
The hover breaks on trying to fetch person (and their tags)

Screenshots (if you have any)

Image

Image

Image

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