Repository navigation
fix(engine): map.terrain help names the walls' object form (#2605) - #2630
Conversation
…2605) The help gave "walls" as a colour only, though the parser has also taken {"color", "layer"} since opengeos#2173. The errors for a block or a water value that isn't an object also left out keys (shape and radius; glint and shore). A test checks each part of the help (block, walls, shape, the block's water, the terrain's water) against the keys the parser lists when it refuses an unknown one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI checked the diff against the parser in Bugs: none found. I traced each of the five refusal cases in the new test through the parser and confirmed the help parts it searches for contain the expected quoted keys. Security: none found. The change only edits help text and error strings. Performance: none found. Quality (both can wait for the release quality pass):
AGENTS.md:
Already raised: none. There were no prior review threads, so I left no earlier concerns alone. Change sizeCompared with the base branch: the whole PR against main (merge base d7d717e to PR head 2c1c774).
|
📖 Docs previewCommit |
Review round 1 on opengeos#2630: say that the walls are `color` off the layer's polygons, and that the layer must hold all its features (the parser refuses one read a view at a time). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@coderabbitai review |
Code reviewI read the 2-file diff against the parser in I checked that each key list in the new help matches the parser:
BugsNone found. The error texts and the help text agree with the parser, and the test exercises both the unknown-key and the not-an-object paths for each part. Confidence: high. SecurityNone found. Changes are help text and error strings only. Confidence: high. PerformanceNone found. Confidence: high. QualityNothing new beyond the two earlier threads (see below). Confidence: high. AGENTS.md
Earlier concerns: I left 2 alone, both already raised by the reviewer and answered. The test-coverage point (the test reads key sets from the refusal text, so the Change sizeCompared with the base branch: the whole PR against
|
Action not completed
|
Fixes #2605.
What
map.terrain's parameter text (shown bysearch_commands, the MCP server and the command palette) gave the block's"walls"as a colour only. The parser has also taken{"color"?, "layer"?}since #2173. The help now reads:Two errors also left out keys the parser accepts. They now list them the way the unknown-key errors do:
"block": <not an object>now lists(extent, depth, walls, shape, radius, water)(it left outshapeandradius)."water": <not an object>now lists(layer, level, glint, shore)(it left outglintandshore)."shape": {"layer", "where"}(#2486) was already in the help. The user guide (docs/user-guide/maps.md) already describes both forms, so no docs change.Test
terrain_help_names_every_block_keysends an unknown key to each part (block, walls, shape, the block's water, the terrain's water). It reads the keys the parser lists in its refusal and checks that the matching part of the help names each one, quoted. It also checks that the "isn't an object" errors list the same keys. A key added to a refusal's list but not to the help now fails the test. The list sits on the line next to thematches!arm it mirrors, so the test does not check those two against each other.Checks
cargo test -p rustgis-engine --lib -- terrain_help terrain_block params_name_every_key: 12 passedcargo clippy -p rustgis-engine --all-targets -- -D warnings: cleancargo fmt --all -- --check: clean🤖 Generated with Claude Code
Summary by CodeRabbit