Page MenuHomePhabricator

[web] Display a Roles option in the community menu
ClosedPublic

Authored by rohan on Jul 21 2023, 8:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 10:14 PM
Unknown Object (File)
Mon, May 6, 5:37 PM
Unknown Object (File)
Sun, May 5, 10:14 PM
Unknown Object (File)
Sun, May 5, 5:25 PM
Unknown Object (File)
Sun, May 5, 5:25 PM
Unknown Object (File)
Sun, May 5, 5:25 PM
Unknown Object (File)
Sun, May 5, 5:22 PM
Unknown Object (File)
Sun, May 5, 4:37 PM
Subscribers

Details

Summary

If the user has CHANGE_ROLE permissions, we want to allow them to see the 'Roles' option in the community actions menu. Implementation will come in the following diffs, this just gets the icon /
option shown.

ENG-4425

Depends on D8591

Test Plan

Checked that the option shows for my local admin user only

Screenshot 2023-07-21 at 11.57.40 AM.png (1×1 px, 275 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rohan edited the test plan for this revision. (Show Details)
rohan requested review of this revision.Jul 21 2023, 9:14 AM
atul requested changes to this revision.Jul 24 2023, 11:21 PM

Shouldn't we add some sort of isDev check so we don't roll out this dummy button to users when a keyserver release is made?

This revision now requires changes to proceed.Jul 24 2023, 11:21 PM
In D8592#253496, @atul wrote:

Shouldn't we add some sort of isDev check so we don't roll out this dummy button to users when a keyserver release is made?

Would I need this if I'm landing the entire stack once completed all at once? I thought I'd need that only if I was landing this early before landing the rest of the web stack was done

rohan requested review of this revision.Jul 25 2023, 9:46 AM

Re-requesting review because I don't think I need it if I'm landing the entire stack at once (and so my comment doesn't get lost), but let me know if I'm missing something!

agree with @rohan that isDev check shouldn't be necessary if we are landing stack all at once

Re-requesting review because I don't think I need it if I'm landing the entire stack at once

Ah yeah not necessary if landing the whole stack at once I guess. My preference is to ensure things are landable as-is (eg put things behind isDev), but this is also fine.

This revision is now accepted and ready to land.Jul 25 2023, 11:44 PM
This revision was landed with ongoing or failed builds.Jul 31 2023, 6:15 PM
This revision was automatically updated to reflect the committed changes.