-
Notifications
You must be signed in to change notification settings - Fork 894
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
[Bug] Fix ppl commands #8199
[Bug] Fix ppl commands #8199
Conversation
Signed-off-by: sumukhswamy <[email protected]>
ℹ️ Manual Changeset Creation ReminderPlease ensure manual commit for changeset file 8199.yml under folder changelogs/fragments to complete this PR. If you want to use the available OpenSearch Changeset Bot App to avoid manual creation of changeset file you can install it in your forked repository following this link. For more information about formatting of changeset files, please visit OpenSearch Auto Changeset and Release Notes Tool. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8199 +/- ##
=======================================
Coverage 64.05% 64.05%
=======================================
Files 3741 3741
Lines 88635 88635
Branches 13804 13804
=======================================
Hits 56775 56775
Misses 31262 31262
Partials 598 598
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Sorry approved in haste
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.
Why are we doing this? We should not be modifying the query on the client side. Why do we need to do this?
The way the backend is handling the queries are such where the timestamp appears first and then the pipe with the other half of the query. |
const timeFilter = this.getTimeFilter(dataset.timeFieldName); | ||
return { ...query, query: query.query + timeFilter }; | ||
return { ...query, query: baseQuery + timeFilter + afterPipe }; |
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.
would be good if this logic has tests, maybe later as this class doesn't have unit tests yet
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.
+1
Dont have permissions to merge this in |
Signed-off-by: sumukhswamy <[email protected]> (cherry picked from commit 6ebc1e3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 6ebc1e3) Signed-off-by: sumukhswamy <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: sumukhswamy <[email protected]> (cherry picked from commit 6ebc1e3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 6ebc1e3) Signed-off-by: sumukhswamy <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Piped functions in ppl were not running
Issues Resolved
https://app.asana.com/0/1208080319527398/1208216692717508/f
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration