@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.

Allow custom fields to be ordered ascending or descending

Summary:
Fixes T6864. This creates a sort of busy menu but I think that's proably fine -- users are opting into activating these fields for search anyway.

In the future, we could refine this as, e.g.:

- don't show these options in the dropdown;
- do show them on some new "http prefilling" sort of page;
- then you access them as an advanced user with `?order=secret-magic`.

But I'm not going to bother for now.

Test Plan: Ordered by an int field, then reversed the order.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T6864

Differential Revision: https://secure.phabricator.com/D14800

+5
+5
src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
··· 724 724 'name' => $field->getFieldName(), 725 725 'aliases' => array($legacy_key), 726 726 ); 727 + 728 + $orders['-'.$modern_key] = array( 729 + 'vector' => array('-'.$modern_key, '-id'), 730 + 'name' => pht('%s (Reversed)', $field->getFieldName()), 731 + ); 727 732 } 728 733 } 729 734