Page MenuHomePhabricator

Implement most of the administrative UI for approval queues
ClosedPublic

Authored by epriestley on Nov 13 2013, 2:27 AM.
Tags
None
Referenced Files
F13899906: D7573.id17094.diff
Sun, Oct 6, 5:03 PM
F13899511: D7573.id17105.diff
Sun, Oct 6, 4:11 PM
Unknown Object (File)
Fri, Oct 4, 7:41 PM
Unknown Object (File)
Aug 25 2024, 8:59 PM
Unknown Object (File)
Aug 25 2024, 3:05 PM
Unknown Object (File)
Aug 21 2024, 5:58 AM
Unknown Object (File)
Aug 17 2024, 8:58 AM
Unknown Object (File)
Aug 15 2024, 7:42 PM
Subscribers

Details

Summary

Nothing fancy here, just:

  • UI to show users needing approval.
  • "Approve" and "Disable" actions.
  • Send "Approved" email on approve.
  • "Approve" edit + log operations.
  • "Wait for Approval" state for users who need approval.

There's still no natural way for users to end up not-approved -- you have to write directly to the database.

Test Plan

See screenshots.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

{F81257}

{F81258}

{F81259}

{F81260}

{F81261}

{F81262}

btrahan added inline comments.
src/applications/auth/controller/PhabricatorAuthNeedsApprovalController.php
27

haha

src/applications/people/editor/PhabricatorUserEditor.php
307

no user editor?

src/applications/auth/controller/PhabricatorAuthNeedsApprovalController.php
27

This might get us an "IT'S NOT SERIOUS ENOUGH" email, but the dialog currently looks junky with no buttons and implementing this button amused me greatly.

src/applications/people/editor/PhabricatorUserEditor.php
307

This is PhabricatorUserEditor, but it predates ApplicationTransactions so it's kind of funky and has a lot of code duplication compared to ApplicationTransactions (no shared code for database transaction management, e.g). We'll probably switch it over eventually, but I think it's lowish priority since it doesn't cause any concrete problems or really block anything (e.g., we don't need to publish any of this to news feed).

Well, maybe it would be nice to publish a "user signed up" story.

And maybe it would be nice to get a Herald email on a new user signup.

So maybe this does block stuff.

But no one has asked for these things, at least.