-
Notifications
You must be signed in to change notification settings - Fork 269
Open
Labels
P0 - criticalPriority: Release blocker or regressionPriority: Release blocker or regression
Description
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Until now, AuditedSpecialPermissionsLicenses are already set up and working as a double check for editors before creating Community Library Submissions. Now, we need to set the distributable field of these licenses to true when a CommunityLibrarySubmission is approved or when public Channels are published.
Technical details
- On the
AuditedSpecialPermissionsLicensemodel, add a new@classmethodmethodmark_channel_version_as_distributable, this method will receive achannel_version_id, and will setdistributable=Trueto allAuditedSpecialPermissionsLicensewhosechannel_versionsinclude thatchannel_version_id. - Call
AuditedSpecialPermissionsLicense.mark_channel_version_as_distributablein theadd_to_community_librarymethod afterexport_channel_to_kolibri_public.- For this, query the
ChannelVersionobject using thechannel_idandchannel_versionproperties.
- For this, query the
- Call
AuditedSpecialPermissionsLicense.mark_channel_version_as_distributablein the publish workflow if the channel being published ispublic, after this line.- For this, we can use the
channel.version_infoto get the currentChannelVersionobject.
- For this, we can use the
- Unit tests should be added for both workflows.
Acceptance criteria
AuditedSpecialPermissionsLicenserecords are marked as distributable after approving a Community Library Submission, and after a public channel is published.- Unit tests have been added.
Metadata
Metadata
Assignees
Labels
P0 - criticalPriority: Release blocker or regressionPriority: Release blocker or regression
