-
Notifications
You must be signed in to change notification settings - Fork 334
WPB-20429: add replace channel's member endpoint #4819
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
WPB-20429: add replace channel's member endpoint #4819
Conversation
3a65538 to
7d6cd8d
Compare
|
@fisx thanks you! |
|
btw i think that the problem with the test that only failed on CI, but not locally, was that i've opened another related ticket to be addressed elsehwere. |
pcapriotti
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Some comments below. I'm also not sure about the following edge case: what if we want to add user u as admin, but u is already present as a regular member? If I understand the code correctly, nothing would happen. But then u wouldn't be an admin as requested. This violates a general property which you would probably expect. Namely that the outcome of a replace operation does not depend on the current state.
| :<|> Named | ||
| "replace-members-in-conversation" | ||
| ( Summary "Replace the members of a conversation." | ||
| :> From 'V2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's a problem in practice, but why V2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have missed the 1 in 12.
Thanks, fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be 13, though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added, but I had to create it
should I upsert them then? |
As discussed in DM:
|
i'm pretty sure it's not, but it's the letter of the law. i'll make a ticket where we can decide about actually intended behavior so we can move on here. in short: please follow the RFC. |
7834b0b to
2ec2d87
Compare
|
Just a drive-by comment, but as I just noticed the last commit adding V13: it's already present in the develop branch from here 1c2d211 -- just need to rebase. |
nice, thanks! |
2ec2d87 to
7da2b34
Compare
huh? as in "Failed spawning unix process"? smells flaky. |
7da2b34 to
6e29aad
Compare
battermann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved on behalf of Paolo and Matthias
https://wearezeta.atlassian.net/browse/WPB-20429
Checklist
changelog.d