MM-14897: Changes to be able to add and remove groups from channels. #827
Conversation
ae056bd
to
0fd0d3e
Compare
src/selectors/entities/groups.js
Outdated
@@ -51,6 +51,11 @@ function getTeamGroupIDSet(state, teamID) { | |||
return new Set(arr); | |||
} | |||
|
|||
function getChannelGroupIDSet(state, channelID) { |
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.
this selector will every single time generate a new object, we could create a function for the array, and a selector (based on that function) for the set, that way, if the underneath array hasn't change, the set will be cached.
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.
Good point.
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 in general, but a selector needs an small adjustment :)
…-associated) to teams.
Co-Authored-By: mkraft <martin@upspin.org>
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.
LGTM
Summary
Change to be able to add and remove groups from channels.
This is pretty much the same thing as #821, but for channels.
Relies on: mattermost/mattermost#10794
Ticket Link
https://mattermost.atlassian.net/browse/MM-14897
Checklist
make check-style
to check for style errors (required for all pull requests)make test
to ensure unit tests passedmake flow
to ensure type checking passedTest Information
Chrome browser, macOS.