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

Don't show deleted pages from the 'All Documents' panel.

Summary:
If a user is asking for a list of documents stored in Phriction, it's pretty
safe to assume that they mean documents that actually exist.

Test Plan:
Made a document, saw it listed in /phriction/list/all. Deleted it, and no longer
saw it.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

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

authored by

Ricky Elrod and committed by
epriestley
bf4f74db 7fac80cb

+12 -1
+12 -1
src/applications/phriction/controller/PhrictionListController.php
··· 18 18 $user = $request->getUser(); 19 19 20 20 $views = array( 21 + 'active' => 'Active Documents', 21 22 'all' => 'All Documents', 22 23 'updates' => 'Recently Updated', 23 24 ); 24 25 25 26 if (empty($views[$this->view])) { 26 - $this->view = 'all'; 27 + $this->view = 'active'; 27 28 } 28 29 29 30 $nav = new AphrontSideNavView(); ··· 86 87 )); 87 88 88 89 $view_headers = array( 90 + 'active' => 'Active Documents', 89 91 'all' => 'All Documents', 90 92 'updates' => 'Recently Updated Documents', 91 93 ); ··· 113 115 $conn = $document_dao->establishConnection('r'); 114 116 115 117 switch ($this->view) { 118 + case 'active': 119 + $data = queryfx_all( 120 + $conn, 121 + 'SELECT * FROM %T WHERE status != %d ORDER BY id DESC LIMIT %d, %d', 122 + $document_dao->getTableName(), 123 + PhrictionDocumentStatus::STATUS_DELETED, 124 + $pager->getOffset(), 125 + $pager->getPageSize() + 1); 126 + break; 116 127 case 'all': 117 128 $data = queryfx_all( 118 129 $conn,