feat: sections tree (Sections, Ancestors, FirstSection)
まだ誰も着手していません。
評価
調査の方向性
Start with Fanstatic/Models/Page.cs:38-64 to understand the existing Parent and Pages members, then inspect FluidTemplateEngine and the Phase 1 caching issues. Check Fanstatic.Test/ and .TestSites/ for test patterns and fixtures, and run ./build.sh test. Done means the requested section members work in each page’s language and output format, caching and Fluid registration are handled as needed, the page-variables docs are updated, and the breadcrumb acceptance example works.
索引モデルが issue の本文から書いたものです。
説明
Part of the Phase 2 epic (#23).
Current State
Pages expose Parent (Fanstatic/Models/Page.cs:38-64) and Pages, but there is no way to walk the section
hierarchy: no page.Ancestors, page.Sections, page.FirstSection or site.Sections. Breadcrumbs and nested
menus need these.
Tasks:
-
page.Ancestors(parent first, home last),page.FirstSection,page.Sections(child sections),
site.Sections(top-level sections), all in the page's language and output format - Cache them per page (see the Phase 1 caching issues)
- Register new types/members with Fluid if needed (
FluidTemplateEngineconstructor) - Document on the page-variables docs
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:
- A breadcrumb partial works with
{% for a in page.Ancestors reversed %}.
Related:
- #23 (Phase 2 epic, parent)
- 主要言語
- C#
- スター
- 1
- フォーク
- 0
- 平均マージ
- 10時間 23分
- マージ済み PR(30日)
- 4
環境構築
- 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
-
ready-for-agent size:S status:todo
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
elsa-workflows/elsa-foundation#2830 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Edit Bar buttons are not localized対応中かも @idumlupinar が今日担当しました。 オープンStatus: New
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
dnnsoftware/Dnn.Platform#7565 ·
メンテナーはふだん 1 日以内に返信
-
AzureBlobSnapshotStore.LoadAsync allocates the snapshot twice (growable MemoryStream + ToArray)オープンenhancement
難易度 2/5 半日 初心者へのやさしさ 72/100
-
難易度 2/5 半日 初心者へのやさしさ 70/100