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

fix: Assign missing A4 category #2532

Merged
merged 1 commit into from
Dec 4, 2023
Merged

fix: Assign missing A4 category #2532

merged 1 commit into from
Dec 4, 2023

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Dec 4, 2023

Just spotted this when testing - it looks like category for article 4s are not being returned by API so the UI is defaulting to undefined.

I don’t think there have really been any recent changes here that could have caused this - there might be another solution (or cause!) I'm missing here so this might be a naive fix...!

Waiting on Pizza to test changes 🚀

image

Original request URL (undefined):
https://api.2529.planx.pizza/gis/southwark?geom=POLYGON+%28%28-0.0807095109084621+51.50357969225416%2C+-0.08026678402163087+51.50357732850256%2C+-0.0803878763290122+51.50339599741571%2C+-0.0807095109084621+51.50357969225416%29%29&analytics=false

@DafyddLlyr
Copy link
Contributor Author

On second thoughts - it looks like this will just give us a second "General Policy" list here?

@jessicamcinchak
Copy link
Member

Good spot - this is a weird one!

I think it's a CAZ edge case: it looks like the "category" is correctly assigned to article4.southwark.caz, but then when that's "rolled up" to its' parent article4 the category has been dropped? I haven't checked out the branch yet, but might be in an issue with the rollup method if this solution isn't working as expected yet?

CAZ are strangely/uniquely handled because they are a "child" granular passport variable of A4 heirarchy, but fetch from from a unique "dataset" different than A4.

Copy link

github-actions bot commented Dec 4, 2023

Removed vultr server and associated DNS entries

@DafyddLlyr
Copy link
Contributor Author

Fix is working as I'd expect - the frontend is actually grouping these by category

image

@DafyddLlyr DafyddLlyr changed the title fix(wip): Assign missing A4 category fix: Assign missing A4 category Dec 4, 2023
@DafyddLlyr DafyddLlyr requested a review from a team December 4, 2023 17:09
@DafyddLlyr DafyddLlyr marked this pull request as ready for review December 4, 2023 17:14
Copy link
Member

@jessicamcinchak jessicamcinchak left a comment

Choose a reason for hiding this comment

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

Thank you!

@DafyddLlyr DafyddLlyr merged commit c3c0ad8 into main Dec 4, 2023
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/missing-a4-category branch December 4, 2023 17:26
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