Closed TangoYankee closed 5 days ago
@dhochbaum-dcp , similar to #246, the component fields of the composite key for capital projects will need to be explicitly enforced as not null. This means managing_code and id should have the notNull constraint added. This will require a migration using npx drizzle-kit generate:pg
and then npm run drizzle:migrate
standby on the exact commands. It looks like we need to update drizzle-kit which will change the syntax. Update: npm run drizzle:generate
and npm run drizzle:migrate
Unfortunately didn't get too far with this but I did start a branch that someone can pick up: 247/projects-by-comm-district
. It has a commit for adding the constraints @TangoYankee mentions above.
@pratishta this ticket is affected by an incorrect geometry type. Community districts are supposed to be multipolygons. But, the 'lift' column is incorrectly typed as a 'point'. There are two fixes associated: 1) Fix the column itself 2) Remove the "patch" in the data flow
Updated the draft PR with most of the work so far here: https://github.com/NYCPlanning/ae-zoning-api/pull/327#issuecomment-2177213282
Acceptance criteria
findCapitalProjectsByBoroughIdCommunityDistrictId
endpoint in compliance with #237borough
domain folderhelpful code:
the tax lot domain
Related tickets