@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add comments to task title length limit and search token number limit

Summary:
See discussion in D26407. Per installation guide, Phorge only supports MariaDB
and MySQL which both have a limit of 61 tables in a single JOIN (though this is
undocumented in the MariaDB reference guide).

Test Plan: None.

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: avivey, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D26409

+6
+3
src/applications/maniphest/xaction/ManiphestTaskTitleTransaction.php
··· 4 4 extends ManiphestTaskTransactionType { 5 5 6 6 const TRANSACTIONTYPE = 'title'; 7 + 8 + // Arbitrary title length limit to reduce abuse as the database scheme 9 + // defines "longtext" instead of "varchar(255)" for maniphest_task.title 7 10 private $maximumTaskTitleLength = 255; 8 11 9 12 public function generateOldValue($object) {
+3
src/applications/search/compiler/PhutilSearchQueryCompiler.php
··· 52 52 } 53 53 54 54 /** 55 + * Get maximum number of tables in a single JOIN. MariaDB and MySQL set this 56 + * to 61 tables per https://dev.mysql.com/doc/refman/8.4/en/join.html 57 + * 55 58 * @return int 56 59 */ 57 60 private function getMaxQueryTokens(): int {