Skip to content

Add migration command for channel versioned content databases#5692

Merged
AlexVelezLl merged 2 commits intolearningequality:unstablefrom
ozer550:migration-command-for-channel-versioned-content
Feb 12, 2026
Merged

Add migration command for channel versioned content databases#5692
AlexVelezLl merged 2 commits intolearningequality:unstablefrom
ozer550:migration-command-for-channel-versioned-content

Conversation

@ozer550
Copy link
Member

@ozer550 ozer550 commented Feb 6, 2026

Summary

  • Management command that ensures all published channels have a versioned content database.
  • Removal of the ensure_versioned_database_exists_task Celery task and its usage when creating a community library submission.
  • Removed the task mock and the two tests that asserted that task’s behavior.

References

closes #5592

Reviewer guidance

  • Run pytest.

Copy link
Member

@AlexVelezLl AlexVelezLl left a comment

help = "Ensure all published channels have versioned content databases."

def handle(self, *args, **options):
published_channels = Channel.objects.filter(main_tree_published=True)
Copy link
Member

Choose a reason for hiding this comment

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

Just noting that here it should be main_tree__published

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 look good, and manual QA checks out. Thanks @ozer550! 👐

@AlexVelezLl AlexVelezLl merged commit b8e5720 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: Migration command to ensure channel versioned content databases exist

2 participants