Page MenuHomePhorge

Add Standard Custom Fields to Item List
ClosedPublic

Authored by avivey on Mar 1 2024, 16:26.
Tags
None
Referenced Files
F3371605: D25549.1744243825.diff
Wed, Apr 9, 00:10
F3369638: D25549.1744215800.diff
Tue, Apr 8, 16:23
F3369448: D25549.1744214867.diff
Tue, Apr 8, 16:07
F3368761: D25549.1744210993.diff
Tue, Apr 8, 15:03
F3357502: D25549.1743913362.diff
Sat, Apr 5, 04:22
F3351079: D25549.1743782521.diff
Thu, Apr 3, 16:02
F3348850: D25549.1743744259.diff
Thu, Apr 3, 05:24
F3338431: D25549.1743604133.diff
Tue, Apr 1, 14:28
Tokens
"Love" token, awarded by aklapper."Mountain of Wealth" token, awarded by 20after4.

Details

Summary

Allow "Standard" (config-based") custom fields to be displayed in search-results.

Depends on D25548. Ref T15750.

Test Plan

Set maniphest.custom-field-definitions to the value of P32, and start playing with custom values on tasks.

Diff Detail

Event Timeline

avivey held this revision as a draft.
avivey edited the test plan for this revision. (Show Details)
avivey published this revision for review.Mar 1 2024, 16:48

Here's what it looks like with all the bells:

image.png (578×743 px, 63 KB)

If you're stylistically aligned, I'm sorry for this.

I'll test this locally, I can't see any reason we shouldn't merge it.

For some reasons I cannot cleanly apply the patch anymore.

I get:

error: while searching for:
    return $indexes;
  }

  public function renderPropertyViewValue(array $handles) {
    $value = $this->getFieldValue();

    if (!strlen($value)) {

error: patch failed: src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldLink.php:18

Uh! I like this.

src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
376

I see that the addIcon() also supports a addIcon($value, $label) and it's nice.

Maybe useful to somehow expose that label.

This revision is now accepted and ready to land.May 18 2024, 08:35
src/infrastructure/customfield/standard/PhabricatorStandardCustomField.php
376

I think we can do that at a later date, by letting list.icon be either a simple string (icon name) or an object. I'll put a note in T15750 and in the code.