Skip to content

Show visible output for simplePath() from()/to() by(label) examples - #3641

Merged
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-simplepath-step-examples-5-6-render-empt
Sep 10, 2026
Merged

spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-simplepath-step-examples-5-6-render-empt

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

The last two simplePath() examples in the modern-graph block used three out() hops, but the modern graph has no three-hop outgoing paths, so both examples rendered empty output with no explanation. This left the from()/to() segment-scoping semantics undemonstrated and made the empty results look like a mistake.

Reduce the examples to two out() hops and add callouts. The whole-path by(label) example is now meaningfully empty (each path starts with two person vertices), while scoping the check to the b..c segment with from()/to() retains the paths, producing visible contrasting output.

The last two simplePath() examples in the modern-graph block used three
out() hops, but the modern graph has no three-hop outgoing paths, so both
examples rendered empty output with no explanation. This left the
from()/to() segment-scoping semantics undemonstrated and made the empty
results look like a mistake.

Reduce the examples to two out() hops and add callouts. The whole-path
by(label) example is now meaningfully empty (each path starts with two
person vertices), while scoping the check to the b..c segment with
from()/to() retains the paths, producing visible contrasting output.

Assisted-by: Kiro:claude-opus-4.8
@spmallette
spmallette merged commit b7cb93d into apache:master Sep 10, 2026
6 checks passed
@spmallette
spmallette deleted the tp-docs-simplepath-step-examples-5-6-render-empt branch September 10, 2026 12:23
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3641      +/-   ##
============================================
+ Coverage     76.35%   80.05%   +3.69%     
============================================
  Files          1012       32     -980     
  Lines         60341     6913   -53428     
  Branches       7075        0    -7075     
============================================
- Hits          46076     5534   -40542     
+ Misses        11548     1053   -10495     
+ Partials       2717      326    -2391     

☔ 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