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

Fix Possible Member Duplication #7804

Merged
merged 3 commits into from Nov 2, 2023

Conversation

JVickery-TBS
Copy link
Contributor

fix(logic): member create behave like member save;

  • Made member_create action method behave like group_member_save dictize method.

Fixes

There is a possible scenario in which a member can get "duplicated". This happens if the member is deleted, and then re-added and the generated primary ID of the member happens to get selected before the old deleted member from the database table.

The group_member_save dictization method already handles this scenario. So this is just aligning the member_create logic action method to behave similarly to that.

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

- Made `member_create` action method behave like `group_member_save` dictize method.
- Added change log file.
- Added type ignore for incomplete SQLAlchemy types.
@JVickery-TBS
Copy link
Contributor Author

Due to changes to CircleCI, someone with write permissions to this repo and who is added as a member to the CircleCI project will have to initialize the build/pipeline

Co-authored-by: Adrià Mercader <amercadero@gmail.com>
@JVickery-TBS
Copy link
Contributor Author

@amercader committed you suggestions. I am not part of the Circle CI project, nor have write perms on the ckan org or repos. So the Circle CI tests won't get triggered from my commits

@amercader amercader merged commit a8eb4d7 into ckan:master Nov 2, 2023
7 of 8 checks passed
@amercader
Copy link
Member

amercader commented Nov 2, 2023

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.

None yet

3 participants