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

Remove "url" from Elasticsearch index

Summary:
Ref T12450. This was added a very very long time ago (D2298).

I don't want to put this in the upstream index anymore because I don't want to encourage third parties to develop software which reads the index directly. Reading the index directly is a big skeleton key which bypasses policy checks.

This was added before much of the policy model existed, when that wasn't as much of a concern. On a tecnhnical note, this also doesn't update when `phabricator.base-uri` changes.

This can be written as a search index extension if an install relies on it for some bizarre reason, although none should and I'm unaware of any actual use cases in the wild for it, even at Facebook.

Test Plan: Indexed some random stuff into ElasticSearch.

Reviewers: chad, 20after4

Reviewed By: chad

Maniphest Tasks: T12450

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

-2
-2
src/applications/search/fulltextstorage/PhabricatorElasticFulltextStorageEngine.php
··· 78 78 79 79 $timestamp_key = $this->getTimestampField(); 80 80 81 - // URL is not used internally but it can be useful externally. 82 81 $spec = array( 83 82 'title' => $doc->getDocumentTitle(), 84 - 'url' => PhabricatorEnv::getProductionURI($handle->getURI()), 85 83 'dateCreated' => $doc->getDocumentCreated(), 86 84 $timestamp_key => $doc->getDocumentModified(), 87 85 );