Skip to content

Conversation

@taoerman
Copy link
Member

@taoerman taoerman commented Jan 5, 2026

Summary

Refactored special permissions loading to use channelVersionId instead of permissionIds.

References

Fixed #5617

Reviewer guidance

test manually

@AlexVelezLl AlexVelezLl self-requested a review January 6, 2026 13:16
@AlexVelezLl AlexVelezLl self-assigned this Jan 6, 2026
Copy link
Member

@AlexVelezLl AlexVelezLl left a 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!

Comment on lines +54 to +59
permissions.value = response.map(permission => ({
id: permission.id,
description: permission.description,
distributable: permission.distributable,
}));
}
Copy link
Member

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?

Comment on lines +434 to +437
if (versionDetail.value?.id) {
return versionDetail.value.id;
}
return null;
Copy link
Member

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';
Copy link
Member

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? 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESoCC: Use channelVersion objects instead of special permission ids

2 participants