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

feat: add support for access packages in policy editor #13921

Open
wants to merge 107 commits into
base: main
Choose a base branch
from

Conversation

mgunnerud
Copy link
Contributor

@mgunnerud mgunnerud commented Oct 25, 2024

Description

Access packages will replace Altinn roles in policy in the future. It should be possible to use both Altinn roles and access packages as policy subject

  • Add service to load access packages
  • Add new components for displaying access packages
  • Load and display access packages in policy editor (feature toggled in frontend)
  • Save access packages urn in subject field
  • Show services (resources and apps) connected to each access package

No changes in validation yet; users must still choose at least one role per rule

In resourceadm

screen-capture.webm

In app development

app_development.webm

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

@mgunnerud mgunnerud requested a review from wrt95 December 18, 2024 08:47
Copy link
Contributor

@wrt95 wrt95 left a comment

Choose a reason for hiding this comment

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

Some more comments added 😄

@mgunnerud mgunnerud requested a review from wrt95 December 18, 2024 12:23
Copy link
Contributor

@wrt95 wrt95 left a comment

Choose a reason for hiding this comment

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

A lot of great changes in code now 😄
We should try to add tests files for all component files and utils file so that we are sure all functionality is tested.
I understand that the code is tested through some other components, but if we need to refactor something in the future, the components cannot be dependent on other components's tests 😄

Copy link
Contributor

@wrt95 wrt95 left a comment

Choose a reason for hiding this comment

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

🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/authorization Area: Issues related to roles and rights on apps, such as who can instantiate, sign etc. backend frontend quality/testing Tests that are missing, needs to be created or could be improved. solution/studio/designer Issues related to the Altinn Studio Designer solution.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support access packages in policy editor (v1)
3 participants