Skip to content

[Dataset quality] Extracting totalDocs form degradedDocs request#198757

Merged
yngrdyn merged 20 commits intoelastic:mainfrom
yngrdyn:183-dataset-quality-failure-docs-api
Nov 6, 2024
Merged

[Dataset quality] Extracting totalDocs form degradedDocs request#198757
yngrdyn merged 20 commits intoelastic:mainfrom
yngrdyn:183-dataset-quality-failure-docs-api

Conversation

@yngrdyn
Copy link
Contributor

@yngrdyn yngrdyn commented Nov 4, 2024

Relates to https://github.com/elastic/logs-dev/issues/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

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

  • Test in MKI before merging


export type DataStreamStat = rt.TypeOf<typeof dataStreamStatRt>;

export const dataStreamDocsStatRt = rt.type({
Copy link
Contributor Author

@yngrdyn yngrdyn Nov 4, 2024

Choose a reason for hiding this comment

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

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.

@yngrdyn yngrdyn force-pushed the 183-dataset-quality-failure-docs-api branch from bc15979 to b7c775b Compare November 5, 2024 11:23
@yngrdyn
Copy link
Contributor Author

yngrdyn commented Nov 5, 2024

/ci

@yngrdyn
Copy link
Contributor Author

yngrdyn commented Nov 5, 2024

/ci

@yngrdyn
Copy link
Contributor Author

yngrdyn commented Nov 5, 2024

/ci

@yngrdyn yngrdyn marked this pull request as ready for review November 5, 2024 15:53
@yngrdyn yngrdyn requested review from a team as code owners November 5, 2024 15:53
@yngrdyn yngrdyn added backport:prev-minor release_note:skip Skip the PR/issue when compiling release notes labels Nov 5, 2024
@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Nov 5, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2024

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Contributor

@dmlemeshko dmlemeshko left a comment

Choose a reason for hiding this comment

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

x-pack/test/api_integration/deployment_agnostic changes LGTM

Copy link
Contributor

@mohamedhamed-ahmed mohamedhamed-ahmed left a comment

Choose a reason for hiding this comment

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

LGTM!! Great Work here

@yngrdyn yngrdyn enabled auto-merge (squash) November 6, 2024 13:50
@yngrdyn yngrdyn self-assigned this Nov 6, 2024
@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 6, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: ef98275
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-198757-ef98275e5043

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #27 / Actions and Triggers app Maintenance Windows Maintenance window update form should update a maintenance window

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
datasetQuality 249.2KB 250.5KB +1.3KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
datasetQuality 18.5KB 18.9KB +387.0B

History

cc @yngrdyn

@yngrdyn yngrdyn merged commit 3e0ec51 into elastic:main Nov 6, 2024
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 6, 2024
…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)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
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 7, 2024
#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants