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

Add private_data field to ExtraUserDetail #4528

Merged
merged 1 commit into from Jul 5, 2023

Conversation

LMNTL
Copy link
Contributor

@LMNTL LMNTL commented Jul 5, 2023

Checklist

  1. If you've added code that should be tested, add tests
  2. If you've changed APIs, update (or create!) the documentation
  3. Ensure the tests pass
  4. Make sure that your code lints and that you've followed our coding style
  5. Write a description of your work suitable for publishing on our forum
  6. Mention any related issues in this repository (as #ISSUE) and in other repositories (as kobotoolbox/other#ISSUE)
  7. Open an issue in the docs if there are UI/UX changes

Description

Added 'private_data' field to the extra user detail model.

Notes

There are some properties that need to be set on the User but not editable/viewable from the /me endpoint. As a concrete example, for mass emails, we use a boolean in extra_details to store whether a particular email has been sent to a user. We don't want users to be able to unset that boolean, because it might result in them getting sent the same email twice.

@JacquelineMorrissette JacquelineMorrissette merged commit f0e6b31 into beta Jul 5, 2023
4 checks passed
@JacquelineMorrissette JacquelineMorrissette deleted the user-extra-details-private branch July 5, 2023 22:09
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

Successfully merging this pull request may close these issues.

None yet

2 participants