GitSync: an Ignore pattern added after the first import leaves the imported nodes in place, and on a one-way Space nobody can remove them
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #7641 @rbuergi による — マージ済み
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp
- 領域
- authorization, backend
調査の方向性
Start with src/MeshWeaver.Graph/StaticRepoImporter.cs, src/MeshWeaver.Mesh.Contract/IStaticRepoSource.cs, and src/MeshWeaver.Mesh.Contract/Services/AccessAssignmentGuard.cs; review the behavior introduced by #1326 and #5140. Determine how to identify nodes imported by this source and choose among the three proposed outcomes. Done means ignored imported nodes can be handled safely without removing mesh-minted nodes, with the selected behavior covered and documented as appropriate.
索引モデルが issue の本文から書いたものです。
説明
Why this repository
The sync source (src/MeshWeaver.GitSync), the import prune (src/MeshWeaver.Graph/StaticRepoImporter.cs,
src/MeshWeaver.Mesh.Contract/IStaticRepoSource.cs) and the system-owned write cap
(src/MeshWeaver.Mesh.Contract/Services/AccessAssignmentGuard.cs) are platform code. Prior art checked:
#1326 (closed) made the prune skip ignored paths; #5140 (closed) made the write cap cover a Space's own
Admin; #1120 (closed) keeps the last Admin grant; #3589 (closed) covers files the repository dropped, not
files the Ignore list excludes. No open issue covers the combination.
What happens
Measured on an enterprise client's control instance, build 3.1.12009 (commit e4f379d), on 2026-10-29.
- A Space is created by hand and
{space}/_GitSyncis configured one-way (Two-way off) on a
subdirectory that holds four deployment records. "Update to latest" imports all four. Three of them
describe another estate. - The administrator adds the three file names to the Ignore list, as the field offers ("Ignore
patterns (gitignore-style, relative to the Space root)"). - The three imported nodes stay. The prune skips ignored paths by design since #1326
(IStaticRepoSource.cs: "the prune MUST skip it"), so "Update to latest" and "Re-import" leave them
untouched. - Nobody can remove them. The Space is system-owned, so the write cap turns every user's permission on
content paths to read-only, the Admin's included (#5140). The Delete entry is filtered out of the node
menu. Only the System identity may write, and no operation asks it to remove the nodes. - The nodes are neither synced nor owned: a projection the repository no longer controls, frozen at
the last imported version. In the measured case the Hosting control plane treated them as fleet
members: a record-change Reconcile dispatched against a repository the instance's App has no rights
on (404, terminal), and the fleet watch wrote a row for a record whose host is the placeholder
"TODO".
Workaround that worked
Tick Two-way on the sync configuration (the Space stops being system-owned and the cap lifts), delete
each node through /{node}/Delete, untick Two-way. It works only because the retraction sweep keeps the
last Admin grant (#1120). It is undocumented, and while Two-way is on, every Admin may edit the records
the repository owns.
Expected
One of the following, for the maintainers to choose:
- An "Update to latest" after the Ignore list changed removes the nodes this source imported under the
now-ignored paths, and keeps nodes the mesh minted under the same pattern (theRelease/case of
#1326). This needs the importer to tell its own imports from mesh-minted nodes; I did not establish
whether the stored nodes carry that fact. - The GitHub Sync settings tab offers an explicit action, run as System, that lists the imported nodes
the Ignore list now excludes and removes them after confirmation. - At least, saving an Ignore pattern that matches already-imported nodes warns that they stay, and
Doc/Architecture/GitHubSyncsays so.
Not established
- Whether
/{node}/Deleteis refused for the Space's Admin while the Space is system-owned. The menu
entry was absent; the URL was tried only after Two-way was on. (The node type in question draws its
own landing page without the header menu, so the absent entry alone proves nothing.) - Whether the retraction sweep ran on the measured Space. The Admin grant was effective once Two-way
was on, which fits "last Admin kept".
- 主要言語
- C#
- スター
- 12
- フォーク
- 5
- 平均マージ
- 5時間 15分
- マージ済み PR(30日)
- 980
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Systemorph/MeshWeaver のほかの issue
-
bug sev:M
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
Systemorph/MeshWeaver#7754 ·
メンテナーはふだん 1 日以内に返信
-
Key exchange follow-ups: registry hook 500 ambiguity and an exchange health line (split from #7484)オープンenhancement sev:M
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Systemorph/MeshWeaver#7721 ·
メンテナーはふだん 1 日以内に返信
-
bug sev:L
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Systemorph/MeshWeaver#7707 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
-
bug feature:partition-access-policy sev:H
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Systemorph/MeshWeaver#7687 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug sev:M
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Systemorph/MeshWeaver#7678 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
Systemorph/MeshWeaver の issue をすべて見る
似ている issue
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug godot
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信