-
Notifications
You must be signed in to change notification settings - Fork 1
Tool for un-merging incorrectly merged locations #700
Comments
For the moment I'll build this as a non-API tool - it will live at |
Current merge locations tool implementation: vial/vaccinate/core/tool_views.py Lines 212 to 238 in 3aca574
Which calls this function: vial/vaccinate/core/utils_merge_locations.py Lines 7 to 52 in 3aca574
The trickiest thing to unwind here is the reports and source locations that were re-pointed at the winner. Thankfully we record details of what happened here: details = {
"winner_report_ids": list(winner.reports.values_list("pk", flat=True)),
"loser_report_ids": list(loser.reports.values_list("pk", flat=True)),
"winner_matched_source_location_ids": list(
winner.matched_source_locations.values_list("pk", flat=True)
),
"loser_matched_source_location_ids": list(
loser.matched_source_locations.values_list("pk", flat=True)
),
"winner_concordances": winner_concordances,
"loser_concordances": loser_concordances,
} |
The |
https://discord.com/channels/799147121357881364/824443781990187008/859157576117780520 - it turns out we have some locations that have been incorrectly merged and we need a tool to fix them.
The text was updated successfully, but these errors were encountered: