website
website copied to clipboard
[BUG] Count of statistical variables in UI is incorrect after overwrite
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:
- Created a csv and tmcf of 12 statistical variables
- Uploaded to a folder in GCP bucket
- Triggered table creation
- Ran import script to bring table into UI
- See 12 variables in UI (see screenshot)
- Created a csv and tmcf with the same 12 statistical variables + 1 new variable (Population_Low_Access_To_Grocery_Store)
- Uploaded to a different folder in GCP bucket
- Triggered table creation
- Ran import script to bring table into UI
- 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:
Actual:
Additional context
This is specific to the TechSoup DC, but we should be in sync with the main website dc codebase.