Ship the bundle's own Doctrine migrations, so apps don't generate them
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start by reading the bundle's Doctrine entity mappings and the existing migration configuration to identify the tables and migration entry points involved. The proposal leaves baseline strategy, adoption by existing apps, supported database platforms, and ordering unresolved, so those decisions need to be settled before implementation. Done means the bundle ships migrations for its mapped schema and apps can adopt them without regenerating those migrations locally.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Proposal
The bundle ships Doctrine migrations for its own schema: every table its entities map. Apps then receive them with composer update, through doctrine_migrations.migrations_paths with a bundle namespace.
Why
Almost every table in a CWA app belongs to the bundle's entities. Today each app generates migrations for them itself (doctrine:migrations:diff after updating the bundle), and the template's downstream sites copy the template's generated files. That causes three problems:
- Data migrations aren't shared:
diffonly produces schema changes, so a backfill the bundle needs has to be copied by hand. - Sites drift: each app's generated SQL can differ slightly from the next.
- Every bundle schema change needs a template release and a copy step in every downstream site.
If the bundle shipped them, the template would only need migrations for its own entities (today just the Redis watch state). It would also make squashing the template's history at beta simpler: https://github.com/components-web-app/components-web-app/issues/192
Questions for the bundle
- One baseline at the bundle's beta, then incremental migrations?
- How existing apps take over: their databases already have these tables from their own generated migrations. They'd mark the bundle's baseline as done (
doctrine:migrations:version --add) once, after checkingdiffis clean. - Database platforms: PostgreSQL first? The bundle already lists PostgreSQL, MySQL, MariaDB and SQLite for route-security rules.
- Ordering between bundle migrations and an app's own (Doctrine sorts by version across namespaces).
- Lenguaje dominante
- PHP
- Estrellas
- 32
- Forks
- 8
- Merge medio
- 56 min
- PR fusionados (30 d)
- 164
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de components-web-app/api-components-bundle
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
components-web-app/api-components-bundle#333 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
components-web-app/api-components-bundle#325 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
components-web-app/api-components-bundle#259 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
components-web-app/api-components-bundle#186 ·
Los mantenedores suelen responder en 1 día
Todos los issues de components-web-app/api-components-bundle
Issues similares
-
good first issue ux
Dificultad 1/5 Menos de una hora Aptitud para principiantes 89/100
alleyinteractive/wp-curate#498 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
mollie/PrestaShop#1593 ·
Los mantenedores suelen responder en 7 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
升级 PHP 8.5 后报错Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
Update Support Monitor URL to monitor.fueled.devPosiblemente ocupada @claytoncollie la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
10up/10up-experience#241 ·