Skip to content

Group rename - Save renamed group before syncing with storage#3129

Merged
lucko merged 1 commit into
LuckPerms:masterfrom
emilyy-dev:group-rename-fix
Aug 6, 2021
Merged

Group rename - Save renamed group before syncing with storage#3129
lucko merged 1 commit into
LuckPerms:masterfrom
emilyy-dev:group-rename-fix

Conversation

@emilyy-dev
Copy link
Copy Markdown
Member

@emilyy-dev emilyy-dev commented Aug 6, 2021

When using the newly introduced --update-parent-lists flag in the group rename command, it had the catastrophically undesired side effect of refreshing the new/renamed group from storage, discarding every permission that was added after the group creation.

The primary change is really in GroupRename, but to ensure that the bulk operation + syncing happens after the group is saved, I ended up adapting the StorageAdapter to return the messaging service request's future for continuation purposes.

Had the catastrophically undesired side effect of refreshing the new/renamed group from storage, discarding **every** permission that was added after the group creation

Signed-off-by: emilyy-dev <35617540+emilyy-dev@users.noreply.github.com>
@lucko
Copy link
Copy Markdown
Member

lucko commented Aug 6, 2021

LGTM, thanks!

@lucko lucko merged commit 0fa3095 into LuckPerms:master Aug 6, 2021
@emilyy-dev emilyy-dev deleted the group-rename-fix branch August 31, 2021 22:28
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.

2 participants