Skip to content

[SELC-7462] feat: add parentInstitutionId in user-group APIs#298

Merged
giulia-tremolada merged 6 commits intomainfrom
feature/SELC-7462
Sep 29, 2025
Merged

[SELC-7462] feat: add parentInstitutionId in user-group APIs#298
giulia-tremolada merged 6 commits intomainfrom
feature/SELC-7462

Conversation

@giulia-tremolada
Copy link
Collaborator

@giulia-tremolada giulia-tremolada commented Sep 25, 2025

List of Changes

  • add parentInstitutionId field in:
    • get user group by id API
    • get user groups API
    • create user group API
  • modify checkGroupUniqueness logic to block creating groups with same institutionId-parentInstitutionId-productId
  • add parentInstitutionId as mongodb index
  • add cucumber tests

Motivation and Context

This PR aligns the handling of the parentInstitutionId field, ensuring it is properly persisted both during the creation of a new group and when retrieving existing groups.

How Has This Been Tested?

It was tested locally

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@sonarqubecloud
Copy link

@giulia-tremolada giulia-tremolada merged commit 0fdeeef into main Sep 29, 2025
10 checks passed
@giulia-tremolada giulia-tremolada deleted the feature/SELC-7462 branch September 29, 2025 07:36
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.

2 participants