Skip to content

Conversation

@kirill-stepanishin
Copy link
Contributor

Fixes edge creation in gremlin-python by automatically wrapping Vertex objects with __.V(vertex.id) in to() and from_() methods.

Key Changes:
• Wrap Vertex objects with __.V() in to() and from_() steps using isinstance() check
• Pass through strings and traversals unchanged
• Update test expectations to verify Vertex wrapping functionality
• Revert manual __.V() wrapping from basic examples now that driver handles it automatically

Relates to #3252

@andreachild
Copy link
Contributor

VOTE +1

@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.33%. Comparing base (cfd6889) to head (06e474e).
⚠️ Report is 698 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3281      +/-   ##
============================================
+ Coverage     77.87%   78.33%   +0.45%     
- Complexity    13578    14590    +1012     
============================================
  Files          1015     1068      +53     
  Lines         59308    61893    +2585     
  Branches       6835     7384     +549     
============================================
+ Hits          46184    48481    +2297     
- Misses        10817    10826       +9     
- Partials       2307     2586     +279     

☔ View full report in Codecov by Sentry.
📢 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.

- Wrap Vertex objects with __.V(vertex.id) in to() and from() steps
- Use isinstance() check to only wrap actual Vertex objects
- Revert __.V() wrapping for basic gremlin python examples
- Update integration tests to match and test new behavior
@kirill-stepanishin kirill-stepanishin marked this pull request as ready for review November 21, 2025 19:28
@Cole-Greer
Copy link
Contributor

VOTE +1

1 similar comment
@xiazcy
Copy link
Contributor

xiazcy commented Nov 21, 2025

VOTE +1

@andreachild andreachild merged commit 7e2451b into apache:master Nov 21, 2025
20 checks passed
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.

5 participants