stable

Clone or download

Read-only

Add the possibility to index existing items

For now the approach is quite limited: the indexing cannot be restarted (starting the indexing again will try to re-index everything). We do our best to make possible for PHP's garbage collector to collect unused parts of the object graph by creating new instances of the Tracker_ArtifactFactory class while traversing all the existing artifacts. We will improve the "full re-index" once we have the possibility to manage the actual additions into the index asynchronously at a lower priority than other events. Our main goal for now is to have the possibility to generate a index on some production instances to see how the feature behaves. To test, you can run `tuleap full-text-search:index-all-items`. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: I790f395fcf1b312f90679de55eff51c0ad008af9

Modified Files

Name
A plugins/fts_db/include/CLI/IndexAllItemsCommand.php +57 −0 Go to diff View file
A plugins/fts_db/include/CLI/ProgressQueueIndexItemCategorySymfonyOutput.php +55 −0 Go to diff View file
M plugins/fts_db/include/fts_dbPlugin.php +13 −0 Go to diff View file
A plugins/fts_db/tests/unit/CLI/IndexAllItemsCommandTest.php +43 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php +4 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_String.php +19 −5 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.php +23 −8 Go to diff View file
A plugins/tracker/include/Tracker/Search/IndexAllArtifactsProcessor.php +76 −0 Go to diff View file
A plugins/tracker/include/Tracker/Search/IndexArtifactDAO.php +42 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +17 −0 Go to diff View file
A src/common/Search/IndexAllPossibleItemsEvent.php +42 −0 Go to diff View file
A src/common/Search/ProgressQueueIndexItemCategory.php +30 −0 Go to diff View file