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

Fix tablelistview test due to timezone switch #198759

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Nov 4, 2024

Summary

Fix #198744

Test was subtracting 7 days, but there is 1 hour less now, so the test setup is incorrect. Fixing it by using moment to handle time switch edge case

@Dosant Dosant requested a review from a team as a code owner November 4, 2024 09:52
@Dosant Dosant added release_note:skip Skip the PR/issue when compiling release notes backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development labels Nov 4, 2024
@Dosant Dosant enabled auto-merge (squash) November 4, 2024 10:24
@Dosant Dosant merged commit a88833c into elastic:main Nov 4, 2024
20 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.15, 8.16, 8.x

https://github.com/elastic/kibana/actions/runs/11663470595

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 4, 2024
## Summary

Fix elastic#198744

Test was subtracting 7 days, but there is 1 hour less now, so the test
setup is incorrect. Fixing it by using moment to handle time switch edge
case

(cherry picked from commit a88833c)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 4, 2024
## Summary

Fix elastic#198744

Test was subtracting 7 days, but there is 1 hour less now, so the test
setup is incorrect. Fixing it by using moment to handle time switch edge
case

(cherry picked from commit a88833c)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 4, 2024
## Summary

Fix elastic#198744

Test was subtracting 7 days, but there is 1 hour less now, so the test
setup is incorrect. Fixing it by using moment to handle time switch edge
case

(cherry picked from commit a88833c)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.15
8.16
8.x

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 Nov 4, 2024
# Backport

This will backport the following commits from `main` to `8.15`:
- [Fix tablelistview test due to timezone switch
(#198759)](#198759)

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

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-04T11:39:05Z","message":"Fix
tablelistview test due to timezone switch (#198759)\n\n##
Summary\r\n\r\nFix
https://github.com/elastic/kibana/issues/198744\r\n\r\nTest was
subtracting 7 days, but there is 1 hour less now, so the test\r\nsetup
is incorrect. Fixing it by using moment to handle time switch
edge\r\ncase","sha":"a88833c7830c2bb469430eb54c93cab19e64de6e","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major"],"title":"Fix
tablelistview test due to timezone
switch","number":198759,"url":"https://github.com/elastic/kibana/pull/198759","mergeCommit":{"message":"Fix
tablelistview test due to timezone switch (#198759)\n\n##
Summary\r\n\r\nFix
https://github.com/elastic/kibana/issues/198744\r\n\r\nTest was
subtracting 7 days, but there is 1 hour less now, so the test\r\nsetup
is incorrect. Fixing it by using moment to handle time switch
edge\r\ncase","sha":"a88833c7830c2bb469430eb54c93cab19e64de6e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198759","number":198759,"mergeCommit":{"message":"Fix
tablelistview test due to timezone switch (#198759)\n\n##
Summary\r\n\r\nFix
https://github.com/elastic/kibana/issues/198744\r\n\r\nTest was
subtracting 7 days, but there is 1 hour less now, so the test\r\nsetup
is incorrect. Fixing it by using moment to handle time switch
edge\r\ncase","sha":"a88833c7830c2bb469430eb54c93cab19e64de6e"}}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <[email protected]>
kibanamachine added a commit that referenced this pull request Nov 4, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [Fix tablelistview test due to timezone switch
(#198759)](#198759)

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

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-04T11:39:05Z","message":"Fix
tablelistview test due to timezone switch (#198759)\n\n##
Summary\r\n\r\nFix
https://github.com/elastic/kibana/issues/198744\r\n\r\nTest was
subtracting 7 days, but there is 1 hour less now, so the test\r\nsetup
is incorrect. Fixing it by using moment to handle time switch
edge\r\ncase","sha":"a88833c7830c2bb469430eb54c93cab19e64de6e","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major"],"title":"Fix
tablelistview test due to timezone
switch","number":198759,"url":"https://github.com/elastic/kibana/pull/198759","mergeCommit":{"message":"Fix
tablelistview test due to timezone switch (#198759)\n\n##
Summary\r\n\r\nFix
https://github.com/elastic/kibana/issues/198744\r\n\r\nTest was
subtracting 7 days, but there is 1 hour less now, so the test\r\nsetup
is incorrect. Fixing it by using moment to handle time switch
edge\r\ncase","sha":"a88833c7830c2bb469430eb54c93cab19e64de6e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198759","number":198759,"mergeCommit":{"message":"Fix
tablelistview test due to timezone switch (#198759)\n\n##
Summary\r\n\r\nFix
https://github.com/elastic/kibana/issues/198744\r\n\r\nTest was
subtracting 7 days, but there is 1 hour less now, so the test\r\nsetup
is incorrect. Fixing it by using moment to handle time switch
edge\r\ncase","sha":"a88833c7830c2bb469430eb54c93cab19e64de6e"}}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <[email protected]>
kibanamachine added a commit that referenced this pull request Nov 4, 2024
# Backport

This will backport the following commits from `main` to `8.16`:
- [Fix tablelistview test due to timezone switch
(#198759)](#198759)

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

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-04T11:39:05Z","message":"Fix
tablelistview test due to timezone switch (#198759)\n\n##
Summary\r\n\r\nFix
https://github.com/elastic/kibana/issues/198744\r\n\r\nTest was
subtracting 7 days, but there is 1 hour less now, so the test\r\nsetup
is incorrect. Fixing it by using moment to handle time switch
edge\r\ncase","sha":"a88833c7830c2bb469430eb54c93cab19e64de6e","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major"],"title":"Fix
tablelistview test due to timezone
switch","number":198759,"url":"https://github.com/elastic/kibana/pull/198759","mergeCommit":{"message":"Fix
tablelistview test due to timezone switch (#198759)\n\n##
Summary\r\n\r\nFix
https://github.com/elastic/kibana/issues/198744\r\n\r\nTest was
subtracting 7 days, but there is 1 hour less now, so the test\r\nsetup
is incorrect. Fixing it by using moment to handle time switch
edge\r\ncase","sha":"a88833c7830c2bb469430eb54c93cab19e64de6e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198759","number":198759,"mergeCommit":{"message":"Fix
tablelistview test due to timezone switch (#198759)\n\n##
Summary\r\n\r\nFix
https://github.com/elastic/kibana/issues/198744\r\n\r\nTest was
subtracting 7 days, but there is 1 hour less now, so the test\r\nsetup
is incorrect. Fixing it by using moment to handle time switch
edge\r\ncase","sha":"a88833c7830c2bb469430eb54c93cab19e64de6e"}}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development release_note:skip Skip the PR/issue when compiling release notes v8.15.4 v8.16.0 v8.17.0 v9.0.0
Projects
None yet
3 participants