1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 10:42:41 +01:00
phorge-phorge/src/applications/conpherence
Austin McKinley 3e05ff2e99 Improve Conpherence behavior for logged out users.
Summary:
There are two issues here I was trying to fix:

* Viewing `/conpherence` by logged out users on `secure` would generate an overheated query on `ConpherenceThreadQuery` `secure` has a ton of wacky threads with bogus names.
* When a user views a specific thread that they don't have permission to see, we attempt to fetch the thread's transactions before applying policy filtering. If the thread has more than 1000 comments, that query will also overheat instead of returning a policy exception.

I fixed the first problem, but started trying to fix the second by moving the transaction fetch to `didFilterPage` but it broke in strange ways so I gave up.

Also fix a dangling `qsprintf` update.

Test Plan: Loaded threads and the Conpherence homepage with and without logged in users.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D20375
2019-04-02 14:03:08 -07:00
..
__tests__ Add participants ModularTransactions to Conpherence 2017-04-19 14:01:15 -07:00
application Update Conpherence to use EditEngine 2017-04-29 19:39:12 -07:00
conduit Mark ConpherenceCreate and Update conduit calls as frozen 2017-05-01 09:59:38 -07:00
constants Update Conpherence to use EditEngine 2017-04-29 19:39:12 -07:00
controller Replace all "setQueryParam()" calls with "remove/replaceQueryParam()" 2019-02-14 11:56:39 -08:00
editor Remove "metamta.*.subject-prefix" options 2019-01-17 19:18:50 -08:00
engineextension Fix a straggling issue with cursor changes impacting Conpherence thread indexing 2019-03-28 17:23:53 -07:00
lipsum Add a lipsum generator for Conpherence Rooms 2017-04-29 20:08:00 -07:00
mail Allow multiple mail receivers to react to an individual email 2019-01-16 12:28:02 -08:00
phid Conpherence - remove room vs message distinction as far as users are concerned 2015-06-25 13:14:20 -07:00
policyrule Conpherence - remove room vs message distinction as far as users are concerned 2015-06-25 13:14:20 -07:00
query Improve Conpherence behavior for logged out users. 2019-04-02 14:03:08 -07:00
remarkup Conpherence - make ZXXX monograms a bit more useful. 2015-04-13 12:45:55 -07:00
storage Remove "getApplicationTransactionObject()" from ApplicationTransactionInterface 2018-12-20 15:16:19 -08:00
typeahead Add Room typeahead for Conpherence Search 2016-10-12 08:38:45 -07:00
view Improve Conpherence behavior for logged out users. 2019-04-02 14:03:08 -07:00
xaction Remove requireCapabilities() from ApplicationTransactionEditor and require CAN_EDIT by default 2018-08-24 17:45:56 -07:00
ConpherenceTransactionRenderer.php Convert date-marker to ModularTransaction in Conpherence 2017-04-13 13:01:36 -07:00