-
Notifications
You must be signed in to change notification settings - Fork 87
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
When selecting a channel at the end of the setup flow, archived channels are visible in the drop down list #278
Comments
This behavior is not GitLab specific. All plugins using interactive dialog behave this way. It would require toolkit changes to fix this. 1/5 let's make this a HW in the server repo. |
@catalintomai Was there a decision about if this should be a HW? |
@hanzei - we assigned it to Demansol team. Could not assign it directly to Raju for some reason, but they are aware of it and they work on Gitlab nowadays anyway. |
@hanzei wanted to check before starting should this fix be in mattermost-server ? |
Well, this is not a bug from a framework perspective. Channel lists for interactive dialogs include archived channels. If an integration wants a filtered list, we need a new select type. Is it really worth adding such type given that interactive dialogs is something we want to move away from? |
@hanzei @DHaussermann I think we can add a configurable boolean field (Like "include_archived_channels") for the "select" type to include/exclude archived channels. What are your opinions on this? |
Sounds good to me 👍 |
@hanzei @mickmister To implement this we need to make the changes in the MM server and webapp. Should we do the fix on the least supported version on Gitlab (i.e. v7.1.0) or the latest MM repo containing the code of both server and webapp? |
A |
Just to surface how this currently works, it is using the @raghavaggarwal2308 @hanzei I don't think this archived channel issue is something the GitLab plugin should be concerned about. I certainly don't want to require a bump in One route would be to treat this as a "bug" in the webapp, and simply remove the option to select archived channels. This would technically be a breaking change, so maybe we should also include the I'm inclined to just avoid showing archived channels in the webapp, or close this as not planned. I don't see much risk in just removing the archived channels, even if it's technically a breaking change. We've had to make calls like this in the past, and I think this is more benign than some that we've had to do in the past. |
@mickmister Just a clarification, there are two ways to do this:
Which one are you suggesting? Also, if we think this is not a concerning issue, we can also close it. |
@raghavaggarwal2308 The second option seems cleaner and more performant
Yes we'll just introduce the change to the master branch of the |
@mickmister No one is assigned to review the attached PR mattermost/mattermost#25508 with this issue. Can you please look into that? |
Requested two reviews, thanks for the reminder 👍 |
FIxed with mattermost/mattermost#25508 |
The channel selection used to select which channel will receive the welcome message includes Archived channels.
These should be removed from the listing.
note It's unclear at this time if there is a broader solution or if each plugin must be fixed individually.
Steps:
setup
command/gitlab setup announcement
Observed: Archive channel is available to select from
The text was updated successfully, but these errors were encountered: