-
Notifications
You must be signed in to change notification settings - Fork 8.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
[Expressions] Add a flag to opt-out of the partial results in the expressions #144241
Conversation
c6a6082
to
9503ab7
Compare
Pinging @elastic/kibana-app-services (Team:AppServicesSv) |
Is this is the right issue? Doesn't look like it |
Trying to understand: Now we also add the switch to the execution: why? what is the benefit? How this flag related to the one in the expression loader? Why it is by default true for the execution, but false for the loader ? |
b8412b2
to
a61e0c8
Compare
💚 Build Succeeded
Metrics [docs]Page load bundle
Unknown metric groupsAPI count
ESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
@Dosant Thanks for this finding. That makes total sense. I've reused the newly added flag in the loader and changed the default value to Additionally, I've moved the |
@Dosant could you take another look at this? We depend on it for the metric trendlines |
In my opinion, If no one actually uses them, there is no harm in disabling them on the expression layer by default as this adds overhead. I'll run and play with it shortly |
+1 for disabling by default. |
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.
LGTM 👍
@@ -426,6 +426,68 @@ describe('Execution', () => { | |||
}); | |||
}); | |||
}); | |||
|
|||
test('ignores partial results by default', () => { |
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.
So, I guess this means that we won't have to do anything on the Lens side to take advantage of this change.
Summary
Resolves #143344.
Checklist
For maintainers