Skip to content

Conversation

@barakmich
Copy link
Contributor

Description

Testing

References

@barakmich barakmich requested a review from a team as a code owner January 14, 2026 22:33
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Jan 14, 2026
@barakmich barakmich force-pushed the barakmich/arrow_reversal branch from 5d267b0 to 10e3a78 Compare January 14, 2026 22:36
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 77.39726% with 33 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.78%. Comparing base (ca96a88) to head (bea7b14).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/query/arrow.go 78.10% 18 Missing and 5 partials ⚠️
pkg/query/optimize_arrow_direction.go 67.75% 7 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2821      +/-   ##
==========================================
- Coverage   75.80%   75.78%   -0.01%     
==========================================
  Files         459      460       +1     
  Lines       54848    54922      +74     
==========================================
+ Hits        41570    41617      +47     
- Misses      10400    10417      +17     
- Partials     2878     2888      +10     

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

tstirrat15
tstirrat15 previously approved these changes Jan 14, 2026
Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

intermediateAsSubject := ObjectAndRelation{
ObjectType: rightPath.Resource.ObjectType,
ObjectID: rightPath.Resource.ObjectID,
Relation: "",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does an empty relation here mean? Is it different from an ellipsis?

Comment on lines +204 to +205
Expiration: rightPath.Expiration,
Integrity: rightPath.Integrity,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still curious on this point - are we arbitrarily choosing the right for expiration and integrity, or is there a reason that it makes sense semantically?

Comment on lines +30 to +39
if rightToLeftCost < leftToRightCost && a.direction != rightToLeft {
// Create new arrow with inverted direction
newArrow := &Arrow{
id: a.id, // Keep same ID
left: a.left,
right: a.right,
direction: rightToLeft,
}
return newArrow, true, nil // Changed
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a case where we'd need to switch it the other way, or is that implicit because LTR is the default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implicit default, yeah

Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the combination

@barakmich barakmich enabled auto-merge January 15, 2026 18:05
@barakmich barakmich added this pull request to the merge queue Jan 15, 2026
Merged via the queue into main with commit 287af00 Jan 15, 2026
75 of 78 checks passed
@barakmich barakmich deleted the barakmich/arrow_reversal branch January 15, 2026 18:28
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants