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

Sort Order Improvements for the Agents table #448

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

val500
Copy link
Contributor

@val500 val500 commented Jan 23, 2025

Description

Adds some improvements to the agents table - namely the provisioning streak column. This PR makes the sorting functionality of the table work with this column, first separating by failures/success, then sorting by the streak number. In addition, url parameters were added to persist sorting information on refresh for the agents table. Finally, this column was given the name "Outcome", and a tooltip was added describing this column.

To support this, new functions were added to filter.js - ordering functions were created to differentiate default ordering with provision streak ordering. Also, a new function to get URL parameters and use them to sort the table was also created. Finally, the sortTable function was split into two functions - sortTable and cycleTableSort. sortTable now just sorts a table given an ordering("ascending", "descending", "none"), while cycleTableSort cycles through the ordering states and uses sortTable to apply that ordering.

Resolved issues

Resolves https://warthogs.atlassian.net/browse/CERTTF-396

Documentation

Each new function was given documentation and comments.

Web service API changes

N/A

Tests

N/A

@val500 val500 requested a review from a team January 23, 2025 21:47
@jocave
Copy link
Collaborator

jocave commented Jan 24, 2025

Excited for this, would you mind including a screenshot(s) in this review so can quickly review UI changes? Thanks

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