-
Notifications
You must be signed in to change notification settings - Fork 72
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
base: main
Are you sure you want to change the base?
feat: add support for access packages in policy editor #13921
Conversation
…cess-packages-in-policy-editor-v1
…cess-packages-in-policy-editor-v1
…cess-packages-in-policy-editor-v1
…cess-packages-in-policy-editor-v1
… of https://github.com/Altinn/altinn-studio into feat/13686-support-access-packages-in-policy-editor-v1
There was a problem hiding this 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 😄
...le/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageAccordion.module.css
Outdated
Show resolved
Hide resolved
...le/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageAccordion.module.css
Outdated
Show resolved
Hide resolved
...Rule/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageAccordion.test.tsx
Outdated
Show resolved
Hide resolved
...Rule/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageAccordion.test.tsx
Outdated
Show resolved
Hide resolved
...olicyRule/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageAccordion.tsx
Outdated
Show resolved
Hide resolved
...r/src/components/PolicyCardRules/PolicyRule/PolicyAccessPackages/policyAccessPackageUtils.ts
Outdated
Show resolved
Hide resolved
...-editor/src/components/PolicyCardRules/PolicyRule/PolicyAccessPackages/AllAccessPackages.tsx
Outdated
Show resolved
Hide resolved
...itor/src/components/PolicyCardRules/PolicyRule/PolicyAccessPackages/ChosenAccessPackages.tsx
Outdated
Show resolved
Hide resolved
...olicyRule/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageAccordion.tsx
Show resolved
Hide resolved
...e/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageAccordionCheckbox.tsx
Outdated
Show resolved
Hide resolved
...e/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageAccordionCheckbox.tsx
Outdated
Show resolved
Hide resolved
...icyRule/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageServiceLogo.tsx
Outdated
Show resolved
Hide resolved
...PolicyRule/PolicyAccessPackages/PolicyAccessPackageAccordion/PolicyAccessPackageServices.tsx
Outdated
Show resolved
Hide resolved
...r/src/components/PolicyCardRules/PolicyRule/PolicyAccessPackages/policyAccessPackageUtils.ts
Show resolved
Hide resolved
There was a problem hiding this 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 😄
...PolicyCardRules/PolicyRule/PolicyAccessPackages/AllAccessPackages/AllAccessPackages.test.tsx
Fixed
Show fixed
Hide fixed
… of https://github.com/Altinn/altinn-studio into feat/13686-support-access-packages-in-policy-editor-v1
...PolicyCardRules/PolicyRule/PolicyAccessPackages/AllAccessPackages/AllAccessPackages.test.tsx
Outdated
Show resolved
Hide resolved
...CardRules/PolicyRule/PolicyAccessPackages/ChosenAccessPackages/ChosenAccessPackages.test.tsx
Outdated
Show resolved
Hide resolved
...Accordion/PolicyAccessPackageAccordionCheckbox/PolicyAccessPackageAccordionCheckbox.test.tsx
Outdated
Show resolved
Hide resolved
...mponents/PolicyCardRules/PolicyRule/PolicyAccessPackages/PolicyAccordion/PolicyAccordion.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
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
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
Documentation