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
F3234929: D8592.diff
Tue, Nov 12, 11:03 PM
Unknown Object (File)
Sun, Nov 10, 1:47 AM
Unknown Object (File)
Sat, Nov 9, 10:33 PM
Unknown Object (File)
Sat, Nov 9, 6:53 PM
Unknown Object (File)
Sat, Nov 9, 4:19 PM
Unknown Object (File)
Thu, Nov 7, 6:00 PM
Unknown Object (File)
Sep 30 2024, 3:26 AM
Unknown Object (File)
Sep 28 2024, 4:23 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.