Skip to content

Set distributable Special Permissions Licenses#5681

Merged
AlexVelezLl merged 3 commits intolearningequality:unstablefrom
taoerman:issue-5627-Set-distributable-Special-Permissions-Licenses
Feb 12, 2026
Merged

Set distributable Special Permissions Licenses#5681
AlexVelezLl merged 3 commits intolearningequality:unstablefrom
taoerman:issue-5627-Set-distributable-Special-Permissions-Licenses

Conversation

@taoerman
Copy link
Member

@taoerman taoerman commented Feb 1, 2026

Summary

Added AuditedSpecialPermissionsLicense.mark_channel_version_as_distributable and wired it into Community Library approval and public publish flows.

Ensured audited special-permissions licenses are marked distributable for approved submissions and public channel publishes.

Added tests covering both workflows.

References

Fixed #5627

Reviewer guidance

Run unit tests

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! Just one little deviation from the issue description!

Comment on lines 575 to 578
if channel.public and channel.version_info:
models.AuditedSpecialPermissionsLicense.mark_channel_version_as_distributable(
channel.version_info.id
)
Copy link
Member

Choose a reason for hiding this comment

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

Could we move this logic to the publish module instead? Thanks! Since we are handling all this logic inside the publish module, it'll be better to keep this there too

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, Alex! I have moved this logic from channel to publish.

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.

Code changes make sense, and manual QA checks out. Thanks a lot @taoerman!!

@AlexVelezLl AlexVelezLl merged commit 7140688 into learningequality:unstable Feb 12, 2026
13 checks passed
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: Set distributable Special Permissions Licenses

2 participants