Skip to content
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

[Discover][Surrounding Documents] Fix time range filter #187010

Merged

Conversation

jughosta
Copy link
Contributor

@jughosta jughosta commented Jun 26, 2024

Summary

This PR fixes the invalid time range filter.

Checklist

@jughosta jughosta added release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Jun 26, 2024
@jughosta jughosta self-assigned this Jun 26, 2024
@jughosta
Copy link
Contributor Author

/ci

@jughosta jughosta marked this pull request as ready for review June 27, 2024 12:04
@jughosta jughosta requested a review from a team as a code owner June 27, 2024 12:04
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @jughosta

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

Code LGTM, thx 🙏 there are no more null values in the time range, and there are now multiple queries extending the timerange in every iteration, if no docs are found as predecessor/successor

@jughosta jughosta enabled auto-merge (squash) July 4, 2024 12:07
@jughosta jughosta merged commit 8bdee42 into elastic:main Jul 4, 2024
18 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #28 / Actions and Triggers app Stack alerts page Loads the page Disables all other solution filters when SIEM is applied

Metrics [docs]

✅ unchanged

History

cc @jughosta

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.14 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 187010

Questions ?

Please refer to the Backport tool documentation

@jughosta jughosta deleted the 186998-surrounding-documents-time-range branch July 4, 2024 13:43
@jughosta
Copy link
Contributor Author

jughosta commented Jul 4, 2024

💚 All backports created successfully

Status Branch Result
8.14

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

jughosta added a commit to jughosta/kibana that referenced this pull request Jul 4, 2024
- Closes elastic#186998

## Summary

This PR fixes the invalid time range filter.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
(cherry picked from commit 8bdee42)

# Conflicts:
#	src/plugins/discover/public/application/context/services/context.predecessors.test.ts
#	src/plugins/discover/public/application/context/services/context.successors.test.ts
jughosta added a commit that referenced this pull request Jul 5, 2024
@jughosta jughosta removed the backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) label Jul 5, 2024
@jughosta jughosta restored the 186998-surrounding-documents-time-range branch July 5, 2024 08:41
@jughosta jughosta deleted the 186998-surrounding-documents-time-range branch July 5, 2024 10:49
@jughosta jughosta added the backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) label Jul 5, 2024
@jughosta jughosta added backport:skip This commit does not require backporting and removed backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.16.0 labels Jul 5, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 5, 2024
- Closes elastic#186998

## Summary

This PR fixes the invalid time range filter.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
(cherry picked from commit 8bdee42)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Aug 6, 2024
…) (#187654)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[Discover][Surrounding Documents] Fix time range filter
(#187010)](#187010)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"julia.rechkunova@elastic.co"},"sourceCommit":{"committedDate":"2024-07-04T13:07:36Z","message":"[Discover][Surrounding
Documents] Fix time range filter (#187010)\n\n- Closes
#186998
Summary\r\n\r\nThis PR fixes the invalid time range
filter.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Matthias Wilhelm
<matthias.wilhelm@elastic.co>","sha":"8bdee4212bb8e47ec7e998c64bd9c0e9e88c1e3e","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:DataDiscovery","backport:prev-minor","v8.15.0","v8.16.0"],"title":"[Discover][Surrounding
Documents] Fix time range
filter","number":187010,"url":"#187010
Documents] Fix time range filter (#187010)\n\n- Closes
#186998
Summary\r\n\r\nThis PR fixes the invalid time range
filter.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Matthias Wilhelm
<matthias.wilhelm@elastic.co>","sha":"8bdee4212bb8e47ec7e998c64bd9c0e9e88c1e3e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"#187010
Documents] Fix time range filter (#187010)\n\n- Closes
#186998
Summary\r\n\r\nThis PR fixes the invalid time range
filter.\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Matthias Wilhelm
<matthias.wilhelm@elastic.co>","sha":"8bdee4212bb8e47ec7e998c64bd9c0e9e88c1e3e"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"url":"#187576"}]}]
BACKPORT-->

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
@mistic
Copy link
Member

mistic commented Aug 8, 2024

This PR didn't make it on time of the latest v8.15 BC. Updating the labels.

@mistic mistic added v8.15.1 and removed v8.15.0 labels Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:fix Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) v8.15.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Discover][Surrounding Documents] Fix time range filter
6 participants