Collection edit: edited links/providers keep unknown fields; preview shows the merged save (#102 follow-up)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 57/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- python, typescript
調査の方向性
Start with app/src/lib/stac-api/collectionEdit.ts and its merge tests in app/src/__tests__/collection-edit-merge.test.ts; compare how assets merge by key with links and providers. Then inspect the preview in app/src/components/collections/CollectionForm.tsx and the Zod schemas in app/src/lib/stac-api/schemas.ts. Done means edited entries retain stored unknown fields, the preview reflects the saved merge or is clearly labeled, and the re-read/PUT race is either documented in docs/ISSUES.md or scoped for conditional writes.
索引モデルが issue の本文から書いたものです。
説明
Follow-up from #102 / PR #117. Saving Edit product now re-reads the stored document and three-way merges it (app/src/lib/stac-api/collectionEdit.ts), so untouched fields and unknown keys survive. Three gaps were left on purpose and listed in PR #117's "Known limits":
Acceptance criteria
- An edited link or provider keeps its unknown fields. The form's Zod schemas (
stacLinkSchema,stacProviderSchemainapp/src/lib/stac-api/schemas.ts) strip unknown fields. When the user changes any link or provider, the merge takes the form's whole array, so every entry loses fields like a link'smethod/body/headersor extension fields. Untouched arrays are fine because they keep the stored copy. Merge per entry, the way assets already merge per key: lay each edited entry over the stored one, matched by index or byhref+relfor links andnamefor providers. - The JSON preview shows what will be saved. The sidebar preview renders
formToStacCollection(watch()), not the merged document, so on an edit it hides the keys that will be kept (cube:dimensions,item_assets, ...). Either preview the merge against the loaded document (no re-read needed for the preview), or label the preview as "fields this form edits". - Decide on the re-read/PUT race. A pipeline publish that lands between the re-read and the
PUT(milliseconds) can still be overwritten; the next commit or the hourly maintenance republish (Z-6) repairs a cube collection. Closing the gap needs a conditional write (ETag /If-Match) through the BFF, which stac-fastapi-pgstac doesn't offer today. Either record it as an accepted limitation indocs/ISSUES.md, or scope the conditional write.
Files in scope
app/src/lib/stac-api/collectionEdit.ts, app/src/components/collections/CollectionForm.tsx, app/src/__tests__/collection-edit-merge.test.ts, docs/ISSUES.md (for the third item, if accepted).
- 主要言語
- Python
- スター
- 0
- フォーク
- 2
- 平均マージ
- 8時間 26分
- マージ済み PR(30日)
- 47
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TechTraverse/stac-higher のほかの issue
-
ci
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
TechTraverse/stac-higher#261 ·
メンテナーはふだん 1 日以内に返信
-
ready
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TechTraverse/stac-higher#258 ·
メンテナーはふだん 1 日以内に返信
-
Error messages hide the server's reason: users see only '400 Bad Request'対応中かも @aman-code-io が 3 日前に担当しました。 オープンbug good first issue ready
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
TechTraverse/stac-higher#232 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
TechTraverse/stac-higher#225 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
TechTraverse/stac-higher#216 ·
メンテナーはふだん 1 日以内に返信
TechTraverse/stac-higher の issue をすべて見る
似ている issue
-
docs(contributing): the two things that silently block a PR対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンavailable documentation good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
Nixitov/Riptide-Native#944 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JTHCode/secretguard#24 ·
メンテナーはふだん 1 日以内に返信
-
area: middleware documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 ·
メンテナーはふだん 1 日以内に返信