data-workspace-frontend icon indicating copy to clipboard operation
data-workspace-frontend copied to clipboard

fix: DT-1954 - Table views are not being shown in the data usage component

Open ian-leggett opened this issue 1 year ago • 0 comments

Description of change

Currently the "Data Usage" component thats mounted on the catalogue item pages is broken and we are not showing any "Table views" for master source sets and data cuts. This change fixes the issue and wraps more tests around the API endpoint.

How to test

  1. Open a "Master/Source set dataset" catalogue item.
  2. Scroll down to the "Data usage" component.
  3. Take a note of the current "Table views" count.
  4. Click on any of the tables listed on the page.
  5. Return to the catalogue item page.
  6. Notice that the count for table views have increased by one.

Repeat steps 1 - 6 for data cut, reference dataset and a visualisation catalogue items. Note: Visualisation catalogue items will not show "Table views", you will see "Dashboard views" instead.

Checklist

  • [x] Have tests been added to cover any changes?
  • [x] Have E2E tests been added to cover any React changes?
  • [x] Have Accessibility tests been added to cover any React changes?

ian-leggett avatar Apr 29 '24 10:04 ian-leggett