Page MenuHomePhabricator

Policy - filter app engines where the user can't see the application from panel editing
ClosedPublic

Authored by btrahan on Feb 4 2015, 11:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 8:22 PM
Unknown Object (File)
Fri, Dec 6, 5:29 AM
Unknown Object (File)
Tue, Dec 3, 11:46 PM
Unknown Object (File)
Wed, Nov 27, 7:34 PM
Unknown Object (File)
Tue, Nov 26, 2:48 PM
Unknown Object (File)
Nov 20 2024, 3:26 PM
Unknown Object (File)
Nov 20 2024, 3:24 PM
Unknown Object (File)
Nov 19 2024, 11:13 AM
Subscribers

Details

Summary

Fixes T7118. This does the basic "filter the list" thing, though it ends up being a little manual since I guess this hasn't come up before? There is also potential weird behavior if the user was using an app and lost access to it - they will have nothing selected on edit - but I think this is actually correct behavior in this circumstance.

Test Plan

used a user who couldn't get access to the "quick create" apps and noted that the dropdown list on dashboard panel create was missing the expected engines

ran arc unit --everything to verify abstract method implemented everywhere

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Policy - filter app engines where the user can't see the application from panel editing.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/search/engine/PhabricatorApplicationSearchEngine.php
245–246

Can we just make this abstract now? The dashboard will fatal if anything doesn't implement it since it tries to call it on every engine, so it would be better to catch it in the TestEverythingImplemented test than at runtime.

This revision is now accepted and ready to land.Feb 4 2015, 11:44 PM
btrahan edited edge metadata.

change base method to abstract for better lint catching in the future

This revision was automatically updated to reflect the committed changes.