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

Remove user field from survey submission read serializer #3529

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eikhr
Copy link
Member

@eikhr eikhr commented Nov 20, 2023

The surveys are supposedly anonymous, they are not when the user field is sent with the submission

TODO:
[ ] Test that nothing breaks in lego-webapp

Resolves ABA-273

The surveys are supposedly anonymous, they are not when the user field is sent with the submission
@eikhr eikhr added testing-needed Pull requests that need testing, e.g. stress tests by users or specs bug-fix Pull requests that fix a bug do-not-merge/WIP Pull requests that are "work in progress", and should not be merged labels Nov 20, 2023
Copy link

linear bot commented Nov 20, 2023

ABA-273 Anonymize survey submissions

We claim that survey submissions are anonymous. They are not. We save the user corresponding to each submission, and even send the user and responses together in the "surveys/id/submissions" API-route.

Copy link
Member

@jonasdeluna jonasdeluna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🪨

@eikhr
Copy link
Member Author

eikhr commented Nov 24, 2023

Turns out this breaks the survey submission page. It uses the user-field to find your own submission

@jonasdeluna
Copy link
Member

Turns out this breaks the survey submission page. It uses the user-field to find your own submission

How about leaving it as null unless it's your submission, doing the finding in the backend instead?

@ivarnakken
Copy link
Member

I agree with @jonasdeluna

It would be nice to separate this so that we can finally make /surveys a non-admin page. This has been requested by many people

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix Pull requests that fix a bug do-not-merge/WIP Pull requests that are "work in progress", and should not be merged testing-needed Pull requests that need testing, e.g. stress tests by users or specs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants