Compliance Report: Add sorting to table columns
Problem to solve
Once the data is segmented by violation instead of by merge request, being able to sort data quickly will be important for Cameron to discover what is critical.
Proposal
Add the ability to sort each column individually, like you can in Vulnerability Report
Use the new guidance for table sorting in Pajamas
Non-obvious design assumptions
- Default sort based on severity ↓
- If severity is the same, sort by datetime when the violation occurred, with the most recent first.
Implementation plan
frontend
- Enable sorting on the
GlTable
. - Default sort by
SEVERITY_DESC
. - Sort the apollo violations query.
- Sync the sort param with the URL.
- Update the fields to match the API sort enum !78681 (diffs).
- Update specs
Edited by Jiaan Louw