-
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
[Infra] Fix call to service api #203451
[Infra] Fix call to service api #203451
Conversation
/ci |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
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.
The code LGTM, just some nits/questions ⬇️
...gins/observability_solution/infra/public/components/asset_details/tabs/overview/services.tsx
Show resolved
Hide resolved
const params = useMemo( | ||
() => ({ | ||
filters: { [HOST_NAME_FIELD]: hostName }, | ||
from: dateRange.from, | ||
to: dateRange.to, | ||
from: parsedDateRange.from, |
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.
Nit: As we use both from
and to
we can simply use ...parsedDateRange
here, wdyt?
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
|
Starting backport for target branches: 8.16, 8.17, 8.x https://github.com/elastic/kibana/actions/runs/12257218461 |
fixes [203389](elastic#203389) ## Summary Fix the call to `/api/infra/services` when using a relative date range ![service_api_relative_date_range](https://github.com/user-attachments/assets/772bba2c-07c8-4031-8d8a-61bdc7ab6d70) ### How to test - Navigate to host detail view, and change the data picker to use relative dates - Click on Submit (cherry picked from commit 1a20fda)
fixes [203389](elastic#203389) ## Summary Fix the call to `/api/infra/services` when using a relative date range ![service_api_relative_date_range](https://github.com/user-attachments/assets/772bba2c-07c8-4031-8d8a-61bdc7ab6d70) ### How to test - Navigate to host detail view, and change the data picker to use relative dates - Click on Submit (cherry picked from commit 1a20fda)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Infra] Fix call to service api (#203451)](#203451) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Carlos Crespo","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-10T13:33:32Z","message":"[Infra] Fix call to service api (#203451)\n\nfixes [203389](https://github.com/elastic/kibana/issues/203389)\r\n## Summary\r\n\r\nFix the call to `/api/infra/services` when using a relative date range\r\n\r\n\r\n![service_api_relative_date_range](https://github.com/user-attachments/assets/772bba2c-07c8-4031-8d8a-61bdc7ab6d70)\r\n\r\n\r\n### How to test\r\n- Navigate to host detail view, and change the data picker to use\r\nrelative dates\r\n- Click on Submit","sha":"1a20fda7021fa49d054c19d4757592dda385f5de","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","backport:version","v8.17.0","v8.16.2"],"title":"[Infra] Fix call to service api","number":203451,"url":"https://github.com/elastic/kibana/pull/203451","mergeCommit":{"message":"[Infra] Fix call to service api (#203451)\n\nfixes [203389](https://github.com/elastic/kibana/issues/203389)\r\n## Summary\r\n\r\nFix the call to `/api/infra/services` when using a relative date range\r\n\r\n\r\n![service_api_relative_date_range](https://github.com/user-attachments/assets/772bba2c-07c8-4031-8d8a-61bdc7ab6d70)\r\n\r\n\r\n### How to test\r\n- Navigate to host detail view, and change the data picker to use\r\nrelative dates\r\n- Click on Submit","sha":"1a20fda7021fa49d054c19d4757592dda385f5de"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203451","number":203451,"mergeCommit":{"message":"[Infra] Fix call to service api (#203451)\n\nfixes [203389](https://github.com/elastic/kibana/issues/203389)\r\n## Summary\r\n\r\nFix the call to `/api/infra/services` when using a relative date range\r\n\r\n\r\n![service_api_relative_date_range](https://github.com/user-attachments/assets/772bba2c-07c8-4031-8d8a-61bdc7ab6d70)\r\n\r\n\r\n### How to test\r\n- Navigate to host detail view, and change the data picker to use\r\nrelative dates\r\n- Click on Submit","sha":"1a20fda7021fa49d054c19d4757592dda385f5de"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Carlos Crespo <[email protected]>
# Backport This will backport the following commits from `main` to `8.17`: - [[Infra] Fix call to service api (#203451)](#203451) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Carlos Crespo","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-10T13:33:32Z","message":"[Infra] Fix call to service api (#203451)\n\nfixes [203389](https://github.com/elastic/kibana/issues/203389)\r\n## Summary\r\n\r\nFix the call to `/api/infra/services` when using a relative date range\r\n\r\n\r\n![service_api_relative_date_range](https://github.com/user-attachments/assets/772bba2c-07c8-4031-8d8a-61bdc7ab6d70)\r\n\r\n\r\n### How to test\r\n- Navigate to host detail view, and change the data picker to use\r\nrelative dates\r\n- Click on Submit","sha":"1a20fda7021fa49d054c19d4757592dda385f5de","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","backport:version","v8.17.0","v8.16.2"],"title":"[Infra] Fix call to service api","number":203451,"url":"https://github.com/elastic/kibana/pull/203451","mergeCommit":{"message":"[Infra] Fix call to service api (#203451)\n\nfixes [203389](https://github.com/elastic/kibana/issues/203389)\r\n## Summary\r\n\r\nFix the call to `/api/infra/services` when using a relative date range\r\n\r\n\r\n![service_api_relative_date_range](https://github.com/user-attachments/assets/772bba2c-07c8-4031-8d8a-61bdc7ab6d70)\r\n\r\n\r\n### How to test\r\n- Navigate to host detail view, and change the data picker to use\r\nrelative dates\r\n- Click on Submit","sha":"1a20fda7021fa49d054c19d4757592dda385f5de"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/203451","number":203451,"mergeCommit":{"message":"[Infra] Fix call to service api (#203451)\n\nfixes [203389](https://github.com/elastic/kibana/issues/203389)\r\n## Summary\r\n\r\nFix the call to `/api/infra/services` when using a relative date range\r\n\r\n\r\n![service_api_relative_date_range](https://github.com/user-attachments/assets/772bba2c-07c8-4031-8d8a-61bdc7ab6d70)\r\n\r\n\r\n### How to test\r\n- Navigate to host detail view, and change the data picker to use\r\nrelative dates\r\n- Click on Submit","sha":"1a20fda7021fa49d054c19d4757592dda385f5de"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Carlos Crespo <[email protected]>
fixes [203389](elastic#203389) ## Summary Fix the call to `/api/infra/services` when using a relative date range ![service_api_relative_date_range](https://github.com/user-attachments/assets/772bba2c-07c8-4031-8d8a-61bdc7ab6d70) ### How to test - Navigate to host detail view, and change the data picker to use relative dates - Click on Submit
fixes 203389
Summary
Fix the call to
/api/infra/services
when using a relative date rangeHow to test