-
Notifications
You must be signed in to change notification settings - Fork 70
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
Fix dagl and regna bug in policy editor #12247
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #12247 +/- ##
=======================================
Coverage 86.41% 86.42%
=======================================
Files 1198 1198
Lines 18066 18075 +9
Branches 2292 2294 +2
=======================================
+ Hits 15612 15621 +9
Misses 2168 2168
Partials 286 286 ☔ View full report in Codecov by Sentry. |
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.
Great work! 🚀 Just some comments to consider. 😊
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.
I see that these changes may help avoid that we display existing roles in the list of available roles to add.
However, they don't seem to solve the problem described in the linked issue, which is that apps with rolecodes that are in uppercase, have the roles displayed with the rolecode rather than the display text for the role 🤔
@nkylstad, That is true, but I'm unsure if that is the case for any roles at the moment? 🤔 |
The screenshot in the issue is from a real case in production where a user has noted that they used to see the role name, but now they just see the role code. F.ex. rule 2 in https://altinn.studio/editor/skd/rf-1551/overview has this issue. I assume the problem is that some of the roles in that particular policy have uppercase rolecodes (which are allowed), but when we get the role display name we don't handle this. |
Se der ja! Jeg skal få sett på det 😄 |
@nkylstad, da skal problemet være løst og fikset 😄 |
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.
Nice! 🥇
frontend/packages/policy-editor/src/utils/PolicyEditorUtils.test.ts
Outdated
Show resolved
Hide resolved
…st.ts Co-authored-by: Nina Kylstad <nkylstad@gmail.com>
Description
dagl
andregna
was shown as well as the title for them.Related Issue(s)
Verification