Skip to content

Conversation

blackheaven
Copy link
Contributor

https://wearezeta.atlassian.net/browse/WPB-18191

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@blackheaven blackheaven changed the base branch from develop to gdifolco/WPB-18190_collaborator-delete-endpoint July 31, 2025 15:46
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jul 31, 2025
guardPermission (tUnqualified zUser) team TeamMember.UpdateTeamCollaborator InsufficientRights
Store.updateTeamCollaborator user team perms
unless (Set.member ImplicitConnection perms) $
-- TODO gdf remove O2O conversations
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch 2 times, most recently from 689dd19 to 252bc04 Compare August 4, 2025 08:32
@blackheaven blackheaven changed the title Gdifolco/wpb 18191 collaborator update endpoint WPB-18191: Add route to collaborator permissions from team Aug 4, 2025
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from 252bc04 to ae16812 Compare August 5, 2025 11:07
@blackheaven blackheaven force-pushed the gdifolco/WPB-18190_collaborator-delete-endpoint branch from 8e873f3 to 78aea4e Compare August 5, 2025 12:32
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from ae16812 to a2cfeab Compare August 5, 2025 12:34
@blackheaven blackheaven marked this pull request as ready for review August 5, 2025 12:35
@blackheaven blackheaven requested review from a team August 5, 2025 12:35
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from a2cfeab to a423074 Compare August 5, 2025 14:53
@blackheaven blackheaven force-pushed the gdifolco/WPB-18190_collaborator-delete-endpoint branch from 83eb7a1 to c1f5acf Compare August 6, 2025 16:54
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from 4fa59cc to 7a2e3ff Compare August 6, 2025 17:54
@blackheaven
Copy link
Contributor Author

I cannot reproduce the error, which seems not related to my changes.

@blackheaven blackheaven force-pushed the gdifolco/WPB-18190_collaborator-delete-endpoint branch from c1f5acf to 0969d6d Compare August 13, 2025 16:05
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from 7a2e3ff to 607cfcf Compare August 13, 2025 16:10
@blackheaven blackheaven self-assigned this Aug 14, 2025
@blackheaven blackheaven force-pushed the gdifolco/WPB-18190_collaborator-delete-endpoint branch from c5e0a60 to 30c92d0 Compare August 19, 2025 15:29
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from 607cfcf to 7d0a8c3 Compare August 21, 2025 10:37
@blackheaven
Copy link
Contributor Author

Does not seem related

timeout exceeded

@blackheaven blackheaven force-pushed the gdifolco/WPB-18190_collaborator-delete-endpoint branch from 32ad69b to 3160115 Compare August 28, 2025 18:23
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch 2 times, most recently from 8d1a9b6 to aa0dcda Compare August 29, 2025 07:34
@blackheaven blackheaven force-pushed the gdifolco/WPB-18190_collaborator-delete-endpoint branch 2 times, most recently from 5eb2959 to c510050 Compare September 3, 2025 12:16
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from aa0dcda to 280606b Compare September 5, 2025 09:02
@blackheaven blackheaven force-pushed the gdifolco/WPB-18190_collaborator-delete-endpoint branch from 741ffd8 to 0ec3937 Compare September 5, 2025 16:06
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from 3252544 to 9bc5ec3 Compare September 5, 2025 16:10
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from 9bc5ec3 to 13f60b0 Compare September 5, 2025 16:19
@blackheaven blackheaven force-pushed the gdifolco/WPB-18191_collaborator-update-endpoint branch from bea7d22 to f114414 Compare September 12, 2025 13:29
updateTeamCollaborator :: (MakesValue owner, MakesValue collaborator, HasCallStack) => owner -> String -> collaborator -> [String] -> App Response
updateTeamCollaborator owner tid collaborator permissions = do
(_, collabId) <- objQid collaborator
req <- baseRequest owner Brig Versioned $ joinHttpPath ["teams", tid, "collaborators", collabId]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
req <- baseRequest owner Brig Versioned $ joinHttpPath ["teams", tid, "collaborators", collabId]
req <- baseRequest owner Galley Versioned $ joinHttpPath ["teams", tid, "collaborators", collabId]

also move to another module.

@@ -260,3 +260,33 @@ testRemoveMemberInTeamConversation = do
resp.status `shouldMatchInt` 200
otherMembers <- asList (resp.json %. "members.others")
traverse (%. "qualified_id") otherMembers `shouldMatchSet` traverse (%. "qualified_id") [owner, alice]

testUpdateMember :: (HasCallStack) => App ()
testUpdateMember = do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
testUpdateMember = do
testUpdateCollaborator = do

@blackheaven blackheaven force-pushed the gdifolco/WPB-18190_collaborator-delete-endpoint branch from f7bee64 to 1c458bf Compare September 17, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants