Repository navigation
Remove unused ExtensionStep convenience constructors in gql-gremlin - #3832
Merged
Merged
Conversation
ExtensionStep in gql-gremlin had four convenience constructors that filled in defaults for edge predicates, cost, hop bounds, quantified and anchoredAtPatternTarget. None of them had callers; DefaultGqlPlanner uses only the full constructor. Each new field meant another overload or another default, so keep just the canonical constructor. gql-gremlin is unreleased, so no released API changes. Assisted-by: Kiro:claude-opus-5.5
Contributor
|
VOTE +1 Pending CI |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3832 +/- ##
============================================
+ Coverage 76.35% 78.78% +2.42%
- Complexity 13424 15932 +2508
============================================
Files 1012 1081 +69
Lines 60341 68869 +8528
Branches 7075 8327 +1252
============================================
+ Hits 46076 54257 +8181
+ Misses 11548 11317 -231
- Partials 2717 3295 +578 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ExtensionStep in gql-gremlin had four convenience constructors that filled in defaults for edge predicates, estimated cost, hop bounds, quantified and anchoredAtPatternTarget. None of them had callers, since DefaultGqlPlanner uses only the full constructor, and every new field meant adding another overload or default. This change keeps only the canonical constructor. gql-gremlin is unreleased, so no released API is affected and behavior is unchanged.
Change
In gql-gremlin, reduce ExtensionStep's public constructors to the single
canonical one (all fields incl. minHops/maxHops/quantified/anchoredAtPatternTarget).
Remove the four convenience overloads that fill in defaults.
Follows up on a review of #3763.
This is a non-blocking review follow-up opened by an automated contributor. A committer can direct the automation with a comment on this PR:
assist:rebase— rebase the branch onto the latestmasterand re-validate.assist:feedback <details>— send<details>to the maintainer to act on.Comments without the
assist:prefix are not actioned by the automation.🤖 Agent assisted PR.