Repository navigation
fix(project): check a saved layout import step against the layout its command reads - #3552
jgregoriorincon wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewVerdict: I found no bugs, security issues or AGENTS.md breaks in this change. I did not run the tests (no shell here), so the new test's pass is unverified. I read the code paths it depends on. Bugs: None found.
Security: None found. The new code uses Performance: None found. Quality (not posted as inline comments; minor):
Test claims checked by reading:
Twins checked:
AGENTS.md: No break found.
Prior concerns: There were no earlier review threads, so none were left alone. No inline comments were posted because I found no finding worth one. Change sizeCompared with the base branch: the whole PR against main (merge base 5799813 to PR head f98f8ce).
|
|
On the two minor points of the review, no change in this PR:
|
Summary
A saved step (task, model, script or history) that brings in a layout had its project requirements worked out from
datawhen it carried one, and fromtextotherwise.report.existingTemplatereads them in that order, butlayout.importreadstextand neverdata. A step with a layout intextthat uses a newer option and a plain layout indatasaved a project that didn't require that capability, so an older release wouldn't refuse it, although the layout the step imports uses an option that release drops.The requirements now come from the layout each command reads (
imported_layoutinproject_capabilities.rs):layout.import:textonly.report.existingTemplate: nothing whenlayoutnames a layout of the project (the same cause: anytextordatabeside it was checked although the command ignores it); otherwisedata, thentext, as before.No command, parameter or file format changes. Desktop, browser, command line and Python share this engine code.
Testing
a_saved_import_step_is_checked_against_the_layout_its_command_reads(tests/layout_files.rs): both commands, a script line, an inline model step, and a task run showing the imported layout is the one checked. It fails onmainand passes here.cargo nextest run -p rustgis-engine -E 'test(layout_) | test(capabilit) | test(an_inline_graph_node)': 542 passed.rustgis-cli: norequiresonmain,["layout-element-wrap"]here.cargo fmt --allandcargo clippy -p rustgis-engine --all-targets -- -D warnings: clean.UI evidence
No visible UI change.
Related issue
Closes #3482
Summary by CodeRabbit