stable

Clone or download

Read-only

Indexing all items does not rely on async processing

Indexing all items is an operation that generates a lot of events which can saturate standard Tuleap operations. Note this means the full-indexing is a bit slower since it does not benefit from the parallelism provided by multiple workers. While this can be an inconvenience it also acts as a rate limiter making it to run it during standard operations if you have a bit of spare capacity. To test, launch `tuleap full-text-search:index-all-items` it should index everything without adding async worker events. If you edit an artifact, the indexing is still managed asynchrounously. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: I4c609662a527ac768e6d4723f5a9e22aee4393c2

Modified Files

Name
M plugins/fts_db/include/CLI/IndexAllItemsCommand.php +11 −5 Go to diff View file
A plugins/fts_db/include/Index/ItemToIndexQueueImmediate.php +38 −0 Go to diff View file
M plugins/fts_db/include/fts_dbPlugin.php +5 −1 Go to diff View file
M plugins/fts_db/tests/unit/CLI/IndexAllItemsCommandTest.php +8 −1 Go to diff View file
A plugins/fts_db/tests/unit/Index/ItemToIndexQueueImmediateTest.php +48 −0 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +3 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationCreationProcessorBuilder.php +2 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationUpdateProcessorBuilder.php +4 −1 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementCreationProcessorBuilder.php +4 −1 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateProcessorBuilder.php +4 −1 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +4 −1 Go to diff View file
M plugins/taskboard/include/REST/v1/Card/CardPatcher.php +4 −1 Go to diff View file
M plugins/taskboard/include/REST/v1/Cell/CardMappedFieldUpdater.php +4 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php +2 −0 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ExecutionsResource.class.php +4 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/Step/Definition/Field/StepDefinition.php +9 −4 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Artifact.php +4 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArchiveAndDeleteArtifactTaskBuilder.php +3 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/Comment/ChangesetCommentIndexer.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_Changeset.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/XMLImportBuilder.class.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/FieldContentIndexer.php +6 −3 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_String.php +9 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.php +9 −4 Go to diff View file
M plugins/tracker/include/Tracker/Search/IndexAllArtifactsProcessor.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +2 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +7 −2 Go to diff View file
M plugins/tracker/tests/unit/Artifact/Changeset/Comment/ChangesetCommentIndexerTest.php +2 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/FieldContentIndexerTest.php +22 −22 Go to diff View file
M src/common/Search/IndexAllPossibleItemsEvent.php +6 −1 Go to diff View file
A src/common/Search/ItemToIndexQueue.php +28 −0 Go to diff View file
A src/common/Search/ItemToIndexQueueEventBased.php +37 −0 Go to diff View file
A tests/unit/common/Search/ItemToIndexQueueEventBasedTest.php +46 −0 Go to diff View file
A tests/unit/common/Search/ItemToIndexQueueStub.php +53 −0 Go to diff View file