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

[data views editor] Disable loading rollups when rollups are disabled #184765

Merged

Conversation

mattkime
Copy link
Contributor

@mattkime mattkime commented Jun 4, 2024

Summary

Previously we were checking the /api/rollup/indices endpoint when the data view editor was loaded. If rollups were disabled, it would harmlessly handle a 404 error. Still, people justifiably wonder whether something is wrong.

This PR skips checking the endpoint as one would expect. A unit test has been added. I also manually verified the behavior is as expected.

Follow up to #162674

@mattkime mattkime changed the title don't check rollups enddpoint when rollups disabled - and test don't check rollups endpoint when rollups disabled - and test Jun 4, 2024
@mattkime mattkime self-assigned this Jun 4, 2024
@mattkime mattkime added Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Rollups release_note:skip Skip the PR/issue when compiling release notes labels Jun 4, 2024
@mattkime
Copy link
Contributor Author

mattkime commented Jun 4, 2024

/ci

@mattkime mattkime changed the title don't check rollups endpoint when rollups disabled - and test [data views editor] Disable loading rollups when rollups are disabled Jun 4, 2024
@elastic elastic deleted a comment from kibana-ci Jun 4, 2024
@mattkime mattkime marked this pull request as ready for review June 4, 2024 20:45
@mattkime mattkime requested a review from a team as a code owner June 4, 2024 20:45
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@mattkime
Copy link
Contributor Author

mattkime commented Jun 5, 2024

/ci

Copy link
Member

@lukasolson lukasolson left a comment

Choose a reason for hiding this comment

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

LGTM

@mattkime
Copy link
Contributor Author

mattkime commented Jun 5, 2024

/ci

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

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
dataViewEditor 48.6KB 48.8KB +104.0B

History

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

cc @mattkime

@mattkime mattkime merged commit 1772203 into elastic:main Jun 5, 2024
19 checks passed
@kibanamachine kibanamachine added v8.15.0 backport:skip This commit does not require backporting labels Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Rollups release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants