dnsmasq: leases sorting fixes - #10790
Conversation
|
it's probably better to change this in the template / form, eg use a sortable field ( and add a formatter to show the |
|
Thanks for the feedback. I take it the preference is to keep this out of Noting that there will need to be four sortable fields because this doesn't only impact |
|
given the values we do want to sort are already in the dataset received by |
|
Thinking about it further, is there a case for a shared helper or helpers, such as in |
|
I had the idea some time ago to add types on data in the search function (dad956e), but haven't found time to work on it further I'm afraid. Ideally you should be able to user filter logic based on the type of data that's inside the container, same would logically apply for sorting in that case too. The main reason for wanting this is the filter page, which would be very practical to have a simple "impact assessment" for clauses provided (e.g. searching which rules impact This is more of a longer term solution I'm afraid. |
Important notices
Before you submit a pull request, we ask you kindly to acknowledge the following:
If AI was used, please disclose:
Describe the problem
Ordering of various Dnsmasq lease fields (IP Address, MAC Address, DUID, Lease Type) currently does not work properly since the existing code does not take proper account of the underlying data structure (array) or type (hex numbers).
Describe the proposed solution
Ensure proper ordering.
(Note that the same issues likely affect the KEA leases sorting, however I am focusing this PR on Dnsmasq for the time being.)
Related issue
https://forum.opnsense.org/index.php?topic=52794.0