Skip to content

Add the missing has_children flag for Ñuble (CL). - #252

Merged
bojanz merged 1 commit into
commerceguys:mainfrom
robinvdvleuten:fix/cl-nb-has-children
Oct 5, 2026
Merged

bojanz merged 1 commit into
commerceguys:mainfrom
robinvdvleuten:fix/cl-nb-has-children

Conversation

@robinvdvleuten

Copy link
Copy Markdown
Contributor

The region has 21 localities in CL-NB.json, but no has_children flag in CL.json. It was the only child file in the dataset without a flagged parent.

Without the flag, SubdivisionRepository::hasData() gave a result that depended on the load order: getAll(['CL', 'NB']) returned the localities when called first, and nothing once CL was loaded. The formatter and the validator always load the country first, so localities in Ñuble were not resolved and not validated.

The region has 21 localities in CL-NB.json, but no has_children flag in
CL.json. It was the only child file in the dataset without a flagged
parent.

Without the flag, SubdivisionRepository::hasData() gave a result that
depended on the load order: getAll(['CL', 'NB']) returned the localities
when called first, and nothing once CL was loaded. The formatter and the
validator always load the country first, so localities in Ñuble were not
resolved and not validated.
@bojanz
bojanz merged commit d9cda0c into commerceguys:main Oct 5, 2026
@bojanz

bojanz commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Good catch, thank you!

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