Skip to content

feat(pdok): route PDOK lookups through openconnector (closes #404)#497

Merged
rubenvdlinde merged 1 commit into
developmentfrom
feature/migrate-pdok-to-openconnector
May 19, 2026
Merged

feat(pdok): route PDOK lookups through openconnector (closes #404)#497
rubenvdlinde merged 1 commit into
developmentfrom
feature/migrate-pdok-to-openconnector

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

(re-opened of #410 — accidentally closed by harness force-push; same branch, same content)

Implements migrate-pdok-to-openconnector — the procest subset of shared-pdok-via-openconnector.

What

  • src/services/pdokService.js rewritten as a thin shim: all PDOK access now flows through /index.php/apps/openconnector/api/pdok/* instead of direct browser calls to api.pdok.nl.
  • All six exported function signatures preserved — src/store/modules/gis.js and src/components/map/AddressSearch.vue unchanged.
  • Degraded handling: 503 → null + message_key for display; 404 (openconnector absent) → empty result + non-blocking warning; form submission unaffected.

Dependencies

Depends on openconnector#752 (PDOK adapter PR). Functional E2E testing (PR-3) and fixture bootstrap (PR-4) deferred until openconnector is installed.

Test plan

  • Quality gate (ESLint/stylelint) green
  • Manual smoke once openconnector PDOK adapter is installed
  • Existing procest tests pass (no test file references api.pdok.nl)

Closes #404.

@github-actions
Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ 8a0d125

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 420/420
PHPUnit
Newman ⏭️
Playwright

Quality workflow — 2026-05-19 03:35 UTC

Download the full PDF report from the workflow artifacts.

Implements openspec change migrate-pdok-to-openconnector — the procest subset
of the Hydra umbrella shared-pdok-via-openconnector. Replaces direct calls
to api.pdok.nl with calls through /index.php/apps/openconnector/api/pdok/*.

- src/services/pdokService.js — rewrites as a thin shim. All six exported
  functions (suggest, lookup, free, reverse, extractCoordinates, formatAddress)
  keep their original signatures so existing callers
  (src/store/modules/gis.js, src/components/map/AddressSearch.vue) do not change.
- Degraded paths handled gracefully:
    503 (PDOK unavailable / circuit open) → resolves with null, surfaces
        message_key via module-level `lastWarning`.
    404 (openconnector not installed)      → resolves with empty result and
        a non-blocking warning; form submission unaffected.
- extractCoordinates accepts both the canonical normalized PostalAddress
  shape (location.coordinates = [lng, lat]) and raw PDOK WKT.

Per ADR-022 procest no longer talks to api.pdok.nl directly. All PDOK access
flows through openconnector's PdokConnector + write-through to OR's addresses
register.

PR-3 (E2E verification) and PR-4 (test fixtures bootstrap) require the live
dev environment and are deferred until openconnector ConductionNL/openconnector#752
is installed. Tasks PR-1.1, PR-1.2, PR-1.3, PR-2.1 marked done.

Implements #404
@rubenvdlinde rubenvdlinde force-pushed the feature/migrate-pdok-to-openconnector branch from b5bd22e to 97590a4 Compare May 19, 2026 03:46
@github-actions
Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ f7c72da

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 420/420
PHPUnit
Newman ⏭️
Playwright

Quality workflow — 2026-05-19 03:52 UTC

Download the full PDF report from the workflow artifacts.

@github-actions
Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ 96fa836

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 420/420
PHPUnit
Newman ⏭️
Playwright ⏭️

Coverage: 0% (0/81 statements)


Quality workflow — 2026-05-19 04:10 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde rubenvdlinde merged commit 22bd9cf into development May 19, 2026
48 checks passed
@rubenvdlinde rubenvdlinde deleted the feature/migrate-pdok-to-openconnector branch May 19, 2026 05:02
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