[Dataset quality] Extracting totalDocs form degradedDocs request#198757
[Dataset quality] Extracting totalDocs form degradedDocs request#198757yngrdyn merged 20 commits intoelastic:mainfrom
Conversation
|
|
||
| export type DataStreamStat = rt.TypeOf<typeof dataStreamStatRt>; | ||
|
|
||
| export const dataStreamDocsStatRt = rt.type({ |
There was a problem hiding this comment.
Note
This type is now generic, can be reused by totalDocs and later by failedDocs. There is no need to create one type per each.
x-pack/plugins/observability_solution/dataset_quality/server/routes/data_streams/routes.ts
Show resolved
Hide resolved
...ity_solution/dataset_quality/public/services/data_streams_stats/data_streams_stats_client.ts
Outdated
Show resolved
Hide resolved
...ty_solution/dataset_quality/public/state_machines/dataset_quality_controller/src/defaults.ts
Show resolved
Hide resolved
x-pack/plugins/observability_solution/dataset_quality/public/utils/generate_datasets.ts
Outdated
Show resolved
Hide resolved
bc15979 to
b7c775b
Compare
|
/ci |
|
/ci |
|
/ci |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
dmlemeshko
left a comment
There was a problem hiding this comment.
x-pack/test/api_integration/deployment_agnostic changes LGTM
…rdyn/kibana into 183-dataset-quality-failure-docs-api
...ity_solution/dataset_quality/public/services/data_streams_stats/data_streams_stats_client.ts
Outdated
Show resolved
Hide resolved
...lution/dataset_quality/public/state_machines/dataset_quality_controller/src/notifications.ts
Outdated
Show resolved
Hide resolved
mohamedhamed-ahmed
left a comment
There was a problem hiding this comment.
LGTM!! Great Work here
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
Page load bundle
History
cc @yngrdyn |
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11707814704 |
…stic#198757) Relates to elastic/logs-dev#183 ## Summary This PR aims to split out `total_docs` from `degraded_docs` request. This number is no longer relevant only for degraded docs. This PR is a preparation step for supporting `failed_docs`. ### 🎥 Demo https://github.com/user-attachments/assets/7a826715-64e2-4799-8b54-934698df56e2 #### When no documents are found in the selected timerange https://github.com/user-attachments/assets/de974125-cf45-42d3-932f-32e43b282eb2 #### Filtering datasets https://github.com/user-attachments/assets/398fc7db-1e38-4998-9ecb-10e8644f812d ### TODO - [ ] Test in MKI before merging (cherry picked from commit 3e0ec51)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
#198757) (#199177) # Backport This will backport the following commits from `main` to `8.x`: - [[Dataset quality] Extracting totalDocs form degradedDocs request (#198757)](#198757) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Yngrid Coello","email":"yngrid.coello@elastic.co"},"sourceCommit":{"committedDate":"2024-11-06T16:29:09Z","message":"[Dataset quality] Extracting totalDocs form degradedDocs request (#198757)\n\nRelates to https://github.com/elastic/logs-dev/issues/183\r\n\r\n## Summary\r\nThis PR aims to split out `total_docs` from `degraded_docs` request.\r\nThis number is no longer relevant only for degraded docs. This PR is a\r\npreparation step for supporting `failed_docs`.\r\n\r\n### 🎥 Demo \r\n\r\nhttps://github.com/user-attachments/assets/7a826715-64e2-4799-8b54-934698df56e2\r\n\r\n#### When no documents are found in the selected timerange\r\n\r\nhttps://github.com/user-attachments/assets/de974125-cf45-42d3-932f-32e43b282eb2\r\n\r\n#### Filtering datasets\r\n\r\nhttps://github.com/user-attachments/assets/398fc7db-1e38-4998-9ecb-10e8644f812d\r\n\r\n### TODO\r\n\r\n- [ ] Test in MKI before merging","sha":"3e0ec510fab85d3b7346eb88b8a3bed0dc5b73f5","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-minor","ci:project-deploy-observability"],"title":"[Dataset quality] Extracting totalDocs form degradedDocs request","number":198757,"url":"https://github.com/elastic/kibana/pull/198757","mergeCommit":{"message":"[Dataset quality] Extracting totalDocs form degradedDocs request (#198757)\n\nRelates to https://github.com/elastic/logs-dev/issues/183\r\n\r\n## Summary\r\nThis PR aims to split out `total_docs` from `degraded_docs` request.\r\nThis number is no longer relevant only for degraded docs. This PR is a\r\npreparation step for supporting `failed_docs`.\r\n\r\n### 🎥 Demo \r\n\r\nhttps://github.com/user-attachments/assets/7a826715-64e2-4799-8b54-934698df56e2\r\n\r\n#### When no documents are found in the selected timerange\r\n\r\nhttps://github.com/user-attachments/assets/de974125-cf45-42d3-932f-32e43b282eb2\r\n\r\n#### Filtering datasets\r\n\r\nhttps://github.com/user-attachments/assets/398fc7db-1e38-4998-9ecb-10e8644f812d\r\n\r\n### TODO\r\n\r\n- [ ] Test in MKI before merging","sha":"3e0ec510fab85d3b7346eb88b8a3bed0dc5b73f5"}},"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/198757","number":198757,"mergeCommit":{"message":"[Dataset quality] Extracting totalDocs form degradedDocs request (#198757)\n\nRelates to https://github.com/elastic/logs-dev/issues/183\r\n\r\n## Summary\r\nThis PR aims to split out `total_docs` from `degraded_docs` request.\r\nThis number is no longer relevant only for degraded docs. This PR is a\r\npreparation step for supporting `failed_docs`.\r\n\r\n### 🎥 Demo \r\n\r\nhttps://github.com/user-attachments/assets/7a826715-64e2-4799-8b54-934698df56e2\r\n\r\n#### When no documents are found in the selected timerange\r\n\r\nhttps://github.com/user-attachments/assets/de974125-cf45-42d3-932f-32e43b282eb2\r\n\r\n#### Filtering datasets\r\n\r\nhttps://github.com/user-attachments/assets/398fc7db-1e38-4998-9ecb-10e8644f812d\r\n\r\n### TODO\r\n\r\n- [ ] Test in MKI before merging","sha":"3e0ec510fab85d3b7346eb88b8a3bed0dc5b73f5"}}]}] BACKPORT--> --------- Co-authored-by: Yngrid Coello <yngrid.coello@elastic.co>
Relates to https://github.com/elastic/logs-dev/issues/183
Summary
This PR aims to split out
total_docsfromdegraded_docsrequest. This number is no longer relevant only for degraded docs. This PR is a preparation step for supportingfailed_docs.🎥 Demo
Screen.Recording.2024-11-05.at.22.55.13.mov
When no documents are found in the selected timerange
Screen.Recording.2024-11-05.at.23.11.43.mov
Filtering datasets
Screen.Recording.2024-11-05.at.23.13.20.mov
TODO