From 42d1111a18f7ca419242ba3f7552d4c5079e217c Mon Sep 17 00:00:00 2001 From: Jon Froehlich Date: Wed, 17 Jun 2026 20:55:40 -0700 Subject: [PATCH] chore(people): remove one-shot prod merge from entrypoint (#1275) The 2.11.0 prod deploy applied the merge: Data Health on prod now shows 0 url_name collisions and 2 duplicate-people rows (the intended jasminezhang namesakes). Drop the PROD-gated merge_duplicate_people one-shot from docker-entrypoint.sh so future prod restarts don't re-run it. recompute_url_names stays (now step 4.8) as the durable de-collision pass. The command, dedup_decisions.csv (audit record), and tests remain in the repo. Co-Authored-By: Claude Opus 4.8 (1M context) --- docker-entrypoint.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 64a208ea..3b324335 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -116,18 +116,7 @@ echo "******************************************" python manage.py backfill_project_visibility echo "****************** STEP 4.8/5: docker-entrypoint.sh ************************" -echo "4.8 Running 'python manage.py merge_duplicate_people' (PROD only) to consolidate duplicate Person records (#1275)" -echo "******************************************" -# ONE-SHOT (remove after the first prod run confirms in /logs). Gated to PROD -# because dedup_decisions.csv is keyed by production ids; the merge command also -# refuses name-mismatched pairs as a backstop. Idempotent, so a lingering run is -# a harmless no-op once the duplicates are already merged. -if [ "$DJANGO_ENV" = "PROD" ]; then - python manage.py merge_duplicate_people --decisions dedup_decisions.csv --apply -fi - -echo "****************** STEP 4.9/5: docker-entrypoint.sh ************************" -echo "4.9 Running 'python manage.py recompute_url_names' to de-collide historical url_names (#1206)" +echo "4.8 Running 'python manage.py recompute_url_names' to de-collide historical url_names (#1206)" echo "******************************************" python manage.py recompute_url_names