stable

Clone or download

Read-only

Make the project ID an "always there" information of the indexed items

Most of the items Tuleap works with are associated to a project. Having a standard way to provide this information ofr indexed items present some advantages: * each plugins does not need to implement the removal of its indexed items when a project is deleted, it can be managed by the FTS backend plugin directly * the removal of the items can be done in a more efficient way since we can remove all items at once * it should reduce the size of the K/V metadata table a bit No functional changes. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: Ifb45680a20147b3e3f0e83561f9a66d18079c393

Modified Files

Name
M plugins/fts_common/include/FullTextSearchBackendPlugin.php +11 −0 Go to diff View file
M plugins/fts_common/include/Index/Asynchronous/IndexItemTask.php +4 −1 Go to diff View file
M plugins/fts_common/include/Index/DeleteIndexedItems.php +1 −0 Go to diff View file
M plugins/fts_common/tests/unit/Index/Asynchronous/IndexItemTaskTest.php +4 −4 Go to diff View file
M plugins/fts_common/tests/unit/Index/Asynchronous/IndexingWorkerEventDispatcherTest.php +5 −1 Go to diff View file
M plugins/fts_common/tests/unit/Index/ItemToIndexLimitedBatchQueueTest.php +3 −3 Go to diff View file
M plugins/fts_db/db/install.sql +2 −0 Go to diff View file
A plugins/fts_db/db/mysql/2022/202209151420_move_project_id_to_main_table.php +49 −0 Go to diff View file
M plugins/fts_db/include/Index/SearchDAO.php +20 −2 Go to diff View file
M plugins/fts_db/tests/integration/Index/SearchDAOTest.php +23 −9 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/Comment/ChangesetCommentIndexer.php +1 −13 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/FieldContentIndexer.php +1 −13 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +0 −3 Go to diff View file
M plugins/tracker/tests/unit/Artifact/Changeset/Comment/ChangesetCommentIndexerTest.php +2 −25 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/FieldContentIndexerTest.php +1 −24 Go to diff View file
M src/common/Search/ItemToIndex.php +1 −0 Go to diff View file
M tests/unit/common/Search/ItemToIndexQueueEventBasedTest.php +1 −1 Go to diff View file