Closed MStuhlmacher closed 3 months ago
Thanks for this ticket @MStuhlmacher. Looked into it further and we needed to update our script that generates the downloadable dataset. Should have the fix for this deployed tomorrow.
@bodom0015 the problem goes a little deeper than just the need for auto-generating the public download file. Ultimately, the data dictionary that is shown in the Data page comes directly from the Columns sheet in the main Data Dictionary and Variables file, but these column names may not actually exist in the data (and nothing breaks if they don't). While each entry in the Variables sheet does have a column name that I thought had to link to the Columns sheet, but actually links to the column names in the data sheets themselves. For example, trees_crown_density
(shortened to trees_crow
during shapefile export) is the name in the data sheet, treeCrDn
is what is listed in the Columns sheet.
So! The following things need to happen to bring this all together:
camelCase
After all of this is done, checkout the branch from the linked PR above, and run yarn build:data
, then check the following:
Anything else? Ultimately this will greatly improve the coherence of the backend data content within the app.
Also please fix the typo in this column name asthemaAdj
(should be asthmaAdj
).
This is now handled, it required a bit of work behind the scenes. The solution I outlined above didn't end up being feasible (we aren't able to change the column headers in the original source data), so here is the solution I came up with:
Describe the problem The column headings defined in the data dictionary on this page (https://chichives.com/data) do not match the column headings in the shapefile that can be downloaded from the same page. For example, the data dictionary says that the tree crown density heading is called "treeCrDn" but in the shapefile this heading is "tree_crow" or maybe "tree_den".
Expected behavior Expected behavior is that the data dictionary would match the headings in the shapefile and that the data dictionary would include all columns in the shapefile.
Environment info: