Skip to content

Comments

Added soft deleting to Backend User Groups#972

Merged
LukeTowers merged 2 commits intowintercms:developfrom
arvislacis:users-groups-soft-delete
Oct 19, 2023
Merged

Added soft deleting to Backend User Groups#972
LukeTowers merged 2 commits intowintercms:developfrom
arvislacis:users-groups-soft-delete

Conversation

@arvislacis
Copy link
Contributor

@arvislacis arvislacis commented Sep 9, 2023

Tries to solve #386

Depends on wintercms/storm#156 PR

@mjauvin
Copy link
Member

mjauvin commented Sep 9, 2023

softDelete option should not be added to the UserGroup model relation, only to User model relation

@arvislacis
Copy link
Contributor Author

@mjauvin Removed/reverted softDelete from UserGroup model.

@arvislacis arvislacis marked this pull request as ready for review September 10, 2023 15:17
@arvislacis
Copy link
Contributor Author

Waiting for wintercms/storm#156 to be merged.

@arvislacis arvislacis changed the title [WIP] Adding soft delete functionality for backend_users_groups Adding soft delete functionality for backend_users_groups Sep 10, 2023
@mjauvin mjauvin self-assigned this Sep 10, 2023
@mjauvin mjauvin added this to the v1.2.4 milestone Sep 10, 2023
@mjauvin mjauvin added Status: Completed maintenance PRs that fix bugs, are translation changes or make only minor changes labels Sep 10, 2023
LukeTowers added a commit to wintercms/storm that referenced this pull request Oct 18, 2023
Adds support for automatic detaching / deletion of relationships using pivot tables.

Related: wintercms/winter#386, wintercms/winter#972.
Documented by wintercms/docs#159.

Co-authored-by: Ben Thomson <git@alfreido.com>
Co-authored-by: Luke Towers <github@luketowers.ca>
@mjauvin
Copy link
Member

mjauvin commented Oct 18, 2023

@arvislacis can you test if applying this PR properly fixes the issue with Storm's develop branch? @LukeTowers or @bennothommo will merge this if it does.

@arvislacis
Copy link
Contributor Author

@mjauvin Yes, I can confirm that applying this PR and the latest changes from winter/storm develop branch fixes the issue.

@mjauvin
Copy link
Member

mjauvin commented Oct 18, 2023

@bennothommo @LukeTowers we can merge this one and close its associated issue (#386)

@LukeTowers LukeTowers changed the title Adding soft delete functionality for backend_users_groups Added soft deleting to Backend User Groups Oct 19, 2023
@LukeTowers LukeTowers merged commit 2ba6a1c into wintercms:develop Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance PRs that fix bugs, are translation changes or make only minor changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants