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

Fix numerical sorting in the old UI for Active/Verified findings #10045

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

davidhernandeze
Copy link
Contributor

@davidhernandeze davidhernandeze commented Apr 26, 2024

[sc-5627]

As #6629 describes, there are views where sorting is made "lexicographically." The main problem I found is that sorting is performed by the front end (the page doesn't reload on sorting). Tables that don't perform sorting on the backend, like the ones displayed at /product/{pid}/engagements, will need another approach.

For the All products view, using a filter for findings_count on the backend allows us to sort numerically and sort over the complete dataset instead of being limited by the rows shown on the current page.

By implementing this change, we directly address the issue outlined in #8127, providing a more efficient sorting and filtering mechanism for the displayed data.

include dojo_sort snippet in findings_count table header
add findings_count annotation to include column in query
Copy link

Hi there 👋, @DryRunSecurity here, below is a summary of our analysis and findings.

DryRun Security Status Findings
Secrets Analyzer 0 findings
Configured Codepaths Analyzer 3 findings
Sensitive Files Analyzer 0 findings
Authn/Authz Analyzer 1 finding
AppSec Analyzer 0 findings

Note

🔴 Risk threshold exceeded. Adding a reviewer if one is configured in .dryrunsecurity.yaml.

notification list: @mtesauro @grendel513

Powered by DryRun Security

@github-actions github-actions bot added the ui label Apr 26, 2024
Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

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

Approved

@mtesauro mtesauro merged commit 2db4e3a into DefectDojo:dev Apr 27, 2024
121 of 122 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants