Update delete entry
@@ -196,6 +196,15 @@ class DataPack(BasePack):
del target[i + begin]
break
+ # update basic index
+ del self.index.entry_index[entry.tid]
+ self.index.type_index[type(entry)].remove(entry.tid)
+ self.index.component_index[entry.component].remove(entry.tid)
+ # set other index invalid
+ self.index.turn_link_index_switch(on=False)
+ self.index.turn_group_index_switch(on=False)
+ self.index.activate_or_deactivate_coverage_index(activate=False)
+
def record_fields(self, fields: List[str], entry_type: Type[Entry],
component: str):
"""Record in the internal meta that the ``entry_type`` generated by
