Fix wrong country shown for sub-national organizations#610
Fix wrong country shown for sub-national organizations#610poojavenkatapuram wants to merge 1 commit intogovdirectory:mainfrom
Conversation
Update the organization page to display the parent organization instead of the country for sub-national entities. Falls back to showing the country when no parent organization exists. This change only affects display logic and does not modify data. Fixes govdirectory#576
|
I am sorry, but I think you have misunderstood the relationships between countries and their parts. First, they are likely never modeled in Wikidata with a parent organization property, and it is also likely that countries are modeled in different ways. But that's beside the point because we don't need to look that up; it is defined in the country query. |
|
Thanks for the clarification, that makes sense. I see now that inferring hierarchy via parent organization is not reliable I’ll revisit the implementation and adjust it to rely on the country query Please let me know if you have a specific file or query in mind that I should |
Update the organization page to display the parent organization instead of the country for sub-national entities.
Falls back to showing the country when no parent organization exists. This change only affects display logic and does not modify data.
Fixes #576
Description
Issue Reference
Fixes #(issue)
Checklist
Please ensure the following before submitting the PR:
Screenshots (applicable to user interface changes)