1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 20:40:56 +01:00
phorge-phorge/src/applications/paste/storage
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
..
PhabricatorPaste.php Truncate long source lines in Paste search result list snippets 2015-10-20 19:07:04 +00:00
PhabricatorPasteDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
PhabricatorPasteSchemaSpec.php Automatically build all Lisk schemata 2014-10-02 09:51:20 -07:00
PhabricatorPasteTransaction.php Fix Up Paste transactions 2015-08-06 18:46:17 -07:00
PhabricatorPasteTransactionComment.php Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00