website icon indicating copy to clipboard operation
website copied to clipboard

[BUG] Count of statistical variables in UI is incorrect after overwrite

Open mikehern opened this issue 1 year ago • 0 comments

Describe the bug

After replacing an uploaded dataset with 1 new variable in the table, the list of variables is correct, but the counts are stale.

To Reproduce

URL: https://datacommons.techsoup.org/tools/statvar Browser: Arc Browser Version 0.105.3 (39135) Chromium Engine Version 113.0.5672.126

Steps to reproduce the behavior:

  1. Created a csv and tmcf of 12 statistical variables
  2. Uploaded to a folder in GCP bucket
  3. Triggered table creation
  4. Ran import script to bring table into UI
  5. See 12 variables in UI (see screenshot)
  6. Created a csv and tmcf with the same 12 statistical variables + 1 new variable (Population_Low_Access_To_Grocery_Store)
  7. Uploaded to a different folder in GCP bucket
  8. Triggered table creation
  9. Ran import script to bring table into UI
  10. See list of 13 variables in UI

Expected behavior

Expected the counts in parentheses to be 13, but actually see 12. See screenshot

Screenshots

Original: image

Actual: image

Additional context

This is specific to the TechSoup DC, but we should be in sync with the main website dc codebase.

mikehern avatar May 31 '23 23:05 mikehern