NYCPlanning / db-zap-opendata

Workflow for creating subset of ZAP data that's on open data
0 stars 0 forks source link

Recode Additional Fields #25

Closed SashaWeinstein closed 2 years ago

SashaWeinstein commented 2 years ago

This is a continuation of issue #15 Two additional upgrades from Matthew

Fields with coded values still present:

In the dcp_projectsbbls table:

project_id: this is still showing values that contain project id and bbl values (e.g. 2020R0189 - 5 - 05602 – 0034, instead of just 2020R0189).

SashaWeinstein commented 2 years ago

Update: Buji sent this link to get human-readable names for a single project https://nycdcppfs.crm9.dynamics.com/api/data/v9.1/dcp_projects(25e3308e-3947-43ea-9fd7-22d4c3a0c095)?$select=_dcp_applicant_customer_value,_dcp_currentmilestone_value,dcp_name&$expand=dcp_CurrentMilestone($select=dcp_name),dcp_leadagencyforenvreview($select=name),dcp_applicant_customer_contact($select=fullname),dcp_currentenvironmentmilestone($select=dcp_name),dcp_applicant_customer_account($select=name)] We are meeting on thursday to discuss the best way to get metadata for each of the 4 fields across all projects. It may involve iterating through each project though hopefully there is an easier way