Page MenuHomePhorge
Feed Advanced Search

Yesterday

aklapper requested review of D26059: PhpDoc: Replace non-standard dict type with array.
Tue, Jun 3, 18:10
aklapper added a comment to D26037: Add phpDoc to PhabricatorCursorPagedPolicyAwareQuery.

After applying this patch, phpstan throws a bunch of additional output here, like Class PhabricatorAuthPasswordQuery extends generic class PhabricatorCursorPagedPolicyAwareQuery but does not specify its types: R and such. Probably that is totally fine. Just saying, as a phpstan newbie.

Tue, Jun 3, 12:13
aklapper closed T16093: "NOT" search token tag uses an icon and no tooltip in Global Search results as Resolved by committing rPa638bafe5103: Add tooltip for "not" search token tag in Global Search results.
Tue, Jun 3, 11:44
aklapper closed D26057: Add tooltip for "not" search token tag in Global Search results.
Tue, Jun 3, 11:44
aklapper committed rPa638bafe5103: Add tooltip for "not" search token tag in Global Search results.
Tue, Jun 3, 11:44
aklapper retitled D26057: Add tooltip for "not" search token tag in Global Search results from Drop icon for "not" search token tag in Global Search results
Tue, Jun 3, 11:43
aklapper updated the diff for D26057: Add tooltip for "not" search token tag in Global Search results.

Put minus icon back in

Tue, Jun 3, 10:57
aklapper retitled D26057: Add tooltip for "not" search token tag in Global Search results from Drop icon for "not" search token tag in Global Search results
Tue, Jun 3, 10:57
aklapper planned changes to D26058: Remove duplicate Query search tokens before constructing SQL queries.

Pasting full unit test output here before garbage collection kicks in:

Assertion failed, expected values to be equal (at PhutilSearchQueryCompilerTestCase.php:303): Function compilation of query: cat title:="Meow Meow"
Expected vs Actual Output Diff
--- Old Value
+++ New Value
@@ -1,18 +1 @@
-Array
-(
-    [0] => Array
-        (
-            [0] => 
-            [1] => and
-            [2] => cat
-        )
-
-    [1] => Array
-        (
-            [0] => title
-            [1] => exact
-            [2] => Meow Meow
-        )
-
-)
-
+false
Tue, Jun 3, 10:45
aklapper requested review of D26058: Remove duplicate Query search tokens before constructing SQL queries.
Tue, Jun 3, 10:42
aklapper added a revision to T16094: Duplicated Query search tokens also create duplicate SQL query constructs: D26058: Remove duplicate Query search tokens before constructing SQL queries.
Tue, Jun 3, 10:42
aklapper added a comment to T16094: Duplicated Query search tokens also create duplicate SQL query constructs.
  1. Go to http://phorge.localhost/search/query/advanced/
  2. In the Query field enter z a a "a phrase" a a a a ~a -b =foo title:u which includes duplicate values
  3. Click Search button
Tue, Jun 3, 10:35
aklapper created T16094: Duplicated Query search tokens also create duplicate SQL query constructs.
Tue, Jun 3, 10:31
aklapper renamed T16093: "NOT" search token tag uses an icon and no tooltip in Global Search results from Search token tags inconsistently use icons and tooltips in Global Search results to "NOT" search token tag uses an icon and no tooltip in Global Search results.
Tue, Jun 3, 10:30
aklapper requested review of D26057: Add tooltip for "not" search token tag in Global Search results.
Tue, Jun 3, 09:35
aklapper added a revision to T16093: "NOT" search token tag uses an icon and no tooltip in Global Search results: D26057: Add tooltip for "not" search token tag in Global Search results.
Tue, Jun 3, 09:35
aklapper created T16093: "NOT" search token tag uses an icon and no tooltip in Global Search results.
Tue, Jun 3, 09:32
aklapper updated the diff for D26056: Mention number of search tokens for Global Search result.

Don't output "1 Terms" but "x Term(s)"

Tue, Jun 3, 09:28
aklapper requested review of D26056: Mention number of search tokens for Global Search result.
Tue, Jun 3, 09:27
aklapper added a revision to T16092: Explicitly mention number of search tokens for Global Search result: D26056: Mention number of search tokens for Global Search result.
Tue, Jun 3, 09:27
aklapper added a comment to T16092: Explicitly mention number of search tokens for Global Search result.

Before:

Screenshot From 2025-06-03 11-21-56.png (220×1 px, 21 KB)

Tue, Jun 3, 09:26
aklapper created T16092: Explicitly mention number of search tokens for Global Search result.
Tue, Jun 3, 09:25

Mon, Jun 2

aklapper added a comment to Q183: Possible DOS in Phorge instances.

Hi and welcome, thanks for bringing this up! I guess you could Edit Question and change the View Policy of this Ponder Question to either "Trusted Contributors", or something more restrictive via the "Custom Policy" option, like administrators and subscribers, or such.

Mon, Jun 2, 20:05 · Security
aklapper added a comment to D26055: Restrict maximum number of search tokens per query to 16.

Looks like https://we.phorge.it/source/phorge/browse/master/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php$2118-2125 and https://we.phorge.it/source/phorge/browse/master/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php$2499-2506 already do this silently but only for JOIN clauses.

Mon, Jun 2, 14:28
aklapper added a comment to T16090: Add visualization support on large monitors.

Hi, please explain specifically what "support for large monitors" means to you.
Large monitors are "supported" as all the content on a Phorge page is correctly displayed, layouted, readable on large monitors, as your screenshot proves. :)

Mon, Jun 2, 07:41 · Feature Requests, UX
aklapper added a comment to T16090: Add visualization support on large monitors.

Hi, could you please describe actual problems due to the current layout? Free space is not an issue per-se, for example limiting the content width makes sense.
I'm also a bit wondering why you would put/use the browser full screen when having such a ratio?

Mon, Jun 2, 06:59 · Feature Requests, UX

Sun, Jun 1

aklapper updated the task description for T16089: Query errors are displayed outside of viewport.
Sun, Jun 1, 21:28
aklapper added a comment to T16089: Query errors are displayed outside of viewport.
diff --git a/src/view/phui/PHUIObjectBoxView.php b/src/view/phui/PHUIObjectBoxView.php
index dce9d57568..13a0a3d061 100644
--- a/src/view/phui/PHUIObjectBoxView.php
+++ b/src/view/phui/PHUIObjectBoxView.php
@@ -318,6 +318,10 @@ final class PHUIObjectBoxView extends AphrontTagView {
       $lists,
       $this->table,
       $pager,
+      // When the anchor link scrolled us below the $showhide search parameters
+      // box, repeat the error message hidden and unseen at the top of the page
+      ($this->showHideOpen == true ? $this->formErrors : null),
       $this->renderChildren(),
     );

^ This would simply be ugly repeating of the error message below the search params box on http://phorge.localhost/maniphest/query/advanced/.
For testing the patch behavior with a results list, replace the line
($this->showHideOpen == true ? $this->formErrors : null),
with
($this->showHideOpen == true ? $header : null),

Sun, Jun 1, 21:18
aklapper created T16089: Query errors are displayed outside of viewport.
Sun, Jun 1, 21:16
aklapper requested review of D26055: Restrict maximum number of search tokens per query to 16.
Sun, Jun 1, 18:18
aklapper added a revision to T15831: Long search query can trigger raw "Too many tables; MariaDB can only use 61 tables in a join": D26055: Restrict maximum number of search tokens per query to 16.
Sun, Jun 1, 18:18
aklapper updated the summary of D26054: a11y: Add lang attribute to <html> element.
Sun, Jun 1, 14:30
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26054: a11y: Add lang attribute to <html> element.
Sun, Jun 1, 14:30 · Accessibility
aklapper updated the summary of D26053: a11y: Do not mark top bar notifications area as aria-hidden.
Sun, Jun 1, 14:30
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26053: a11y: Do not mark top bar notifications area as aria-hidden.
Sun, Jun 1, 14:30 · Accessibility
aklapper updated the summary of D26052: a11y: Set aria-label attribute for PHUIListItemView Edit links in task lists.
Sun, Jun 1, 14:30
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26052: a11y: Set aria-label attribute for PHUIListItemView Edit links in task lists.
Sun, Jun 1, 14:30 · Accessibility
aklapper updated the summary of D26051: a11y: Set aria-label for comment action options dropdown.
Sun, Jun 1, 14:30
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26051: a11y: Set aria-label for comment action options dropdown.
Sun, Jun 1, 14:30 · Accessibility
aklapper updated the summary of D26050: a11y: Set project workboard button tooltips as aria-label.
Sun, Jun 1, 14:30
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26050: a11y: Set project workboard button tooltips as aria-label.
Sun, Jun 1, 14:30 · Accessibility
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26049: a11y: Add alt text to main picture on profile page.
Sun, Jun 1, 14:30 · Accessibility
aklapper updated the summary of D26049: a11y: Add alt text to main picture on profile page.
Sun, Jun 1, 14:30
aklapper updated the summary of D26048: a11y: Add aria-label to mini badges below user avatars.
Sun, Jun 1, 14:30
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26048: a11y: Add aria-label to mini badges below user avatars.
Sun, Jun 1, 14:30 · Accessibility
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26047: a11y: Add "title" to <a> tags of PHUIObjectItemView images.
Sun, Jun 1, 14:30 · Accessibility
aklapper updated the summary of D26047: a11y: Add "title" to <a> tags of PHUIObjectItemView images.
Sun, Jun 1, 14:30
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26046: a11y: Add aria-label to calendar date picker button.
Sun, Jun 1, 14:30 · Accessibility
aklapper updated the summary of D26046: a11y: Add aria-label to calendar date picker button.
Sun, Jun 1, 14:30
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26045: a11y: Set textarea name parameter also as aria-label.
Sun, Jun 1, 14:30 · Accessibility
aklapper updated the summary of D26045: a11y: Set textarea name parameter also as aria-label.
Sun, Jun 1, 14:30
aklapper added a revision to T16072: Accessibility improvements (June 2025): D26044: a11y: Add aria-label to global search field in top bar.
Sun, Jun 1, 14:30 · Accessibility
aklapper updated the summary of D26044: a11y: Add aria-label to global search field in top bar.
Sun, Jun 1, 14:30
aklapper requested review of D26054: a11y: Add lang attribute to <html> element.
Sun, Jun 1, 11:47
aklapper requested review of D26053: a11y: Do not mark top bar notifications area as aria-hidden.
Sun, Jun 1, 11:44
aklapper requested review of D26052: a11y: Set aria-label attribute for PHUIListItemView Edit links in task lists.
Sun, Jun 1, 11:42
aklapper requested review of D26051: a11y: Set aria-label for comment action options dropdown.
Sun, Jun 1, 11:39
aklapper requested review of D26050: a11y: Set project workboard button tooltips as aria-label.
Sun, Jun 1, 11:37
aklapper requested review of D26049: a11y: Add alt text to main picture on profile page.
Sun, Jun 1, 11:35
aklapper requested review of D26048: a11y: Add aria-label to mini badges below user avatars.
Sun, Jun 1, 11:33
aklapper requested review of D26047: a11y: Add "title" to <a> tags of PHUIObjectItemView images.
Sun, Jun 1, 11:29
aklapper requested review of D26046: a11y: Add aria-label to calendar date picker button.
Sun, Jun 1, 11:26
aklapper requested review of D26045: a11y: Set textarea name parameter also as aria-label.
Sun, Jun 1, 11:24
aklapper requested review of D26044: a11y: Add aria-label to global search field in top bar.
Sun, Jun 1, 11:22
aklapper closed D26042: More Search-related PhpDoc additions.
Sun, Jun 1, 11:07
aklapper committed rPe410020f78f7: More Search-related PhpDoc additions.
Sun, Jun 1, 11:07
aklapper added a comment to T16072: Accessibility improvements (June 2025).

Before and after Chromium Lighthouse a11y result comparison of some Phorge pages for patches I'm going to attach.
(Goodhart's Law applies, as with any misguiding incentives.)

Sun, Jun 1, 11:02 · Accessibility
aklapper requested review of D26043: Correct Conduit project.search color result for milestones.
Sun, Jun 1, 09:47
aklapper added a revision to T16088: Conduit's project.search returns wrong color for milestones: D26043: Correct Conduit project.search color result for milestones.
Sun, Jun 1, 09:47
aklapper created T16088: Conduit's project.search returns wrong color for milestones.
Sun, Jun 1, 09:42
aklapper edited the content of Next Up.
Sun, Jun 1, 08:12
aklapper closed T16081: Warn users that adding a second Multi-Factor Auth will require both instead of choosing one of them as Resolved by committing rPa7f94af9cf5b: Explain consequences when adding second Multi-Factor Auth.
Sun, Jun 1, 08:10
aklapper closed D26028: Explain consequences when adding second Multi-Factor Auth.
Sun, Jun 1, 08:10
aklapper committed rPa7f94af9cf5b: Explain consequences when adding second Multi-Factor Auth.
Sun, Jun 1, 08:10

Sat, May 31

aklapper added a comment to D26035: Remove unused functions in PhabricatorFulltextToken.

Also nothing seems to use these functions?:

[acko@fedora phorge]$ grep -r compileLiteralQuery .
./phorge/src/applications/search/compiler/__tests__/PhutilSearchQueryCompilerTestCase.php:          $literal_query = $compiler->compileLiteralQuery($tokens);
./phorge/src/applications/search/compiler/PhutilSearchQueryCompiler.php:  public function compileLiteralQuery(array $tokens) {
[acko@fedora phorge]$ grep -r compileStemmedQuery .
./phorge/src/applications/search/compiler/__tests__/PhutilSearchQueryCompilerTestCase.php:          $stemmed_query = $compiler->compileStemmedQuery($tokens);
./phorge/src/applications/search/compiler/PhutilSearchQueryCompiler.php:  public function compileStemmedQuery(array $tokens) {
Sat, May 31, 22:39
aklapper renamed T16072: Accessibility improvements (June 2025) from Accessibility improvements (May 2025) to Accessibility improvements (June 2025).
Sat, May 31, 21:58 · Accessibility
aklapper edited the content of Next Up.
Sat, May 31, 21:57
aklapper edited the content of Next Up.
Sat, May 31, 21:55
aklapper edited the content of Next Up.
Sat, May 31, 21:52
aklapper closed D26031: Allow using PCRE's just-in-time compilation.
Sat, May 31, 21:52
aklapper closed T16084: Stop disabling pcre.jit by default as Resolved by committing rARCc739de1ef2f5: Allow using PCRE's just-in-time compilation.
Sat, May 31, 21:52
aklapper committed rARCc739de1ef2f5: Allow using PCRE's just-in-time compilation.
Sat, May 31, 21:52
aklapper requested review of D26042: More Search-related PhpDoc additions.
Sat, May 31, 21:33
aklapper accepted D26039: LiskDAO::getConfiguration return typing.

Nice find. Applying this patch removes about 250 errors in phpstan output here.

Sat, May 31, 13:33
aklapper accepted D26040: Add missing ArcanistWorkflow::runWorkflow method.

Running phpstan analyse, before this patch I get Call to an undefined method ArcanistWorkflow::runWorkflow(), after this patch I get Method ArcanistWorkflow::runWorkflow() invoked with 1 parameter, 0 required, both in src/workflow/ArcanistWorkflow.php:227. That looks like an improvement indeed.

Sat, May 31, 11:56

Fri, May 30

aklapper updated aklapper.
Fri, May 30, 22:05
aklapper added a comment to D26037: Add phpDoc to PhabricatorCursorPagedPolicyAwareQuery.

Yes to the idea however a related elephant in the room (IMHO) are those non-standard types like list or map or wild being replaced, no clue if that has any effects on...something™ (Diviner docs? Code?) as I haven't managed to understand the consequences of code in https://we.phorge.it/source/arcanist/browse/master/src/parser/PhutilTypeSpec.php yet. (Technically speaking map and list seem to be just arrays, indeed.)

Fri, May 30, 22:01
aklapper updated the summary of D26037: Add phpDoc to PhabricatorCursorPagedPolicyAwareQuery.
Fri, May 30, 21:55
aklapper closed D26034: Fix PHP 8.1 "strlen(null)" exception in Client ID handling of PhabricatorOAuthServerTokenController.
Fri, May 30, 21:12
aklapper committed rP0c34164c8bf9: Fix PHP 8.1 "strlen(null)" exception in Client ID handling of….
Fri, May 30, 21:12