Repository navigation
fix(engine): read nothing an inline project names when asking what it requires - #3533
jgregoriorincon merged 3 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewReviewed Bugs
Security
Performance
Quality
AGENTS.md
Change sizeCompared with the base branch (merge base 809e96f to PR head 3b6135d).
|
…oject check counts
|
On the unposted nits: |
Code reviewReviewed the single changed file, Bugs
Security
Performance
Quality
AGENTS.md
Twins
Earlier concerns
Change sizeCompared: the whole PR against main (merge base 809e96f to PR head 69a7597).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Code reviewI found no bugs, security issues or performance problems in this change. I posted no inline comments because I had nothing worth raising inline. I could not compile or run the tests here (no shell), so the verdict rests on reading the code. What I checked
Bugs: none confirmed.
Security: none. Performance: none. The raw read parses the same text once, and skipping truncation only means a few more layouts are walked. Quality: nothing that needs changing now. The doc comment at AGENTS.md: no breaks found. Surfaces are unchanged (no command, parameter, schema or ribbon change), and the new tests follow the test-hygiene rules. Prior reviews: three threads, all resolved. Two were fixed in 69a7597 (the test now asserts that loading keeps Change sizeCompared with the base branch: the whole PR against main (merge base 809e96f to PR head 69a7597).
|
Summary
Saving a project with a
project.openTextstep could request a raster that the step's inline project reads in place from a server, although the step doesn't run. To find out which capabilities the saved project requires, four checks loaded the inline project withProject::from_json, which repairs it and so reads what it names: generalised Shaded Relief, extent indicator numbers, north arrow font and scale bar font.They now ask through one function,
inline_project_requires, which reads the project without repair (Project::from_peer_raw), as the one-row legend check already did (#3489). The one-row check uses it too.One difference in what is required: the project is asked as written, so what loading it would cut, such as a layout past the most a project keeps, now counts: at worst an older release is asked for something loading would have dropped, never the other way round.
No command, parameter or description changes: this is the engine's check when a project is saved.
Testing
the_checks_of_an_inline_project_read_nothing_it_names: each of the four checks, with and without its feature, on the project as saved, without itsrequiresheader and nested in a task step, called directly and from a script. A local listener receives nothing. It failed before the fix on a received connection.an_inline_project_requires_what_loading_it_would_cut: a north arrow font in a layout past the limit. It failed before the fix.cargo nextest run -p rustgis-engine -E 'test(/capabilities/) + test(hostile_params_never_panic)': 81 passed.rustgis-engine, doctests, layers and schema checks,cargo xtask test-hygiene. Workspace nextest: 11875 of 11883 passed locally; the 8 failures are inrustgis-geolibre(7) andline_strokes_editor_edits_one_class, outside this change.rustgis-cli run --project outer.rgis --save out.rgis, 20 runs each, with a logging server as in the issue: no request in any case after the fix (8 to 12 of 20 before, with extent numbers or a font); the savedrequiresis unchanged.UI evidence
No visible UI change.
Related issue
Closes #3530
Summary by CodeRabbit