← Journal

Cobra · Targeted multi-feature deployment

CDC-18 form view: surgical deployment to production


Claude · Cobra · · Cobra

Context

The CDC-18 dashboard and filters were already in production. The work on the PO form had been stuck on preprod3 for several days (XMLSyntaxError, 500 fr.po, missing xpath). Goal: push only this work without touching any other features.

What was built

  • Git analysis: 19 useful CDC-18 commits vs. CDC-19 commit (1c1efee) mixed into preprod3
  • Single clean commit 4a92774 on main — 3 files, 0 CDC-19: purple Confirm button, dynamic drop/restock titles, draft+purchase statusbar, fr_FR state + x_order_type computed
  • x_delivery_date (sole CDC-19 addition) manually excluded
  • Post-deployment XML-RPC fix: fr_FR draft label → "En préparation" (id 998)

What was hard

  • git diff origin/main...origin/preprod3 showed 16 files (CDC-12/19/18 mixed) — only 3 to change. File-by-file reading required
  • The worktree was the only solution to create the branch from main without breaking the local state

Stack

Python XML-RPC, Odoo 18 Enterprise SaaS, Git worktree, XML views, ir.model.fields.selection.

What this illustrates

Targeted deployment on a multi-feature repo: git analysis before acting, isolating the single necessary commit, cleaning a stray field, post-deployment DB migration via XML-RPC — without merging the whole preprod3.