Skip to content

feat: add cedarPolicy to group and connection data structures and update related tests#1671

Merged
Artuomka merged 2 commits intomainfrom
backend_group_ceadr_permissions_responce
Mar 17, 2026
Merged

feat: add cedarPolicy to group and connection data structures and update related tests#1671
Artuomka merged 2 commits intomainfrom
backend_group_ceadr_permissions_responce

Conversation

@Artuomka
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 17, 2026 10:58
@Artuomka Artuomka enabled auto-merge March 17, 2026 10:58
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

Adds cedarPolicy to group-shaped response payloads so clients can access the stored Cedar authorization policy alongside existing group metadata, and updates end-to-end tests to assert the field is present.

Changes:

  • Extend group response data structures/DTOs to include cedarPolicy: string | null.
  • Populate cedarPolicy in group mappers/builders (groups list, groups-in-connection, company full info, update-group-title response).
  • Update SaaS and non-SaaS E2E tests to assert cedarPolicy exists and adjust key-count assertions.

Reviewed changes

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

Show a summary per file
File Description
backend/test/ava-tests/saas-tests/group-e2e.test.ts Assert cedarPolicy is present in groups listing responses.
backend/test/ava-tests/saas-tests/connection-e2e.test.ts Assert cedarPolicy is present in groups-in-connection responses after deletion.
backend/test/ava-tests/saas-tests/company-info-e2e.test.ts Update group object key count and assert cedarPolicy exists in company full info response.
backend/test/ava-tests/non-saas-tests/non-saas-group-e2e.test.ts Mirror SaaS group E2E assertions for cedarPolicy.
backend/test/ava-tests/non-saas-tests/non-saas-connection-e2e.test.ts Mirror SaaS connection E2E assertions for cedarPolicy.
backend/test/ava-tests/non-saas-tests/non-saas-company-info-e2e.test.ts Mirror SaaS company-info E2E assertions for cedarPolicy and key counts.
backend/src/entities/group/use-cases/update-group-title.use.case.ts Include cedarPolicy in update-group-title response shape.
backend/src/entities/group/use-cases/find-all-user-groups.use.case.ts Include cedarPolicy when mapping user groups.
backend/src/entities/group/application/data-sctructures/found-user-groups.ds.ts Add `cedarPolicy: string
backend/src/entities/connection/utils/build-found-user-group-in-connection-dto.util.ts Populate cedarPolicy in the groups-in-connection response builder.
backend/src/entities/connection/application/dto/found-user-groups-in-connection.dto.ts Add `cedarPolicy: string
backend/src/entities/company-info/utils/build-found-company-info-ds.ts Include cedarPolicy in groups returned by company full info builder.

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

@ApiProperty()
isMain: boolean;

@ApiProperty()
@ApiProperty()
isMain: boolean;

@ApiProperty()
@Artuomka Artuomka merged commit 37157c2 into main Mar 17, 2026
17 of 19 checks passed
@Artuomka Artuomka deleted the backend_group_ceadr_permissions_responce branch March 17, 2026 11:16
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