Index "owner" relationship in search correctly for Revisions

Summary:
The owners of a revision are only really the reviewers when the revision is in
NEEDS_REVIEW.

Also build a raw indexed document viewer so you can look at the index of a
document from the web interface.

Finally, reindex revisions when comments are added, not just when the revision
itself is edited.

Test Plan:
Toggled abandon/reclaim on a revision and verified the relationships indexed
properly.

Reviewed By: jungejason
Reviewers: aran, jungejason, tuomaspelkonen
CC: aran, epriestley, jungejason
Differential Revision: 470
This commit is contained in:
epriestley
2011-06-15 07:43:43 -07:00
parent 12772ec35f
commit 3ec76f5f4a
10 changed files with 250 additions and 3 deletions

View File

@@ -192,6 +192,7 @@ class AphrontDefaultApplicationConfiguration
=> 'PhabricatorSearchAttachController',
'select/(?P<type>\w+)/$'
=> 'PhabricatorSearchSelectController',
'index/(?P<phid>[^/]+)/$' => 'PhabricatorSearchIndexController',
),
'/project/' => array(