-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Sorting by Days (uptime fact) sorts incorrectly #469
Comments
one of the suggested alternatives on: https://github.com/kylefox/jquery-tablesort also avalible are: |
Do not use tablesorter and datatables together, as it will give you an error because both will try to access jquery. If you are using datatables, In _macros.html change the type of your data: "columnDefs": [ See documentation here: https://datatables.net/plug-ins/sorting/ |
it would be great to remove the tablesort dependencies as it's one of the blockers in packaging this in debian |
@anarcat can you provide a PR for this? |
I have attempted to resolve this issue by using : https://datatables.net/plug-ins/sorting/natural-time-delta i added <script src="//cdn.datatables.net/plug-ins/1.10.21/sorting/natural-time-delta.js"></script> and added : "type": "natural-time-delta-pre", but it does not sort the table correct and i cannot tell if the plugin doesn't work is is not being used. |
I pushed my test changes to my fork, Also i realized that adjusting the table column sorting will affect columns which are not messed up like the uptime one. |
@jgrammen-agilitypr could you make a pull request for this? |
pull req created, #591 |
This has been fixed in v3.4.0rc2, which includes the above PR. A final version will be released soon. |
I suspect that it got broken in the big frontend refactor of https://github.com/voxpupuli/puppetboard/blob/master/CHANGELOG.md#410. Can you please test if the issue also occurs in the last version < 4.1.0, @jgrammen-agilitypr ? |
I don't have a picture to share but I can confirm that the uptime fact order is correct (not broken) on 4.0.3 |
Would you be so kind to take a look at it, @melck? If you do and have the time then probably it would be the fastest for you. |
Ok, this regression turned out to be easy to backtrack so I fixed it myself. Fixed in v4.2.3 released a moment ago. Thanks for reporting the problem @jgrammen-agilitypr and sorry for the regression. |
I can confirm that the issue is resolved. Thank you for the fast fix. |
in the facts tab, if you sort by value (date) the sort or is incorrect.
It sorts by the leading number not by the actual value
as you can see in the picture below which should be sorted in ascending length of days:
The text was updated successfully, but these errors were encountered: