Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ddp_lib/dataset_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ def register_legacy_population(self, population_id):
Existing physical objects still require explicit, verified adoption.
Legacy arrays never authorize taking over an unstamped catalog object.
"""
# I06 preserves the arrays as evidence, but a reviewed cutover must not
# turn excluded/missing legacy choices into a later hidden CREATE.
document = self.database['populations'].find_one({'_id': population_id})
if document and document.get('legacy_indexes_retired') is True:
return
targets = self.population_targets(population_id)
population = targets[0]
docs = list(population.document.get('query_indexes') or [])
Expand Down
Loading
Loading