Skip to content

[IOPID-3813] Add regenerate aggregate manage subscriptions keys#1484

Open
adelloste wants to merge 12 commits intomasterfrom
IOPID-3813
Open

[IOPID-3813] Add regenerate aggregate manage subscriptions keys#1484
adelloste wants to merge 12 commits intomasterfrom
IOPID-3813

Conversation

@adelloste
Copy link
Copy Markdown
Member

@adelloste adelloste commented Mar 27, 2026

Resolves IOPID-3813

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 27, 2026

🦋 Changeset detected

Latest commit: 246a949

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
io-services-cms-backoffice Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adelloste adelloste changed the title [IOPID-3813] Add regenerate aggregate manage subscriptions key API [IOPID-3813] Add regenerate aggregate manage subscriptions keys Mar 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Coverage Report for App Backend (./apps/app-backend)

Status Category Percentage Covered / Total
🔵 Lines 81.74% 694 / 849
🔵 Statements 81.74% 694 / 849
🔵 Functions 75% 33 / 44
🔵 Branches 94.11% 128 / 136
File CoverageNo changed files found.
Generated in workflow #4239

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Coverage Report for Backoffice Frontend (./apps/backoffice)

Status Category Percentage Covered / Total
🔵 Lines 20.62% 2366 / 11471
🔵 Statements 20.62% 2366 / 11471
🔵 Functions 29.49% 100 / 339
🔵 Branches 69.8% 245 / 351
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
apps/backoffice/src/pages/aggregated-institutions/index.tsx 91.37% 93.33% 57.14% 91.37% 157, 169-172, 211-212, 308, 311, 328, 331, 349-350, 354, 440-441, 444-446, 449, 452-454, 456-457, 459-462, 465-468, 470
Generated in workflow #4239

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Coverage Report for Backoffice Backend (./apps/backoffice)

Status Category Percentage Covered / Total
🔵 Lines 66.15% 3550 / 5366
🔵 Statements 66.15% 3550 / 5366
🔵 Functions 67.38% 157 / 233
🔵 Branches 83.84% 659 / 786
File CoverageNo changed files found.
Generated in workflow #4239

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Coverage Report for Webapp (./apps/io-services-cms-webapp)

Status Category Percentage Covered / Total
🔵 Lines 86.48% 5805 / 6712
🔵 Statements 86.48% 5805 / 6712
🔵 Functions 89.87% 284 / 316
🔵 Branches 91.66% 957 / 1044
File CoverageNo changed files found.
Generated in workflow #4239

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Coverage Report for External Clients (./packages/external-clients)

Status Category Percentage Covered / Total
🔵 Lines 85.67% 634 / 740
🔵 Statements 85.67% 634 / 740
🔵 Functions 79.16% 38 / 48
🔵 Branches 95.14% 98 / 103
File CoverageNo changed files found.
Generated in workflow #4239

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 27, 2026

Coverage Report for Models (./packages/io-services-cms-models)

Status Category Percentage Covered / Total
🔵 Lines 81.17% 1337 / 1647
🔵 Statements 81.17% 1337 / 1647
🔵 Functions 66.31% 63 / 95
🔵 Branches 97.25% 177 / 182
File CoverageNo changed files found.
Generated in workflow #4239

@dpulls
Copy link
Copy Markdown

dpulls bot commented Mar 30, 2026

🎉 All dependencies have been resolved !

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Backoffice “Aggregated Institutions” flow to support regenerating manage subscription keys at the institution aggregate level, aligning the UI and mocks/tests with the new aggregate-specific API introduced in the dependent PR.

Changes:

  • Switch the Aggregated Institutions page to call regenerateInstitutionAggregateManageSubscriptionsKey using aggregateId (instead of subscription-level regeneration).
  • Update page tests to mock and assert the new client method/parameters.
  • Extend MSW backend handlers + mock data to return stable per-aggregate keys and support key regeneration.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
apps/backoffice/src/pages/aggregated-institutions.tsx Uses new aggregate-level regenerate API and updates local state accordingly
apps/backoffice/src/tests/pages/aggregated-institutions.test.tsx Updates mocks/assertions for the new client method and payload
apps/backoffice/mocks/handlers/backend-handlers.ts Adds MSW handlers for retrieving/regenerating aggregate manage keys
apps/backoffice/mocks/data/backend-data.ts Persists keys per aggregate and regenerates the requested key type
.changeset/nice-adults-march.md Publishes a patch changeset for the Backoffice package

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adelloste adelloste marked this pull request as ready for review March 30, 2026 09:18
@adelloste adelloste requested review from a team as code owners March 30, 2026 09:18
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 3, 2026

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants