Skip to content

feat: add geopf sync - #1178

Open
abulte wants to merge 24 commits into
mainfrom
feat/geopf
Open

feat: add geopf sync#1178
abulte wants to merge 24 commits into
mainfrom
feat/geopf

Conversation

@abulte

@abulte abulte commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Depends opendatateam/udata#3827

Provides the admin UI for cartes.gouv.fr sync. Dataset admin tab only shows up when the feature is enabled (NUXT_PUBLIC_GEOPF_ENABLED) and a compatible resource is uploaded (currently gpkg only).

e2e testing is minimal because it would be hard to test the full chain (ie mocking geopf through udata).

Capture d’écran 2026-08-20 à 11 18 07

abulte added 24 commits July 29, 2026 12:17
NuxtPage's page-key was bound to an inline arrow function
(`route => route.fullPath`) in two admin layouts. Vue recreates that
function on every render of the owning component, and NuxtPage
compares page-key by reference (not by the value it computes) to
decide whether to fire the page-loading indicator. A fresh reference
for the same route is treated as "the page changed", firing
page:loading:start with no matching navigation to ever complete it,
so the top loading bar gets stuck.

This went unnoticed because nothing previously triggered it: it only
fires when the owning component re-renders while mounted, e.g. when
pages/admin/datasets/[id].vue's own `dataset` (fetched via the same
useAPI call/URL/options as a nested tab's own dataset fetch, and
therefore sharing the same Nuxt useFetch cache key) gets refreshed by
that nested tab.

Fix: bind page-key to a stable, hoisted function instead of an inline
one in pages/admin.vue and pages/admin/datasets/[id].vue.
Comment thread .github/workflows/ci.yml
Comment on lines +151 to +153
# FIXME: geopf lives on this branch, not yet merged to main. Point back
# to `main` once the udata geopf PR (feat/geopf/init) merges.
ref: feat/geopf/init

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

FIXME

@abulte
abulte marked this pull request as ready for review August 20, 2026 13:59
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