Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cas2v2 user entity #2793

Open
wants to merge 40 commits into
base: cas2v2/dev
Choose a base branch
from
Open

Cas2v2 user entity #2793

wants to merge 40 commits into from

Conversation

rossjones-moj
Copy link

@rossjones-moj rossjones-moj commented Jan 13, 2025

Adds a new entity for Cas2v2 users where all user types are represented in a single entity (Cas2v2UserEntity) and differentiated by the userType field which is a Cas2v2UserType containing the different allowed user types for Cas2v2.

As a result of the change, all of the Cas2v2 classes that contain users have been changed to use the new type instead of NomisUserEntity/UserEntity/ExternalUserEntity. This removes a dependence on the Cas2 entities but should still allow a future migration to use the entities in this namespace.

This PR also introduces a CAS2V2 ServiceName which is used to ensure that a Cas2v2Application is used instead of Application or Cas2Application when calling APIs.

DomainEvents remain as cas2 domain events with no change

Base automatically changed from cas2v2/cba-83_create-a-new-cas2v2-namespace to cas2v2/dev January 14, 2025 13:40
@rossjones-moj rossjones-moj force-pushed the cas2v2/users branch 6 times, most recently from c95c494 to d680870 Compare January 17, 2025 16:21
@rossjones-moj rossjones-moj changed the title WIP Cas2v2 user entity Cas2v2 user entity Jan 22, 2025
@rossjones-moj rossjones-moj marked this pull request as ready for review January 22, 2025 14:44
@rossjones-moj rossjones-moj force-pushed the cas2v2/users branch 3 times, most recently from 12374c7 to 7c40cb3 Compare January 22, 2025 16:25
@rossjones-moj rossjones-moj requested review from davidatkinsuk and removed request for garethCAS2 and tobybatchmoj January 22, 2025 17:51
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.

1 participant