1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 15:52:41 +01:00
phorge-phorge/src/applications/people
epriestley 2447d9bdf2 Begin improving modularity of IndexEngine, add locks
Summary:
Ref T9890. Ref T9979. Several adjacent goals:

  - The `SearchEngine` vs `ApplicationSearchEngine` thing is really confusing. There are also a bunch of confusing class names and class relationships within the fulltext indexing. I want to rename these classes to be more standard (`IndexEngine`, `IndexEngineExtension`, etc). Rename `SearchIndexer` to `IndexEngine`. A future change will rename `SearchEngine`.
  - Add the index locks described in T9890.
  - Structure things a little more normally so future diffs can do the "EngineExtension" thing more cleanly.

Test Plan:
Indexing:

  - Renamed a task to have a unique word in the title.
  - Ran `bin/search index Txxx`.
  - Searched for unique word.
  - Found task.

Locking:

  - Added a `sleep(10)` after the `lock()` call.
  - Ran `bin/search index Txxx` in two windows.
  - Saw first one lock, sleep 10 seconds, index.
  - Saw second one give up temporarily after failing to grab the lock.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9890, T9979

Differential Revision: https://secure.phabricator.com/D14834
2015-12-21 17:04:10 -08:00
..
application Make notification counts properly translatable 2015-12-03 07:06:39 -08:00
capability People - refine permissions on creating new users 2015-02-05 16:47:09 -08:00
conduit Add "Mailing List" users 2015-06-03 18:42:33 -07:00
config Add getGroup to ConfigOptions 2015-02-09 13:10:56 -08:00
controller Remove all setObjectURI() from ActionListViews 2015-12-17 08:30:22 -08:00
customfield Add "Mailing List" users 2015-06-03 18:42:33 -07:00
editor Add "Mailing List" users 2015-06-03 18:42:33 -07:00
event Filter archived Badges from UI 2015-12-10 10:49:42 -08:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
lipsum Rename PhutilRealnameContextFreeGrammar for consistency 2015-01-06 12:04:19 +11:00
markup Replace user "status" with "availability" 2015-05-14 11:15:04 -07:00
phid Mark PhabricatorPHIDType::getPHIDTypeApplicationClass() as abstract 2015-11-03 06:47:12 +11:00
policyrule Move some files around 2015-11-17 06:26:13 +11:00
query Badges ... on your profile 2015-07-23 11:46:34 -07:00
search Fix a broken class reference 2015-07-07 22:53:13 +10:00
searchfield Add basic typechecking support to Conduit 2015-12-14 04:21:39 -08:00
storage Begin improving modularity of IndexEngine, add locks 2015-12-21 17:04:10 -08:00
typeahead Mark some strings for translation 2015-06-09 23:06:52 +10:00
view Let users review their own account activity logs 2014-04-27 17:32:09 -07:00