-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: move resource qb to its own package and use common options #6238
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 3808837 in 37 seconds
More details
- Looked at
611
lines of code in10
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. pkg/query-service/app/logs/v3/query_builder.go:496
- Draft comment:
The change fromLogQBOptions
toQBOptions
is consistent with the intent to use a common options struct. Ensure that all references toLogQBOptions
are updated toQBOptions
across the codebase. - Reason this comment was not posted:
Confidence changes required:10%
The PR changes the struct fromLogQBOptions
toQBOptions
across multiple files. This change is consistent and aligns with the intent to use a common options struct. The change is reflected in function signatures, variable declarations, and test cases. The change is straightforward and does not introduce any logical or performance issues. The tests have been updated accordingly, ensuring that the new struct is used consistently. The PR description indicates that this is part of a larger refactoring effort, which is consistent with the changes made.
2. pkg/query-service/app/resource/resource_query_builder.go:1
- Draft comment:
Avoid using thecomponent/index.tsx
file structure approach, as it makes it difficult to debug and find components using global search tools like VS Code. This is applicable in thepkg/query-service/app/resource/resource_query_builder.go
file. - Reason this comment was not posted:
Comment was on unchanged code.
Workflow ID: wflow_0rNoYbkckZ1qsi5H
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Incremental review on 1920e5d in 41 seconds
More details
- Looked at
36
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. pkg/query-service/app/traces/v3/query_builder.go:238
- Draft comment:
TheOptions
struct is redundant and should be removed sinceQBOptions
is now used. This applies to the entire file. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_EPhHbmnCuOyScw4o
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 826c280 in 29 seconds
More details
- Looked at
16
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. pkg/query-service/app/traces/v3/query_builder.go:10
- Draft comment:
TheOptions
struct is removed but not replaced withQBOptions
as mentioned in the PR description. Ensure thatQBOptions
is used where necessary. - Reason this comment was not posted:
Comment did not seem useful.
Workflow ID: wflow_UH0jUvqrwswUunTA
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Changes
-- this is done
part of #5713
Important
Refactor codebase by moving resource query builder to a separate package and standardizing options struct across query builders.
resource_query_builder.go
fromlogs/v4
toresource
package.query_builder.go
andquery_builder_test.go
to use the newresource
package.LogQBOptions
andOptions
withQBOptions
inquery_builder.go
,helper.go
, andv2/helper.go
.QBOptions
.logs/v4/query_builder.go
.traces/v3/query_builder_test.go
.query_builder_test.go
andresource_query_builder_test.go
to reflect changes in package structure and options usage.This description was created by for 826c280. It will automatically update as commits are pushed.