1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 08:20:57 +01:00
phorge-phorge/src/applications/paste/query
Giedrius Dubinskas 421c2453e5 Truncate long source lines in Paste search result list snippets
Summary:
An attempt to resolve T9600.

- `PhabricatorPasteQuery` builds truncated snippet when requested using `needSnippet()`.
- `PhabricatorPasteSearchEngine` uses Paste snippet istead of content.
- `PhabricatorSourceCodeView` accepts truncated source and type instead of line limit.

Test Plan: Generated some content for Paste application and also added huge JSON oneliner. Checked Paste application pages in browser.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Maniphest Tasks: T9600

Differential Revision: https://secure.phabricator.com/D14313
2015-10-20 19:07:04 +00:00
..
PhabricatorPasteQuery.php Truncate long source lines in Paste search result list snippets 2015-10-20 19:07:04 +00:00
PhabricatorPasteSearchEngine.php Truncate long source lines in Paste search result list snippets 2015-10-20 19:07:04 +00:00
PhabricatorPasteTransactionQuery.php Remove @group annotations 2014-07-10 08:12:48 +10:00