Import 0.x stores into SQLite on first start

Abierto
#53 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
57/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java, sqlite

Línea de trabajo

Start by reading the implementation and migration plan for dependency #52, then inspect how the plugin currently reads its 0.x HOCON stores file and initializes SQLite. Add coverage using a sample legacy file with malformed entries. Done means the first start imports stores, items, prices, and balances, reports skipped entries, preserves the old file under a migrated name, and a restart does not import again.

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

Descripción

enhancement

Problem

Servers upgrading to 1.0 have their stores in the old HOCON file. They need to keep them when storage moves to SQLite.

Scope

  • On the first start with an empty database, read the old stores file and write everything into SQLite.
  • Rename the old file afterward (for example stores.conf.migrated) instead of deleting it.
  • Log a clear summary: stores imported, and anything skipped and why.
  • Convert custom messages in config.yml to the new message format, if the messaging rework (#20) has landed by then.

Done when

  • A 0.4.0 data folder upgrades to 1.0 with every store, item, price and balance intact.
  • Restarting after the import doesn't import again.
  • Tests cover a sample 0.x file, including malformed entries.

Depends on #52.

Lenguaje dominante
Java
Estrellas
1
Forks
0
Merge medio
2 h 35 min
PR fusionados (30 d)
14

Preparar el entorno

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 BrendonButler/Shops

Todos los issues de BrendonButler/Shops

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.