Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update constraints in BOPS payload and tighten planning constraint types #46

Merged
merged 11 commits into from
Jun 30, 2023

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Jun 22, 2023

Goes with theopensystemslab/planx-new#1827

Enables us to send a test application to BOPS with payload property constraints_proposed

@jessicamcinchak jessicamcinchak changed the title chore: stricter GISResponse for planning constraints feat: update constraints in BOPS payload and tighten planning constraint types Jun 22, 2023
@jessicamcinchak
Copy link
Member Author

@jessicamcinchak jessicamcinchak marked this pull request as ready for review June 23, 2023 08:29
@jessicamcinchak jessicamcinchak requested a review from a team June 23, 2023 08:29
}, {});
if (Object.values(constraints).map(Boolean).length > 0) {
if (passport.data?.["_constraints"]) {
const constraints: Record<string, boolean> = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Maybe BOPSFullPayload["constraints"] is a bit safer/cleaner?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep totally, thanks for spotting - updated now

@jessicamcinchak jessicamcinchak merged commit c625da8 into main Jun 30, 2023
@jessicamcinchak jessicamcinchak deleted the jess/stricter-planning-constraint-types branch June 30, 2023 08:08
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.

2 participants