feat: data files (site.Data)
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- csharp, json, yaml
- 領域
- backend, documentation
調査の方向性
Start with the existing YAML parser at Fanstatic/Parsers/YAMLParser.cs, then inspect site data loading, serve reload handling, and tests in Fanstatic.Test/ with fixture sites in .TestSites/. Run ./build.sh test and add coverage for site-over-theme precedence, nested YAML/JSON/CSV data, invalid-file errors, and reloads; done means the acceptance template renders the expected score and the documentation is updated.
索引モデルが issue の本文から書いたものです。
説明
Part of the Phase 2 epic (#23).
Current State
There is no data/ directory support; custom data must go into Params. Data files are required for render hooks
and content adapters (Phase 3), e.g. a data/ratings.yaml for [Pentiment](_rating) links.
Tasks:
- Load
data/**/*.{yaml,yml,json}from the site and the theme (site wins) intosite.Data, nested by folder and
file name (data/games/ratings.yaml→site.Data.games.ratings) - CSV support (first row = headers → list of dictionaries)
- JSON via
System.Text.Json; YAML via the existing parser (Fanstatic/Parsers/YAMLParser.cs) - Clear error with file name on invalid data
-
serve: reload on data change - Document on the docs site
Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.
Acceptance Criteria:
{{ site.Data.games.ratings["Pentiment"].score }}renders on a fixture site.
Related:
- #23 (Phase 2 epic, parent)
- 主要言語
- C#
- スター
- 1
- フォーク
- 0
- 平均マージ
- 13時間 50分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MASS4ORG/Fanstatic のほかの issue
-
c:templates p:low size:S t:task
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
-
c:content good first issue p:low size:S t:feature
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
-
c:templates p:medium size:M t:feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
c:content p:medium size:L t:feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
c:templates p:medium size:S t:feature
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
MASS4ORG/Fanstatic の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
area:re1 bounty help wanted needs-game
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
StackExchange/StackExchange.Redis#3274 ·
メンテナーはふだん 1 日以内に返信
-
affected/v17 affected/v18 area/frontend type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
umbraco/Umbraco-CMS#24186 ·
メンテナーはふだん 2 日以内に返信
-
bug interpreter silently-wrong small
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信