-
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
[Partial Results] Update esaggs
expressions function to return partial results
#105620
Conversation
Pinging @elastic/kibana-app-services (Team:AppServices) |
filter(({ partial }) => params.partial || !partial), | ||
params.partial && params.throttle | ||
? throttleTime(params.throttle, asyncScheduler, { leading: true, trailing: true }) | ||
: identity |
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.
should we have a default throttle time ?
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.
I was thinking of making this behavior optional. If there is a need to throttle the subject, we can pass a non-zero value. Otherwise, it will not be throttled.
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.
i am wondering if it should rather be the other way around, so throttled by default, you can turn it off (by setting value to 0) or finetune it
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.
I guess that makes sense. I flipped the behavior in the latest commit. Thanks 👍
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
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Page load bundle
History
To update your PR or re-run it, just comment with: |
How do I test this pr Please? Thanks! |
there should be no functional differences as the consequence of this PR. |
Summary
Update
esaggs
function to return observable emitting partial results.Resolve #104531.
Checklist
For maintainers