0.7 upgrade path: adopt the schema objects 0.6.16+ installs

Abierto
#784 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
postgresql, python, rust
Área
backend, database

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
37
Forks
8
Merge medio
14 h 16 min
PR fusionados (30 d)
244

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hardbyte/awa

Todos los issues de hardbyte/awa

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.