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.
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.
I don't think it's a problem in practice, but why V2?
There was a problem hiding this comment.
I have missed the 1 in 12.
Thanks, fixed.
There was a problem hiding this comment.
Shouldn't it be 13, though?
There was a problem hiding this comment.
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.
Approved on behalf of Paolo and Matthias
https://wearezeta.atlassian.net/browse/WPB-20429
Checklist
changelog.d