Skip to content

fix(communities-contacts): handle title change in data.gouv.fr dataset#482

Merged
jb-delafosse merged 1 commit intomainfrom
fix/communities-contacts-title-filter
Dec 17, 2025
Merged

fix(communities-contacts): handle title change in data.gouv.fr dataset#482
jb-delafosse merged 1 commit intomainfrom
fix/communities-contacts-title-filter

Conversation

@jb-delafosse
Copy link
Collaborator

@jb-delafosse jb-delafosse commented Dec 17, 2025

Summary

  • Fix CommunitiesContact workflow failing with "list index out of range" error
  • The data.gouv.fr dataset title changed from "Base de données locales de Service-public" to "Base de données locales de Service-public.gouv.fr"
  • Use startswith() for title matching instead of exact match
  • Add format == "json" filter to ensure we select the correct resource (the dataset has multiple resources: PDFs, xlsx, and JSON)

Test plan

  • Verified the filter returns exactly 1 match with the new criteria
  • Run pipeline with production config to confirm the workflow completes

The dataset title changed from "Base de données locales de Service-public"
to "Base de données locales de Service-public.gouv.fr".

Use startswith() for title matching and add format filter to ensure
we select the JSON resource specifically.

no_jira
@jb-delafosse jb-delafosse merged commit 192e045 into main Dec 17, 2025
2 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.

1 participant