-
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
[Dataset quality] remove usage of dataStreamStats API in serverless #192839
[Dataset quality] remove usage of dataStreamStats API in serverless #192839
Conversation
…API for lastActivity
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
We discovered a bug in the privileges mode regarding |
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
const handleButtonClick = useCallback( | ||
() => togglePopover(!isPopoverOpen), | ||
[isPopoverOpen, togglePopover] | ||
); |
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.
Caught a bug where user was not able to close the warning explanation on the privileges
Screen.Recording.2024-09-18.at.12.20.34.mov
@@ -26,7 +25,7 @@ export function DatasetsActivity() { | |||
tooltip={summaryPanelDatasetsActivityTooltipText} | |||
value={text} | |||
isLoading={isDatasetsActivityLoading} | |||
isUserAuthorizedForDataset={isUserAuthorizedForDataset} | |||
isUserAuthorizedForDataset={true} |
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.
Last Activity
is now always enabled through dataStreams API verbose
mode
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.
Can we completely remove this prop in favour of this change now ?
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.
This generic component is used also for Estimated Size
. In https://github.com/elastic/logs-dev/issues/179 I'll do a refactor
@@ -59,13 +61,15 @@ export async function getDataStreams(options: { | |||
const mappedDataStreams = filteredDataStreams.map((dataStream) => ({ | |||
name: dataStream.name, | |||
integration: dataStream._meta?.package?.name, | |||
// @ts-expect-error | |||
lastActivity: dataStream.maximum_timestamp, |
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.
package of elasticsearch
has not been released yet, this will be removed when the new package is in place
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.
Can you update the comment like, remove this error post a date or PR merge. This way its trackable in code as this comment will get lost in time
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.
Don't worry, I won't forget. As soon as 8.16 is released I'll get rid of it
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
.../observability_solution/dataset_quality/public/components/common/insufficient_privileges.tsx
Outdated
Show resolved
Hide resolved
...vability_solution/dataset_quality/server/routes/data_streams/get_data_streams_stats/index.ts
Outdated
Show resolved
Hide resolved
...vability_solution/dataset_quality/server/routes/data_streams/get_data_streams_stats/index.ts
Show resolved
Hide resolved
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.
Left a couple of minor suggestions but overall LGTM!
...ability_solution/dataset_quality/server/routes/data_streams/get_data_stream_details/index.ts
Show resolved
Hide resolved
...ability_solution/dataset_quality/server/routes/data_streams/get_data_stream_details/index.ts
Show resolved
Hide resolved
…ge-on-serverless' of github.com:yngrdyn/kibana into 192166-dataset-quality-remove-datastreams-stats-api-usage-on-serverless
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
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.
LGTM 👍🏼
…ats-api-usage-on-serverless
…ats-api-usage-on-serverless
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…lastic#192839) Closes elastic#192166. This PR aims to remove the usage of `DataStreamStats` API in serverless. Aditionally we now make use of the new verbose mode for `DataStream` API which allow us to still show the `lastActivity` for serverless projects. The change was implemented for both flavours. Visually it won't represent any changes at the moment, but here are the two flavours still working as before https://github.com/user-attachments/assets/18cc9b14-24f1-438a-ac07-565c3e728991 (cherry picked from commit 444f95e)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…less (#192839) (#193468) # Backport This will backport the following commits from `main` to `8.x`: - [[Dataset quality] remove usage of dataStreamStats API in serverless (#192839)](#192839) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Yngrid Coello","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-19T18:47:45Z","message":"[Dataset quality] remove usage of dataStreamStats API in serverless (#192839)\n\nCloses https://github.com/elastic/kibana/issues/192166.\n\nThis PR aims to remove the usage of `DataStreamStats` API in serverless.\nAditionally we now make use of the new verbose mode for `DataStream` API\nwhich allow us to still show the `lastActivity` for serverless projects.\nThe change was implemented for both flavours.\n\nVisually it won't represent any changes at the moment, but here are the\ntwo flavours still working as before\n\n\nhttps://github.com/user-attachments/assets/18cc9b14-24f1-438a-ac07-565c3e728991","sha":"444f95ed0b4a2d251851f40d62b126544a6c17c0","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability"],"title":"[Dataset quality] remove usage of dataStreamStats API in serverless","number":192839,"url":"https://github.com/elastic/kibana/pull/192839","mergeCommit":{"message":"[Dataset quality] remove usage of dataStreamStats API in serverless (#192839)\n\nCloses https://github.com/elastic/kibana/issues/192166.\n\nThis PR aims to remove the usage of `DataStreamStats` API in serverless.\nAditionally we now make use of the new verbose mode for `DataStream` API\nwhich allow us to still show the `lastActivity` for serverless projects.\nThe change was implemented for both flavours.\n\nVisually it won't represent any changes at the moment, but here are the\ntwo flavours still working as before\n\n\nhttps://github.com/user-attachments/assets/18cc9b14-24f1-438a-ac07-565c3e728991","sha":"444f95ed0b4a2d251851f40d62b126544a6c17c0"}},"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/192839","number":192839,"mergeCommit":{"message":"[Dataset quality] remove usage of dataStreamStats API in serverless (#192839)\n\nCloses https://github.com/elastic/kibana/issues/192166.\n\nThis PR aims to remove the usage of `DataStreamStats` API in serverless.\nAditionally we now make use of the new verbose mode for `DataStream` API\nwhich allow us to still show the `lastActivity` for serverless projects.\nThe change was implemented for both flavours.\n\nVisually it won't represent any changes at the moment, but here are the\ntwo flavours still working as before\n\n\nhttps://github.com/user-attachments/assets/18cc9b14-24f1-438a-ac07-565c3e728991","sha":"444f95ed0b4a2d251851f40d62b126544a6c17c0"}}]}] BACKPORT--> Co-authored-by: Yngrid Coello <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
Closes #192166.
This PR aims to remove the usage of
DataStreamStats
API in serverless. Aditionally we now make use of the new verbose mode forDataStream
API which allow us to still show thelastActivity
for serverless projects. The change was implemented for both flavours.Visually it won't represent any changes at the moment, but here are the two flavours still working as before
Screen.Recording.2024-09-13.at.12.38.00.mov