1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/files/engine
Austin McKinley b54adc6161 Kick off indexing for File objects on creation
Summary: Ensures that newly-made `File` objects get indexed into the new ngrams index. Fixes T8788.

Test Plan:
  - uploaded a file with daemons stopped; confirmed no new rows in ngrams table
  - started daemons; confirmed indexing of previously-uploaded files happened
  - uploaded a new file with daemons running; confirmed it got added to the index

Not sure how to test the changes to `PhabricatorFileUploadSource->writeChunkedFile()` and `PhabricatorChunkedFileStorageEngine->allocateChunks()`. I spent a few minutes trying to find their callers, but the first looks like it requires a Diffusion repo and the 2nd is only accessible via Conduit. I can test that stuff if necessary, but it's such a small change that I'm not worried about it.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T8788

Differential Revision: https://secure.phabricator.com/D17718
2017-04-18 08:38:34 -07:00
..
__tests__ Add a bunch of tests for subclass implementations 2015-06-15 18:13:27 +10:00
PhabricatorChunkedFileStorageEngine.php Kick off indexing for File objects on creation 2017-04-18 08:38:34 -07:00
PhabricatorFileChunkIterator.php Stream chunks when sending chunked files 2015-03-14 08:29:30 -07:00
PhabricatorFileStorageEngine.php Support HMAC+SHA256 with automatic key generation and management 2017-04-06 15:42:59 -07:00
PhabricatorLocalDiskFileStorageEngine.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorMySQLFileStorageEngine.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorS3FileStorageEngine.php Swap S3 to first-party client 2016-01-10 07:55:27 -08:00
PhabricatorTestStorageEngine.php Store and verify content integrity checksums for files 2017-04-05 11:12:31 -07:00