Type scene import plan source resolution#326
Conversation
80fe333 to
9bbad5a
Compare
|
これはマージ可能です。scene plan が resolved local request だけを受け、raw/normalized request や duplicate source path を下流に持ち込まない形なら価値があります。 条件は、non-local / unresolved source の失敗を plan 作成前に閉じ、plan 内で再検証しないことです。 |
There was a problem hiding this comment.
Pull request overview
This PR tightens typing around scene import plan source resolution by making SceneImportExecutionPlan operate on a single resolved-local request shape, removing redundant fields and runtime consistency checks, and narrowing downstream live-send connection inputs to only what’s required (dataset/mesh).
Changes:
- Refactored
SceneImportExecutionPlancreation to acceptResolvedLocalPlateauImportRequestand to embed the resolved request intoImportedSceneMetadata. - Removed
ResolvedSourcePathfromSceneImportRequestand updated call sites/tests accordingly. - Replaced downstream usage of a full normalized import request with a
LiveSendConnectionRequest(dataset + mesh code).
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/PlateauResoniteLink.Tests/UseCases/SceneImportExecutionPlanTests.cs | Updates plan tests to validate the new resolved-local plan creation path. |
| tests/PlateauResoniteLink.Tests/UseCases/PlateauImportServiceTests.cs | Adjusts assertions to reflect removal of NormalizedRequest/ResolvedSourcePath data flow. |
| tests/PlateauResoniteLink.Tests/Targets/ResoniteLiveSceneImportTargetTestSupport.cs | Updates test plan factory helpers to build ResolvedLocalPlateauImportRequest and use new plan API. |
| tests/PlateauResoniteLink.Tests/Targets/ResoniteLiveSceneImportTargetLifecycleTests.cs | Switches lifecycle tests to use updated plan creation helper instead of old plan constructor args. |
| src/PlateauResoniteLink/Targets/Resonite/ResoniteLiveSendStartRequestFactory.cs | Constructs LiveSendConnectionRequest directly from request metadata rather than passing full normalized import request. |
| src/PlateauResoniteLink/Targets/Resonite/ResoniteLiveSendRunStarter.cs | Updates LiveSendRunStartRequest to store LiveSendConnectionRequest and validates it. |
| src/PlateauResoniteLink/Targets/Resonite/ResoniteLiveSendConnectionInitializer.cs | Uses the typed ConnectionRequest when connecting the session. |
| src/PlateauResoniteLink/Application/Importing/SceneImportRequest.cs | Removes ResolvedSourcePath from the scene import request record. |
| src/PlateauResoniteLink/Application/Importing/SceneImportExecutionPlan.cs | Simplifies plan to carry only SceneImportRequest and provides Create that takes a resolved-local request. |
| src/PlateauResoniteLink/Application/Importing/PlateauImportService.cs | Creates plans from ResolvedLocalPlateauImportRequest and removes now-unneeded normalized/resolved parallel requests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4fdd70f042
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
When a custom IPlateauDatasetSourceResolver or direct caller passes a ValidatedPlateauImportRequest whose CityGML/DEM source is already local, these assignments silently replace that validated local path with whatever cityGmlSource/demTextureSource was supplied. The previous execution-plan consistency check only allowed equal local sources, so a resolver bug can now import from an unrelated local archive/ortho file while retaining the dataset, mesh code, and options of the user's original request; keep the local-source equality check before overwriting, while still allowing the expected remote-to-local materialization case.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
58d89e3 to
80270fe
Compare
6ac5a5d to
1aeacbc
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1aeacbc027
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
レビュー結論: 受け入れ不可です。
|
|
レビュー対応しました。
確認:
補足: 検証中に C: の空き不足で一度 build が失敗したため、repo worktree 配下の生成物 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec73c7ce7c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
追加レビュー対応しました。 remote request の場合も、resolved local source が URI から 確認:
|
|
#325 の更新を取り込んで conflict を解消しました。 解消内容:
検証:
|
|
ここにマージされたPRは受け入れ可能だが、このPR自体がレビューできなくなった。分離。 |
1f7cb0c to
c4fd4b2
Compare
|
restack しました。\n\n- #326 から live-send run contract と dynamic terrain projection result の commits を外し、scene import source resolution / resolved local request 境界に絞りました。\n- 最上位 #356 の tree は restack 前と同一で、runtime 内容は変えていません。\n- 検証: restore / format whitespace verify / Release build / Release test (1038 passed)。 |
c4fd4b2 to
54a4c78
Compare
Summary
Verification