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
F14066693: D11687.diff
Tue, Nov 19, 11:13 AM
F14018433: D11687.id.diff
Tue, Nov 5, 11:41 AM
F14018021: D11687.id28127.diff
Tue, Nov 5, 3:15 AM
F14008580: D11687.diff
Wed, Oct 30, 1:30 AM
F13991231: D11687.id28127.diff
Tue, Oct 22, 9:25 AM
F13969346: D11687.id28124.diff
Oct 17 2024, 2:03 AM
Unknown Object (File)
Oct 9 2024, 10:12 AM
Unknown Object (File)
Sep 21 2024, 9:57 PM
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.