Skip to content

Remove unused ExtensionStep convenience constructors in gql-gremlin - #3832

Merged
Cole-Greer merged 1 commit into
apache:masterfrom
spmallette:tp-errand-tp-5m6u
Nov 19, 2026
Merged

Cole-Greer merged 1 commit into
apache:masterfrom
spmallette:tp-errand-tp-5m6u

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

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 latest master and 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.

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
@spmallette spmallette added the agent-assisted PR driven by an agent. label Nov 19, 2026
@Cole-Greer

Copy link
Copy Markdown
Contributor

VOTE +1 Pending CI

@codecov-commenter

codecov-commenter commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

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

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.
📢 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.

@Cole-Greer
Cole-Greer merged commit 7427fb2 into apache:master Nov 19, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-assisted PR driven by an agent.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants