Skip to content

WPB-16886 Get channel data (team admin)#4635

Merged
battermann merged 10 commits intodevelopfrom
WPB-16886-allow-team-admin-to-get-channel-data
Jul 10, 2025
Merged

WPB-16886 Get channel data (team admin)#4635
battermann merged 10 commits intodevelopfrom
WPB-16886-allow-team-admin-to-get-channel-data

Conversation

@battermann
Copy link
Contributor

@battermann battermann commented Jun 30, 2025

Checklist

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

@battermann battermann force-pushed the WPB-16886-allow-team-admin-to-get-channel-data branch from 19dd8e3 to f5bb41f Compare June 30, 2025 10:39
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jun 30, 2025
@battermann battermann changed the base branch from develop to WPB-16886-allow-team-admin-to-get-channel-data-preparation July 2, 2025 08:11
@battermann battermann force-pushed the WPB-16886-allow-team-admin-to-get-channel-data-preparation branch from c58b2f5 to 634ab0c Compare July 2, 2025 08:15
@battermann battermann force-pushed the WPB-16886-allow-team-admin-to-get-channel-data branch 2 times, most recently from 3dceea8 to 8822d30 Compare July 2, 2025 09:42
@battermann battermann marked this pull request as ready for review July 2, 2025 09:51
@battermann battermann requested review from a team July 2, 2025 09:51
@battermann battermann force-pushed the WPB-16886-allow-team-admin-to-get-channel-data branch from 3a1f26d to 4b7cf4f Compare July 3, 2025 13:04
@battermann battermann force-pushed the WPB-16886-allow-team-admin-to-get-channel-data-preparation branch from eafd28a to 7ab9923 Compare July 4, 2025 06:37
Base automatically changed from WPB-16886-allow-team-admin-to-get-channel-data-preparation to develop July 4, 2025 09:58
@battermann battermann force-pushed the WPB-16886-allow-team-admin-to-get-channel-data branch from 4b7cf4f to f29a4e1 Compare July 7, 2025 11:41
Comment on lines 169 to 174
mChannel <- getChannel lusr cnv
case mChannel of
Just channel -> pure channel
Nothing ->
Mapping.conversationView (qualifyAs lusr ()) (Just lusr)
<$> getConversationAndCheckMembership (tUntagged lusr) (qualifyAs lusr cnv)
Copy link
Member

Choose a reason for hiding this comment

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

Why do we get the conv data twice here in case it is not a channel? Perhaps we can change the getConversationAndCheckMembership to allow an admin to succeed the membership check?

@battermann battermann requested a review from akshaymankar July 9, 2025 15:38
@battermann battermann merged commit 9891831 into develop Jul 10, 2025
8 checks passed
@battermann battermann deleted the WPB-16886-allow-team-admin-to-get-channel-data branch July 10, 2025 10:04
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.

3 participants