Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Record 1.2's settings in `settings-1.2.0.json`

Cerrado
#28 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
76/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp, json
Área
database, testing

Línea de trabajo

Start with JsonSettingsStoreTests.cs and its Settings_saved_by_1_0_keep_every_choice test and Write_fixture helper; check how PinnedFixtures.cs and PinnedFixtureTests.cs pin fixture files. After the other v1.2 issues land, run the fixture writer and record every setting changed from default as saved on Windows. Done means the 1.2 fixture is pinned and its comparison test passes alongside the 1.0 test.

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

Descripción

Whatever ships joins the 1.0 promise, and settings carry over. settings-1.0.0.json holds 1.0 to that. 1.2's new settings need a recording of their own, so later versions keep them too.

What to do

  • Once the other v1.2 issues have landed, write tests/Prompuff.Infrastructure.Tests/Fixtures/settings-1.2.0.json with every setting changed from its default, as 1.2 saves it on Windows, and pin it in tests/pinned-fixtures.sha256.
  • Add a test like Settings_saved_by_1_0_keep_every_choice that compares every value in the new recording.
  • Write_fixture writes settings-1.0.0.json today. Let it write the 1.2 file instead of adding a second writer. It must keep refusing to overwrite a pinned file.
  • Never edit, regenerate or delete settings-1.0.0.json. If 1.2 can't read it, fix the code.

Where to look

  • tests/Prompuff.Infrastructure.Tests/JsonSettingsStoreTests.cs: Settings_saved_by_1_0_keep_every_choice, Write_fixture (PROMPUFF_WRITE_SETTINGS_FIXTURE)
  • tests/Shared/PinnedFixtures.cs and tests/Prompuff.Infrastructure.Tests/PinnedFixtureTests.cs

Done when

  • settings-1.2.0.json is pinned, and its test passes beside the 1.0 one.
Lenguaje dominante
C#
Estrellas
0
Forks
1
Merge medio
1 h 21 min
PR fusionados (30 d)
22

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 hazeliscoding/prompuff

Todos los issues de hazeliscoding/prompuff

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.