-
Notifications
You must be signed in to change notification settings - Fork 264
Use channelVersion objects instead of special permission ids #5622
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
base: unstable
Are you sure you want to change the base?
Use channelVersion objects instead of special permission ids #5622
Conversation
AlexVelezLl
left a comment
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.
Thanks @taoerman! This is looking great! The only major concern is about the changes to the shared styles file!
Additionally, could you please address this comment within the scope of this PR? Thanks!
| permissions.value = response.map(permission => ({ | ||
| id: permission.id, | ||
| description: permission.description, | ||
| distributable: permission.distributable, | ||
| })); | ||
| } |
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 think we can just do permissions.value = response, right?
| if (versionDetail.value?.id) { | ||
| return versionDetail.value.id; | ||
| } | ||
| return null; |
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.
Here we can just do return versionDetail.value?.id; and it would have the same effect.
| @@ -1,5 +1,5 @@ | |||
| @import '~material-icons/iconfont/material-icons.css'; | |||
| @import '~kolibri-design-system/lib/styles/common'; | |||
| @import '~kolibri-design-system/lib/styles/definitions'; | |||
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.
Seems like we have an unintended change here? 👀
Summary
Refactored special permissions loading to use channelVersionId instead of permissionIds.
References
Fixed #5617
Reviewer guidance
test manually