Skip to content

Add allow_partial_update to fix losing users in group and organization patch actions #5734

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

Merged

Conversation

Zharktas
Copy link
Member

Proposed fixes:

When public user details is set to false, group and organization show actions do not include users by default. Calling group or organization patch actions will lose users unless developer sets allow_partial_update to the context. This is documented in here. This PR set allow_partial_update to the context so that the developer doesn't need to know about it and enables patch functions to work properly over http.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

@Zharktas Zharktas changed the title Add allow_partial_update to fix losing users in patch action Add allow_partial_update to fix losing users in group and organization patch actions Nov 10, 2020
@wardi wardi merged commit d883d78 into ckan:master Jan 15, 2021
amercader added a commit that referenced this pull request Jan 28, 2021
amercader added a commit that referenced this pull request Jan 28, 2021
fostermh pushed a commit to cioos-siooc/ckan that referenced this pull request Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants