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

[Infrastructure UI] Fix Hosts View date picker for some preset values #152339

Merged
merged 2 commits into from
Mar 6, 2023

Conversation

tonyghiani
Copy link
Contributor

@tonyghiani tonyghiani commented Feb 28, 2023

📓 Summary

Closes #151150

The issue was caused by a missing rounding up when the same string represented dates.

🧪 Testing

  • Navigates to Hosts View page.
  • Set date-picker to Today.
  • Verify data are correctly fetched.
    Repeat the same setting the picker to This week
after-fix.mov

@tonyghiani tonyghiani added Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) v8.8.0 labels Feb 28, 2023
@tonyghiani tonyghiani marked this pull request as ready for review February 28, 2023 13:53
@tonyghiani tonyghiani requested a review from a team as a code owner February 28, 2023 13:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@tonyghiani tonyghiani added v8.6.0 and removed v8.6.0 labels Mar 1, 2023
Copy link
Contributor

@crespocarlos crespocarlos left a comment

Choose a reason for hiding this comment

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

LGTM!

@tonyghiani tonyghiani enabled auto-merge (squash) March 6, 2023 12:56
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
infra 1.3MB 1.3MB +13.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 428 430 +2

Total ESLint disabled count

id before after diff
securitySolution 506 508 +2

History

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

@tonyghiani tonyghiani merged commit 671a9d8 into elastic:main Mar 6, 2023
@tonyghiani tonyghiani deleted the 151150-fix-snapshot-time-range branch March 6, 2023 14:03
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 6, 2023
…elastic#152339)

## 📓 Summary

Closes elastic#151150

The issue was caused by a missing rounding up when the same string
represented dates.

## 🧪 Testing

- Navigates to Hosts View page.
- Set date-picker to `Today`.
- Verify data are correctly fetched.
Repeat the same setting the picker to `This week`

https://user-images.githubusercontent.com/34506779/221857418-dbc53fe6-6eca-4645-93cd-b939231e76b0.mov

Co-authored-by: Marco Antonio Ghiani <[email protected]>
(cherry picked from commit 671a9d8)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.7

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 Mar 6, 2023
…values (#152339) (#152713)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Infrastructure UI] Fix Hosts View date picker for some preset values
(#152339)](#152339)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Marco Antonio
Ghiani","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-03-06T14:02:28Z","message":"[Infrastructure
UI] Fix Hosts View date picker for some preset values (#152339)\n\n## 📓
Summary\r\n\r\nCloses #151150 \r\n\r\nThe issue was caused by a missing
rounding up when the same string\r\nrepresented dates.\r\n\r\n## 🧪
Testing\r\n\r\n- Navigates to Hosts View page.\r\n- Set date-picker to
`Today`.\r\n- Verify data are correctly fetched.\r\nRepeat the same
setting the picker to `This
week`\r\n\r\n\r\nhttps://user-images.githubusercontent.com/34506779/221857418-dbc53fe6-6eca-4645-93cd-b939231e76b0.mov\r\n\r\nCo-authored-by:
Marco Antonio Ghiani
<[email protected]>","sha":"671a9d8a74964fbf2f728103af433e7c45d9b1d8","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Infra
Monitoring
UI","release_note:skip","backport:prev-minor","v8.8.0"],"number":152339,"url":"https://github.com/elastic/kibana/pull/152339","mergeCommit":{"message":"[Infrastructure
UI] Fix Hosts View date picker for some preset values (#152339)\n\n## 📓
Summary\r\n\r\nCloses #151150 \r\n\r\nThe issue was caused by a missing
rounding up when the same string\r\nrepresented dates.\r\n\r\n## 🧪
Testing\r\n\r\n- Navigates to Hosts View page.\r\n- Set date-picker to
`Today`.\r\n- Verify data are correctly fetched.\r\nRepeat the same
setting the picker to `This
week`\r\n\r\n\r\nhttps://user-images.githubusercontent.com/34506779/221857418-dbc53fe6-6eca-4645-93cd-b939231e76b0.mov\r\n\r\nCo-authored-by:
Marco Antonio Ghiani
<[email protected]>","sha":"671a9d8a74964fbf2f728103af433e7c45d9b1d8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/152339","number":152339,"mergeCommit":{"message":"[Infrastructure
UI] Fix Hosts View date picker for some preset values (#152339)\n\n## 📓
Summary\r\n\r\nCloses #151150 \r\n\r\nThe issue was caused by a missing
rounding up when the same string\r\nrepresented dates.\r\n\r\n## 🧪
Testing\r\n\r\n- Navigates to Hosts View page.\r\n- Set date-picker to
`Today`.\r\n- Verify data are correctly fetched.\r\nRepeat the same
setting the picker to `This
week`\r\n\r\n\r\nhttps://user-images.githubusercontent.com/34506779/221857418-dbc53fe6-6eca-4645-93cd-b939231e76b0.mov\r\n\r\nCo-authored-by:
Marco Antonio Ghiani
<[email protected]>","sha":"671a9d8a74964fbf2f728103af433e7c45d9b1d8"}}]}]
BACKPORT-->

Co-authored-by: Marco Antonio Ghiani <[email protected]>
bmorelli25 pushed a commit to bmorelli25/kibana that referenced this pull request Mar 10, 2023
…elastic#152339)

## 📓 Summary

Closes elastic#151150 

The issue was caused by a missing rounding up when the same string
represented dates.

## 🧪 Testing

- Navigates to Hosts View page.
- Set date-picker to `Today`.
- Verify data are correctly fetched.
Repeat the same setting the picker to `This week`


https://user-images.githubusercontent.com/34506779/221857418-dbc53fe6-6eca-4645-93cd-b939231e76b0.mov

Co-authored-by: Marco Antonio Ghiani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v8.7.0 v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Infrastructure UI] Hosts View performs /snapshot request with wrong time range
5 participants