topcoat-data / topcoat-public

TopCoat components, visualizations and themes
MIT License
1 stars 3 forks source link

Fix modify columns #148

Closed AriSorsko closed 2 years ago

AriSorsko commented 2 years ago

Goal: Allow users to show/hide columns on the fly. This includes updating the columns shown in pdf and csv exports in addition to what appears in the table.

To test: Note: The ISSUE_SEVERITY and ISSUE columns cannot be hidden and will always be present. Because the ISSUE columns depends on multiple layer columns, all of those layer columns will end up in the csv export.

  1. Check out the modify_columns branch in snyk-insights
  2. sync modules
  3. in the iframe, open the issue details page
  4. Verify that the following columns are present:
    • [ ] SCORE
    • [ ] ISSUE
    • [ ] CVE
    • [ ] CWE
    • [ ] PROJECT
    • [ ] EXPLOIT MATURITY
    • [ ] AUTO FIXABLE
    • [ ] INTRODUCED
    • [ ] PRODUCT
  5. Select/Deselect columns
  6. Verify that the selected/deselect columns are added/removed from the table as appropriate.
  7. Refresh the page
  8. Verify that the columns you selected/deselected are still present/absent as appropriate
  9. Export a pdf, verify that none of the data is cut off and that the columns you selected/deselected are present/absent as appropriate
  10. Export a csv, verify that the columns you selected/deselected are present/absent as appropriate
  11. Select All the columns and verify that the table in the pdf does not have a horizontal scroll and cut off part of the data
  12. Reset All the columns and verify that pdf and csv generation works