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

Fix default order for Differential queries

Summary:
Fixes T3781. The UI defaults to "Created" but the query defaults to "Modified". Make the two consistent.

In particular, an issue this fixes is that previously a `/differential/?authors=duck` page would show "Order: Created" but actually order by "Modified".

Test Plan: Visited `/differential/?authors=duck` and verified the revisions were ordered by creation date.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3781

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

+2
+2
src/applications/differential/query/DifferentialRevisionSearchEngine.php
··· 82 82 $order = $saved->getParameter('order'); 83 83 if (idx($this->getOrderOptions(), $order)) { 84 84 $query->setOrder($order); 85 + } else { 86 + $query->setOrder(DifferentialRevisionQuery::ORDER_CREATED); 85 87 } 86 88 87 89 return $query;