Skip to content

323 Refactor community district query parameters#324

Open
dhochbaum-dcp wants to merge 3 commits intomainfrom
323-Refactor-community-district-query-parameters
Open

323 Refactor community district query parameters#324
dhochbaum-dcp wants to merge 3 commits intomainfrom
323-Refactor-community-district-query-parameters

Conversation

@dhochbaum-dcp
Copy link
Copy Markdown
Contributor

To be merged with NYCPlanning/ae-zoning-api#552 and NYCPlanning/ae-zoning-api#553 so that the changes do not break functionality.

Closes #323

? { communityDistrictId: `${boroughId}${districtId}` }
? { boroughId, communityDistrictId: districtId }
: {}),
...(boroughId !== null && districtId === null && districtType === "cd"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to be filtering by borough when the district type is community district?

This applies here in the budget request, later in the capital project json, and finally in the budget request csv

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that was my intent.

...(agencyBudget === null ? {} : { agencyBudget }),
...(commitmentsTotalMin === null ? {} : { commitmentsTotalMin }),
...(commitmentsTotalMax === null ? {} : { commitmentsTotalMax }),
...(districtId !== null ? {} : { isMapped: true }),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're expected to only show mapped capital projects. When we're removing the "isMapped" check, are we preserving the functionality some other way?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - I've re-added an updated version of the isMapped check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor community district query parameters

2 participants