1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-03-13 12:54:53 +01:00
phorge-phorge/src/applications/settings
Andre Klapper 064424c1b7 Add getQueryApplicationClass() to *TransactionQuery.php classes
Summary:
Add `getQueryApplicationClass()` to all `*TransactionQuery.php` classes similar to other `*Query.php` classes having the same function, and make the parent function in `PhabricatorApplicationTransactionQuery.php` abstract.

In the future, this will enable excluding transaction query results based on their underlying application (for example if an application has been uninstalled) to mitigate the problem of overheated search results. See https://we.phorge.it/T15642 for context.

The only callers of `getQueryApplicationClass()` are in `src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php` and `src/applications/policy/__tests__/PhabricatorPolicyTestCase.php`.

See T15642

Test Plan:
Patch changes only one existing code place, thus check if related pages still work as expected:
* Go to http://phorge.localhost/feed/
* Go to http://phorge.localhost/feed/transactions/
* On http://phorge.localhost/feed/transactions/ , click `Edit Query` and set `Object Types` to `Application` etc.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15642

Differential Revision: https://we.phorge.it/D25500
2024-01-28 17:10:46 +01:00
..
action Simplify implementation of "SysetemAction->getSystemActionConstant()" 2019-07-19 15:45:37 -07:00
application Replace old hard-coded URI-based "changes saved" jank with new overgeneralized cookie-based "changes saved" jank 2020-04-19 09:04:31 -07:00
controller Adjust message in timezone conflict form 2023-11-10 09:03:30 +00:00
editor Add static errors, supported protocols, and a dynamic function listing to external editor settings page 2020-04-19 09:37:31 -07:00
panel Do not expose Contact Numbers settings panel when no SMS support configured 2023-11-13 14:04:16 +01:00
panelgroup Expand "Settings" UI to full-width 2019-01-23 13:40:34 -08:00
phid Make Settings modular and allow them to be EditEngine'd 2016-05-31 15:32:02 -07:00
query Add getQueryApplicationClass() to *TransactionQuery.php classes 2024-01-28 17:10:46 +01:00
setting PHP 8 and Diviner Technical Documentation 2023-08-18 15:38:16 -07:00
storage Correct overbroad automatic capability grant of global settings objects 2022-05-09 15:10:50 -07:00