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

Change Ponder default query to 'Recent'

Summary: In Ponder, I think the right default query is "good" questions. That being recently asked, and either open or resolved. For browsing this seems correct. For moderators, I presume they use saved queries accordingly. This is similar to stack overflow and quora.

Test Plan: Review queries in my dev box, all seems to run correctly

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+7
+7
src/applications/ponder/query/PonderQuestionSearchEngine.php
··· 57 57 58 58 protected function getBuiltinQueryNames() { 59 59 $names = array( 60 + 'recent' => pht('Recent Questions'), 60 61 'open' => pht('Open Questions'), 61 62 'resolved' => pht('Resolved Questions'), 62 63 'all' => pht('All Questions'), ··· 80 81 case 'open': 81 82 return $query->setParameter( 82 83 'statuses', array(PonderQuestionStatus::STATUS_OPEN)); 84 + case 'recent': 85 + return $query->setParameter( 86 + 'statuses', array( 87 + PonderQuestionStatus::STATUS_OPEN, 88 + PonderQuestionStatus::STATUS_CLOSED_RESOLVED, 89 + )); 83 90 case 'resolved': 84 91 return $query->setParameter( 85 92 'statuses', array(PonderQuestionStatus::STATUS_CLOSED_RESOLVED));