Repository navigation
perf(engine): walk Project Crs fields directly for crs-wkt (#2909) - #3058
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewScope: 2 files, +179/−9 lines. The PR replaces the Bugs
Security
Performance
Quality
AGENTS.md
Prior reviews: none on this PR, so I left no earlier concerns alone. Change sizeCompared: the whole PR against main (merge base b985666 to PR head 98a3f11).
|
📖 Docs previewCommit |
Code reviewI found no bugs, security problems, or AGENTS.md violations. The review is static only: I had no shell, so I did not compile or run the tests the PR lists. Bugs: None found.
Security: None found. There is no new input parsing and no unwrap, expect, or panic in non-test code. Performance: Low, confidence medium.
Quality: Nits, grouped here rather than posted inline.
AGENTS.md: No violations found. I checked these rules:
Prior concerns: 1 thread already on this PR was left alone, because it is resolved and the author's reply addresses it. Twins checked: The diff touches no read route, overlay tool, Change sizeCompared with the base branch: the whole PR against main (merge base b985666 to PR head e0e4d1b).
|
e0e4d1b to
3d599fe
Compare
Code reviewOverall the change is sound. The hand-written walk matches the serialization for every Bugs
Security
Performance
Quality
AGENTS.md
Prior reviews
Change sizeCompared with the base branch (merge base 67800ac to PR head 3d599fe), whole PR.
|
Summary
Crs::needs_wkt(self)incrates/data/src/raster/crs.rsto check whether aCrs::Customdefinition requirescrs-wktwithout serializing, and updatesaves_wkt's doc comment to reflect its role as a test serialization oracle.needs_wkt(&self)methods onDataset(crates/data/src/lib.rs),SourceLayer(crates/map/src/source.rs),Layer, andMap(crates/map/src/lib.rs), preserving the!windowedrule forDataset::held_in.saves_wkt(&Payload(self))(andsaves_wkt(map)/saves_wkt(layer)inmap_file_bytes/layer_file_bytes) incrates/engine/src/project_capabilities.rswith direct O(layers + tables + workspaces + offline_areas) exhaustive field walks (project_needs_wkt,Map::needs_wkt,Layer::needs_wkt,SourceLayer::needs_wkt,Dataset::needs_wkt).std::io::sink(), holding zero extra copies of layer or raster data duringProject::serialize,project.save,project.saveAs,project.package, autosave recovery,offline.package, andpeer_text.Surfaces reached
ui-touch), Assistant/MCP, plugins: all userustgis-engine'sProject::required_capabilities,map_file_bytes, andlayer_file_bytesthroughProject/ map / layer serialization. No UI/ribbon/shortcut surface is added or changed.Testing
cargo test -p rustgis-data --lib raster::crs::tests::crs_needs_wkt_matches_saves_wkt— passed (1 passed, 0 failed)cargo test -p rustgis-engine --lib project::capabilities::tests— passed (41 passed, 0 failed, includingcrs_wkt_direct_walk_matches_saves_wkt_across_all_fields)cargo clippy -p rustgis-data -p rustgis-map -p rustgis-engine --all-targets -- -D warnings— passedcargo xtask test-hygiene,cargo xtask layers,cargo xtask rows— passedRUSTFLAGS='-D warnings' cargo check --locked --target wasm32-unknown-unknown -p rustgis-web— passedcargo fmt --check— passedUI evidence
No visible UI change.
Related issue
Fixes #2909
Summary by CodeRabbit