stable

Clone or download

Read-only

Delete indexed tracker field content on project and artifact removal

To test you can create an artifact and then delete it. The entry should not be present anymore in the DB table plugin_fts_db_search. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: Ia9443f0a66d6ff0a53d006f07d7e131f02f3e814

Modified Files

Name
M plugins/fts_db/include/Index/Adapter/SearchDAO.php +35 −10 Go to diff View file
A plugins/fts_db/include/Index/DeleteIndexedItems.php +30 −0 Go to diff View file
M plugins/fts_db/include/fts_dbPlugin.php +7 −0 Go to diff View file
M plugins/fts_db/tests/integration/Index/Adapter/SearchDAOTest.php +26 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArchiveAndDeleteArtifactTask.php +3 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArchiveAndDeleteArtifactTaskBuilder.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/FieldContentIndexer.php +24 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +4 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ArtifactsDeletion/ArchiveAndDeleteArtifactTaskTest.php +9 −6 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/FieldContentIndexerTest.php +46 −0 Go to diff View file
A src/common/Search/IndexedItemsToRemove.php +42 −0 Go to diff View file