Upgrade Consent Portal to Support Consent Management API v0.3.0 - #65
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e733dbf to
c21a8a5
Compare
…ortal backend Instead, now it rely on details=true flag of consent endpoints
c21a8a5 to
8c08f26
Compare
There was a problem hiding this comment.
is the term phase 2 has set of features separately? else shall we have meaning full name?
There was a problem hiding this comment.
@rashmithachamikara note this to fix on next PR you are sending refactoring the BFF code
Purpose
Migrate the portal to Consent Management API v0.3.0. The previous portal contract depended on legacy client identifiers, fields, headers, update payloads, routes, and BFF-side metadata enrichment that are no longer required by the new API.
feature/portalis modified as part of this feature.Goals
Approach
Backend
PlaceholderClientID→PlaceholderGroupIDBFF_PROXY__PLACEHOLDER_CLIENT_ID→BFF_PROXY__PLACEHOLDER_GROUP_IDTPP-client-id→group-idgroupId,expirationTime,approved,mandatory, and versioned purpose/element identifiers.DELETEtoPOST.Frontend
POST.Screenshot/GIF:
User stories
Release note
Updated the portal to support Consent Management API v0.3.0 and improved consent registry pagination performance.
Documentation
Updated:
portal/backend/openapi/bff.yamlportal/backend/README.mdportal/backend/.env.exampleportal/frontend/README.mdAutomation tests
Unit tests
Integration tests
POSTrevocation.go test ./...passed.pnpm lint,pnpm test,pnpm build, andpnpm format:checkpassed.Security checks
Migrations (if applicable)
This is a full migration with no backward-compatibility layer.
BFF_PROXY__PLACEHOLDER_CLIENT_IDwithBFF_PROXY__PLACEHOLDER_GROUP_ID.group-idinstead ofTPP-client-id.The portal must not be deployed independently of the corresponding Consent API v0.3.0 deployment.
Test environment
Learning
The migration follows the v0.3 API contract as the authoritative source. With detailed consent responses now containing purpose and element metadata, the BFF can avoid sequential enrichment requests and return consent details with a single upstream call. TanStack Query prefetching is used to reduce perceived delay during registry pagination.