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

[ML] Fix swim lane for top influencers #84258

Merged

Conversation

darnautov
Copy link
Contributor

@darnautov darnautov commented Nov 24, 2020

Summary

When cells on the "Overall" swim lane are selected, we filter the "View By" swim lane based on the top influencers in that range. This PR fixes the request for this case by removing the limit (based on cardinality).
Nov-24-2020 18-36-41

Fix swim lane sorting when top influencers are presented:
Before:
image

After:
image

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested and LGTM. Just found one typo!

* For the "View by" swim lane the limit is the cardinality of the influencer values,
* which is known after the initial fetch.
* When looking up for top influencers for selected range in Overall swim lane
* the result is filtered by top influencers values, hence there is no need ot set the limit.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit - typo ot should be to

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in c073125

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

Tested and LGTM ⚡

@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
ml 5.2MB 5.2MB +559.0B

History

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

@darnautov darnautov merged commit dc15aa8 into elastic:master Nov 24, 2020
@darnautov darnautov deleted the ML-fix-swimlane-top-influencers-pagination branch November 24, 2020 22:26
darnautov added a commit to darnautov/kibana that referenced this pull request Nov 24, 2020
* [ML] fix swim lane with page size for top influencers, fix swim lane sorting

* [ML] fix typo
darnautov added a commit that referenced this pull request Nov 25, 2020
* [ML] fix swim lane with page size for top influencers, fix swim lane sorting

* [ML] fix typo
darnautov added a commit that referenced this pull request Nov 25, 2020
* [ML] fix swim lane with page size for top influencers, fix swim lane sorting

* [ML] fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants