Skip to content

feat(cohort): list organisations from OBP-API v7.0.0 customers filtered by attribute - #12

Merged
simonredfern merged 11 commits into
OpenBankProject:mainfrom
hongwei1:feat/cohort-v700-customer-attributes
Nov 10, 2026
Merged

simonredfern merged 11 commits into
OpenBankProject:mainfrom
hongwei1:feat/cohort-v700-customer-attributes

Conversation

@hongwei1

@hongwei1 hongwei1 commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Cohort lists its organisations with GET /obp/v7.0.0/banks/BANK_ID/customers?organisation_kind=bank_fi,university,regulator,partner, which returns each Customer with its attributes, and reads limit=200 pages until a page comes back empty, because a page can be shorter than the limit before the end. Cohort shows the Customers OBP-API returns as they are, without filtering them a second time. The organisations page and scripts/seed-demo-data.mjs both use this, so Cohort no longer calls /obp/v4.0.0, and obpApiVersion.test.ts now allows no call below v5.1.0 anywhere in the app stack. It needs an OBP-API with the v7.0.0 customer attribute filter (OpenBankProject/OBP-API#2966). It was checked on a local Kubernetes cluster: the organisations page lists the seeded organisations and leaves out a startup Customer and a Customer without a kind, and running the seed script again finds every organisation it created.

@simonredfern
simonredfern merged commit a6a1085 into OpenBankProject:main Nov 10, 2026
1 check 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.

2 participants