Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#28 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
76/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, json
Ambito
database, testing

Direzione di ricerca

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.

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

Descrizione

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.
Lingua principale
C#
Stelle
0
Fork
1
Merge medio
1h 51m
PR unite (30g)
13

Preparare l'ambiente

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

Tutte le issue di hazeliscoding/prompuff

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.