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

client: Fix uptime sort in table view #3038

Merged
merged 2 commits into from
Jan 22, 2018
Merged

client: Fix uptime sort in table view #3038

merged 2 commits into from
Jan 22, 2018

Conversation

rndstr
Copy link
Contributor

@rndstr rndstr commented Jan 19, 2018

Duration dataType for table columns is now sorted as numeric value.
Default sorting is kept as ascending and text is left-aligned, unlike
numbers.

Fixes #3026

Duration dataType for table columns is now sorted as numeric value.
Default sorting is kept as ascending and text is left-aligned, unlike
numbers.
@rndstr rndstr requested a review from fbarl January 19, 2018 17:44
Copy link
Contributor

@fbarl fbarl left a comment

Choose a reason for hiding this comment

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

Works nicely, LGTM 🎉

My only comment was to improve the test a bit.


matchColumnValues('uptime', ['1 second', '2 seconds', '4 seconds', '30 seconds']);
clickColumn('Uptime');
matchColumnValues('uptime', ['30 seconds', '4 seconds', '2 seconds', '1 second']);

This comment was marked as abuse.

@rndstr rndstr merged commit f96dd4a into master Jan 22, 2018
@rndstr rndstr deleted the 3026-uptime-sort branch January 22, 2018 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants