Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Bricks: split PackageResolver.MaterializeTwinAsync

オープン
#321 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
tooling

調査の方向性

Open Gaya/MASS4.Bricks/PackageResolver.Twins.cs and read MaterializeTwinAsync and its callees. Apply the pending cached-bake fix first, then introduce a private value holding the parameters and move the index/cached/published path into a separate async step. 'Done' is the full suite green with no test changes and each changed method at complexity ≤8 and CRAP ≤15.

索引モデルが issue の本文から書いたものです。

説明

c:gaya p:low size:XS t:refactor

Current State

PackageResolver.MaterializeTwinAsync (Gaya/MASS4.Bricks/PackageResolver.Twins.cs) scored CRAP 32 in the store contract client batch (96a5587): one async body reads the lock, the package store, the registry index and the variant choice. The pending cached-bake fix splits out CachedTwin, CheckedTwinAsync and AvailableTwinAsync, which brings it to complexity 14 at the 15 limit, with AvailableTwinAsync taking eleven parameters. Branches from static-lambda caching, the strict-lock exit, the index fetch and the cached path still add up in one state machine.

Tasks

  • Carry the source id, ranges, requester, depth, existing lock and locked bake in one private value instead of separate parameters
  • Keep the strict-lock exit in a synchronous MaterializeTwinAsync and move the index/cached/published path into its own async step
  • Pass that value to AvailableTwinAsync instead of its parameter list

Acceptance Criteria

  • Behavior unchanged: no test edited, full suite green
  • Every changed method has complexity ≤ 8 and CRAP ≤ 15

Related

  • Lands after the cached/locked bake compatibility and advisory fix
主要言語
C#
スター
1
フォーク
1
平均マージ
1時間 46分
マージ済み PR(30日)
41

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MASS4ORG/Turian のほかの issue

MASS4ORG/Turian の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。