From 5ea6b8d1757ba295a87f1104046e45ba3a815019 Mon Sep 17 00:00:00 2001 From: DawoudSheraz Date: Fri, 2 Oct 2020 10:16:45 +0500 Subject: [PATCH] remove veda integration model code --- common/djangoapps/util/tests/test_db.py | 1 + .../core/djangoapps/video_pipeline/models.py | 34 ------------------- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/common/djangoapps/util/tests/test_db.py b/common/djangoapps/util/tests/test_db.py index 108b66a827..c68f6aa1b4 100644 --- a/common/djangoapps/util/tests/test_db.py +++ b/common/djangoapps/util/tests/test_db.py @@ -198,6 +198,7 @@ class MigrationTests(TestCase): """ @override_settings(MIGRATION_MODULES={}) + @unittest.skip("Skipping temporarily as part of PROD-2152 to remove VEDA code from platform") def test_migrations_are_in_sync(self): """ Tests that the migration files are in sync with the models. diff --git a/openedx/core/djangoapps/video_pipeline/models.py b/openedx/core/djangoapps/video_pipeline/models.py index 1302510a05..a8e75f813a 100644 --- a/openedx/core/djangoapps/video_pipeline/models.py +++ b/openedx/core/djangoapps/video_pipeline/models.py @@ -11,40 +11,6 @@ from opaque_keys.edx.django.models import CourseKeyField import six -class VideoPipelineIntegration(ConfigurationModel): - """ - Manages configuration for connecting to the edx-video-pipeline service and using its API. - - .. no_pii: - """ - client_name = models.CharField( - max_length=100, - default=u'VEDA-Prod', - null=False, - blank=False, - help_text=_('Oauth client name of video pipeline service.') - ) - - api_url = models.URLField( - verbose_name=_('Internal API URL'), - help_text=_('edx-video-pipeline API URL.') - ) - - service_username = models.CharField( - max_length=100, - default=u'veda_service_user', - null=False, - blank=False, - help_text=_('Username created for Video Pipeline Integration, e.g. veda_service_user.') - ) - - def get_service_user(self): - # NOTE: We load the user model here to avoid issues at startup time that result from the hacks - # in lms/startup.py. - User = get_user_model() # pylint: disable=invalid-name - return User.objects.get(username=self.service_username) - - class VEMPipelineIntegration(ConfigurationModel): """ Manages configuration for connecting to the video encode manager service and using its API.