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

UI: Add truncation of rendered search results #8571

Merged
merged 2 commits into from
Aug 5, 2020
Merged

Conversation

backspace
Copy link
Contributor

@backspace backspace commented Jul 30, 2020

image

This closes #8549. Thanks to @optiz0r for the bug report. Having
the global search attempt to render every returned result is
obviously a mistake!

This closes #8549. Thanks to @optiz0r for the bug report. Having
the global search attempt to render every returned result is
obviously a mistake!

I chose to have the full number of matches still render, though
I also considered having it display (10+) instead. The choice of
truncating at 10 is arbitrary, maybe a higher number would be
preferable, I’m open to suggestions.
@github-actions
Copy link

github-actions bot commented Jul 30, 2020

Ember Asset Size action

As of 0975f02

Files that got Bigger 🚨:

File raw gzip
nomad-ui.js +190 B +110 B

Files that stayed the same size 🤷‍:

File raw gzip
vendor.js 0 B 0 B
nomad-ui.css 0 B 0 B
vendor.css 0 B 0 B

Copy link
Contributor

@DingoEatingFuzz DingoEatingFuzz left a comment

Choose a reason for hiding this comment

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

Looks good! This is also sneaky since search does filter down the full set of jobs, but with heavy use of common prefixes (easy with periodic or parameterized jobs) it won't filter down much.

As for capping at 10, I think this is fine. If someone needs to look through a result set of more than 10, maybe global search isn't the right tool.

As for showing the full result count, I think this is okay too. It might be nice to say something like "showing 10 of X,XXX" but that's just a cherry on top.

@github-actions
Copy link

github-actions bot commented Jul 30, 2020

Ember Test Audit comparison

master 0975f02 change
passes 1362 1363 +1
failures 0 0 0
flaky 0 0 0
duration 6m 52s 078ms 6m 04s 789ms -47s 289ms

@backspace
Copy link
Contributor Author

Thanks for the feedback, I love cherries on top of course haha so I’ve added that in 0975f02 🥳

Copy link
Contributor

@DingoEatingFuzz DingoEatingFuzz left a comment

Choose a reason for hiding this comment

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

🍒 🔝

@backspace backspace merged commit f5c8e28 into master Aug 5, 2020
@backspace backspace deleted the b-ui/search-truncate branch August 5, 2020 20:58
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global seach hangs UI for tens of seconds with large numbers of jobs
2 participants