platform icon indicating copy to clipboard operation
platform copied to clipboard

Bug: Archive channel missing from dropdown menu

Open AbigailDawson opened this issue 1 year ago • 9 comments

Summary

Archive channel option is missing from the dropdown menu when you right-click a channel. I’ve tried every combination - joining channel, leaving channel, private/not private, etc. and Archive channel still doesn’t show up. Pretty sure this was working a couple days ago.

Steps to reproduce:

  1. Navigate to “Channels”.
  2. Right-click any channel.
  3. Archive channel does not appear on dropdown menu.

Screenshot 2025-01-23 at 7.41.11 AM.png

AbigailDawson avatar Jan 23 '25 12:01 AbigailDawson

Connected to Huly®: UBERF-9246

huly-github-staging avatar Jan 23 '25 12:01 huly-github-staging

Channel archiving is not available to everyone, you need to be the creator of the channel or the owner of the workspace

kristina-fefelova avatar Jan 30 '25 05:01 kristina-fefelova

Kristina Fefelova This is from the creator + owner of the workspace, and actually I just checked a couple other workspaces I created, and this issue is only occurring on one workspace (innovatedesigns). I also tried giving Owner permissions to another user in the workspace and they aren’t able to see the Archive channel option either.

AbigailDawson avatar Jan 30 '25 11:01 AbigailDawson

Abigail Dawson Archiving in the platform is based on RBAC (if not overwritten for chats specifically). If that’s the case in order to see this action you’d need to be either of the following:

  • Spaces’ admin
  • This channel owner
  • Assigned to a role that grants you “Archive spaces“ permission

lexiv0re avatar Jan 30 '25 11:01 lexiv0re

Alexey Zinovyev so under Settings > Spaces I don’t have anyone selected for Admin (this is the default setting from when I created the workspace, even as the workspace owner I am not listed as the Spaces Admin unless I manually add myself), yet I can see archive options everywhere across the workspace except chat channels.

Could it be because this is the #random channel which was already in the workspace when I created it? I just checked another workspace and found that I also don’t see Archive for the #random channel there

AbigailDawson avatar Jan 30 '25 11:01 AbigailDawson

Abigail Dawson I think for most of the spaces which are automatically created by the system the creator of the workspace is automatically added as a space owner. But apparently not for general/random channels. That’d explain why you can archive them not being a Spaces → Admin.

If you add yourself as a Spaces → Admin does it start showing the archive option in the menu for general/random channels?

lexiv0re avatar Jan 30 '25 11:01 lexiv0re

Yeah that worked!! Thanks!

AbigailDawson avatar Jan 30 '25 11:01 AbigailDawson

will add it to the Huly Docs 😁

AbigailDawson avatar Jan 30 '25 11:01 AbigailDawson

I proposed a fix for this in Platform-Collective/platform#105, the actively maintained continuation of this codebase.

MichaelUray avatar Oct 24 '26 10:10 MichaelUray