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

[RAC] Fix scrolling on Obs alerts table #109139

Merged

Conversation

Kerry350
Copy link
Contributor

Summary

Fixes #108188.

Before:

scroll-issue

After:

scroll-issue-new

ℹ️ Notes

We do lose the fixed nature of the table header here. I have spoken to @katrin-freihofner about this and we decided to opt for this solution first. We could opt for a solution that goes for a "take up all of the remaining vertical space" approach (rather than a fixed 490px), but that would still have the double scrollbars problem. It would also be a more complex solution. We should see if this approach creates problems first.

@Kerry350 Kerry350 added bug Fixes for quality problems that affect the customer experience v8.0.0 release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed Feature:RAC label obsolete v7.15.0 v7.16.0 Feature:Observability RAC labels Aug 18, 2021
@Kerry350 Kerry350 requested a review from a team August 18, 2021 16:58
@Kerry350 Kerry350 requested a review from a team as a code owner August 18, 2021 16:58
@Kerry350 Kerry350 self-assigned this Aug 18, 2021
@mistic mistic removed the v7.15.0 label Aug 18, 2021
@mgiota mgiota self-requested a review August 18, 2021 18:36
Copy link
Contributor

@mgiota mgiota left a comment

Choose a reason for hiding this comment

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

LGTM. Security team does it differently though. Shall we be consistent between the solutions? cc @katrin-freihofner

@mgiota mgiota added the v7.15.0 label Aug 18, 2021
Copy link
Member

@machadoum machadoum left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -347,7 +347,7 @@ export function AlertsTableTGrid(props: AlertsTableTGridProps) {
end: rangeTo,
filters: [],
indexNames: [indexName],
itemsPerPage: 10,
itemsPerPage: 50,
Copy link
Member

@machadoum machadoum Aug 20, 2021

Choose a reason for hiding this comment

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

It doesn't make much sense to me that we hard code itemsPerpage here but we also have this value inside the store. We could remove this prop and use itemsPerPageStore here:

Copy link
Contributor Author

@Kerry350 Kerry350 Aug 23, 2021

Choose a reason for hiding this comment

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

I've added 38be6e5 to address this, could you let me know if this looks okay? It meant adjusting the store defaults so that itemsPerPageStore produced 50. And maybe the TGridStandaloneComponent should've kept itemsPerPage as an optional prop, but this goes for the "expose when needed" route.

@mgiota
Copy link
Contributor

mgiota commented Aug 23, 2021

@Kerry350 Some types are failing for this PR

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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
observability 492.1KB 492.1KB -16.0B
timelines 437.2KB 437.1KB -38.0B
total -54.0B

History

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

cc @Kerry350

@Kerry350
Copy link
Contributor Author

I’m going to merge this as-is as it’s a 7.15 UX blocker. If #109139 (comment) isn’t suitable we can follow up.

@Kerry350 Kerry350 merged commit 09fda96 into elastic:master Aug 24, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 24, 2021
* Fix scrolling on obs alerts table and default to 50 items per page
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Aug 24, 2021
* Fix scrolling on obs alerts table and default to 50 items per page
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.15
7.x

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Aug 24, 2021
* Fix scrolling on obs alerts table and default to 50 items per page

Co-authored-by: Kerry Gallagher <[email protected]>
kibanamachine added a commit that referenced this pull request Aug 24, 2021
* Fix scrolling on obs alerts table and default to 50 items per page

Co-authored-by: Kerry Gallagher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience Feature:Observability RAC Feature:RAC label obsolete release_note:skip Skip the PR/issue when compiling release notes v7.15.0 v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RAC]Observability alerts table should show 50 rows per default, no vertical scrolling within the panel
5 participants