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

Sortable tables #306

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Sortable tables #306

wants to merge 8 commits into from

Conversation

Steppenw01f
Copy link

Fixes partially #74 and #210

This proposed solution contains following enhancements:

  • The integration of URL query parameter with multiple values
  • The possibility of using the sort parameter in your queries. The values of this parameter can be set multiple times in one query, to enable an ORDER BY for several columns -> order of the sorting will be defined by the order of the value in the sequence. Following image shows a query of the CVEs, that is ordered by the CVSS v3 in descending order and then by the CVSS v2 in ascending order.
    image
  • Functionality is also applicable for the API
    image

Remarks:
I am more of a backend developer, therefore might the code style of the cves.html not be the best.
Sorry for that.
If this draft is sufficient, I am more than happy about feedback.

Best regards,
Steppenw01f 😄

Steppenw01f and others added 8 commits July 26, 2023 18:11
+ add sort parameter to multi_value_parameter
~ move declaration of cls.order into build query to ensure reset of default parameters
+ add handling of sort parameter
…port url query parameter with multiple values
… state of the sorting

+ add _get_sort_parameter for links in the web view
+ add links in button style on table headers for sortable columns
~ change style of table header to be uniform
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.

None yet

1 participant