Skip to content

[EPIC E4] Implement indexed-pull BGZ retrieval flow #544

Description

@JorisHeadease

Implement the complete indexed-pull BGZ retrieval chain and the result screens that make each Generic Function visible.

Work items

  • Replace the stale /nvi/DocumentReference client path with the NVI List API.
  • Query the NVI and render its localization output separately from GF Addressing output.
  • Resolve the source endpoint through mCSD.
  • Request the service access token through the Nuts node internal API.
  • Retrieve the authorized resource-level BGZ data through the source PEP.
  • Require explicit user confirmation before retrieval.
  • Render the real top-level authorization result, the demo sub-check breakdown and disclaimer.
  • Render the enriched record with explicit per-item source attribution and marker highlighting.
  • Add a derived full-chain e2e test covering the combined flow.

Acceptance criteria

  • One confirmation runs localization, addressing, authentication, authorization and retrieval end to end.
  • NVI and GF Addressing results are visually distinct.
  • No data is retrieved before explicit confirmation.
  • Every retrieved element identifies De Zonnebloem as its source.
  • Deny and failure paths expose no source data.
  • The full-chain e2e test covers the happy path and an authorization denial.

Decisions required at kickoff

  • Pin down the resource-level BGZ query set and aggregation behavior.
  • Choose the source of the demo authorization sub-check breakdown while retaining the real top-level decision.

Frontend constraint

Use vendored Datastar as the initial frontend implementation. Keep backend routes, the step-event JSON schema, CSS/design tokens and the framework-free journey-map driver independent of Datastar. If the documented fallback triggers occur, the AI-assisted migration replaces Datastar with buildless Preact + htm in one cutover.

Depends on #540, #541, #542 and #543.

Refs #532
Refs #538

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions