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, May 3, 7:02 AM
Unknown Object (File)
Thu, Apr 25, 1:24 AM
Unknown Object (File)
Thu, Apr 11, 10:01 AM
Unknown Object (File)
Tue, Apr 9, 10:14 AM
Unknown Object (File)
Apr 4 2024, 2:49 AM
Unknown Object (File)
Mar 31 2024, 7:25 PM
Unknown Object (File)
Mar 31 2024, 7:24 PM
Unknown Object (File)
Mar 31 2024, 12:28 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.