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

Add child places for all allowed place types and sort them #4824

Merged
merged 12 commits into from
Jan 3, 2025

Conversation

gmechali
Copy link
Contributor

@gmechali gmechali commented Jan 2, 2025

Some places did not have a name which caused an error when we tried to get the name property. See https://autopush.datacommons.org/browser/nuts/LVZZ

Discussed whether to keep the restriction for related place charts on only one child_place_type and we decided to drop the requirement. The old place page didnt have it, and the new one would show significantly changed child places. Some countries use EurostatNuts1 while others use AA1. Now we show children of different type and dedupe them.

See Latvia:
Old Place Page: https://screenshot.googleplex.com/BjiMRDVEqQpXEZK
New Place Page before: https://screenshot.googleplex.com/3L6ot765jxM4AjT
New place page after: https://screenshot.googleplex.com/A4kBUEaGitVkum4

Sources tile no longer shown on load:
Before: https://screenshot.googleplex.com/8RGHgDKNTBQKoYD
After: https://screenshot.googleplex.com/9L6AA9XWVYgEgjW

@gmechali gmechali requested a review from dwnoble January 2, 2025 18:44
@gmechali gmechali marked this pull request as ready for review January 2, 2025 19:40
@gmechali gmechali requested a review from dwnoble January 3, 2025 15:23
@gmechali gmechali changed the title Change order of child place type in dev place & add safeguard Add child places for all allowed place types and sort them Jan 3, 2025
server/routes/dev_place/utils.py Outdated Show resolved Hide resolved
server/routes/dev_place/api.py Show resolved Hide resolved
@gmechali gmechali merged commit bb7b11f into datacommonsorg:master Jan 3, 2025
9 checks passed
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