Skip to content

Fix incorrect step name in PropertyMap reference docs#3569

Closed
spmallette wants to merge 1 commit into
apache:masterfrom
spmallette:tp-docs-propertymap-step-name
Closed

Fix incorrect step name in PropertyMap reference docs#3569
spmallette wants to merge 1 commit into
apache:masterfrom
spmallette:tp-docs-propertymap-step-name

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

The prose in the PropertyMap section of docs/src/reference/the-traversal.asciidoc referred to the step as propertiesMap(), but the actual step is propertyMap() (no "s"). The section's executable examples already use the correct propertyMap(), so only the prose was wrong.

This is worth correcting because the wrong name fails silently rather than loudly. In Groovy, propertiesMap() does not raise an error; it resolves to a lookup for a property key that does not exist and returns empty results. A newcomer copying the name from the prose therefore gets empty output with no error and no indication of what went wrong.

The fix changes a single line of prose to propertyMap() so it matches the runnable examples directly below it. The examples remain the standard executable [gremlin-groovy,modern] blocks, so their output is rendered at build time (including the empty ==>[] maps for vertices without the requested property, which illustrates the behavior clearly).

The prose in the PropertyMap section referred to the step as
propertiesMap(), but the actual step is propertyMap(). The wrong name
is especially misleading in Groovy, where propertiesMap() does not
error and instead silently returns empty results, so a reader copying
the prose name gets no output and no clue why. Correct the prose to
propertyMap() to match the executable examples in the same section.

Assisted-by: Kiro:claude-opus-4.8
@spmallette

Copy link
Copy Markdown
Contributor Author

merged with 1404d52

@spmallette spmallette closed this Jul 25, 2026
@spmallette
spmallette deleted the tp-docs-propertymap-step-name branch July 25, 2026 14:29
@codecov-commenter

codecov-commenter commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.46%. Comparing base (a28cd1f) to head (6fe6525).
⚠️ Report is 373 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3569      +/-   ##
============================================
+ Coverage     76.35%   76.46%   +0.10%     
- Complexity    13424    14293     +869     
============================================
  Files          1012     1036      +24     
  Lines         60341    64608    +4267     
  Branches       7075     7661     +586     
============================================
+ Hits          46076    49402    +3326     
- Misses        11548    12114     +566     
- Partials       2717     3092     +375     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants