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

Add ProviderOnlyFlag to TechnicalUserProfiles #1254

Closed
6 tasks done
Phil91 opened this issue Jan 29, 2025 · 0 comments · Fixed by #1256
Closed
6 tasks done

Add ProviderOnlyFlag to TechnicalUserProfiles #1254

Phil91 opened this issue Jan 29, 2025 · 0 comments · Fixed by #1256
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Phil91
Copy link
Member

Phil91 commented Jan 29, 2025

Description

adjust the endpoints GET: /api/apps/{appId}/appreleaseprocess/technical-user-profile& GET: /api/services/servicerelease/{serviceId}/technical-user-profiles to return a flag if the technical user profile is only visible for the offer provider.

Acceptance Criteria

  • Add flag AccessiblyByProviderOnly to UserRoleInformation
  • Add logic to set the flag to true if the assigned roles of the technical user profile contains a role configured in the UserRolesAccessibleByProviderOnly
  • adjust validation of technical user profile creation to check whether a mix of roles is present
    • if roles are present that are set in UserRolesAccessibleByProviderOnly and some which aren't configured in UserRolesAccessibleByProviderOnly an error should be thrown that only Provider Owned or other roles can be set
  • adjust TechnicalUserCreation and check if a TechnicalUserProfile contains roles that are set in UserRolesAccessibleByProviderOnly & some that aren't in the configuration, if that's the case two technical users should be created
  • add unit tests
@Phil91 Phil91 added the enhancement New feature or request label Jan 29, 2025
@github-project-automation github-project-automation bot moved this to NEW USER REQUEST in Portal Jan 29, 2025
@Phil91 Phil91 moved this from NEW USER REQUEST to BACKLOG in Portal Jan 29, 2025
@Phil91 Phil91 added this to the Release 25.03 milestone Jan 29, 2025
@Phil91 Phil91 self-assigned this Jan 31, 2025
@Phil91 Phil91 moved this from BACKLOG to IN PROGRESS in Portal Jan 31, 2025
Phil91 added a commit that referenced this issue Feb 3, 2025
Phil91 added a commit that referenced this issue Feb 3, 2025
Phil91 added a commit to eclipse-tractusx/portal that referenced this issue Feb 5, 2025
Phil91 added a commit that referenced this issue Feb 5, 2025
Phil91 added a commit to eclipse-tractusx/portal that referenced this issue Feb 5, 2025
Phil91 added a commit to eclipse-tractusx/portal that referenced this issue Feb 5, 2025
Phil91 added a commit to eclipse-tractusx/portal that referenced this issue Feb 5, 2025
Phil91 added a commit to eclipse-tractusx/portal that referenced this issue Feb 5, 2025
ntruchsess pushed a commit that referenced this issue Feb 5, 2025
evegufy pushed a commit to eclipse-tractusx/portal that referenced this issue Feb 6, 2025
ntruchsess pushed a commit that referenced this issue Feb 6, 2025
ntruchsess pushed a commit that referenced this issue Feb 6, 2025
…ProviderOnly flag (#1256)

* feat(technicalUser): enhance technical user profile with AccessiblyByProviderOnly flag
* add Extension for efficient inclusion of rolesettings into queries
* refactor GetTechnicalUserProfileInformation to do the role-evaluation on db-side
* adjust db-unit-tests
Refs: #1254
---------
Co-authored-by: Norbert Truchsess <[email protected]>
@github-project-automation github-project-automation bot moved this from IN PROGRESS to USER READY in Portal Feb 6, 2025
Phil91 added a commit to eclipse-tractusx/portal that referenced this issue Feb 6, 2025
Phil91 added a commit to eclipse-tractusx/portal that referenced this issue Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: USER READY
1 participant