Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#28 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
76/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp, json
Lĩnh vực
database, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
C#
Star
0
Fork
1
Merge trung bình
1 giờ 21 phút
Pull request đã merge (30 ngày)
22

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của hazeliscoding/prompuff

Tất cả issue của hazeliscoding/prompuff

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.