0.7 upgrade path: adopt the schema objects 0.6.16+ installs

Aperta
#784 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, python, rust
Ambito
backend, database

Direzione di ricerca

Start with the objects listed in the issue and the migrations or repeatable patches from #675, #707, and #721; review the upgrade guide at docs/upgrade-0.6-to-0.7.md. The issue also points to the rehearsal retarget issue linked from #383 for inventory checks. Done means patched 0.6.16+ upgrades preserve or deliberately retire each object, the named APIs work on 0.7, and rehearsal inventories match a fresh 0.7 install apart from a documented allowlist.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

0.6.16 and 0.6.17 databases carry objects that no main migration knows about, so upgrading a patched 0.6 database to 0.7 leaves them orphaned and drops the features built on them.

Objects

  • awa.runtime_controls and awa.runtime_control_observations, from #675: durable prune controls (awa control halt|status|resume, ADR-052 Phase 1). ADR-052 is on main as Proposed; the schema and CLI are not.
  • awa.runtime_maintenance_eligibility, from #707: maintenance_leader(false) in the Rust and Python APIs.
  • Any function or table a later 0.6 repeatable patch adds, including whatever ships for #721. For example, the claim_slot_<n> functions proposed in #748 would be left beside v051's claim_ready_slot_<n> after the upgrade.

Done when

  • Each object is either adopted by a 0.7 migration with the same shape, so the migration is a no-op on a patched 0.6 database and creates the object on a fresh install, or deliberately retired, with the reason in the upgrade guide.
  • awa control and maintenance_leader(false) keep working on 0.7 (forward-port of #675 and #707).
  • The upgrade rehearsal from released 0.6.17 and 0.6.18 checks that the function, table and trigger inventory after migration equals a fresh 0.7 install, apart from a documented allowlist. That check is tracked in the rehearsal retarget issue linked from #383.
  • docs/upgrade-0.6-to-0.7.md covers starting from 0.6.16 or later.

Part of #383.

Lingua principale
Rust
Stelle
37
Fork
8
Merge medio
14h 16m
PR unite (30g)
244

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hardbyte/awa

Tutte le issue di hardbyte/awa

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.