Commit 6a32abcb by Qubad786

Course can be fetched/created without a course_hex

This rewrites File Discovery phase related to studio, add its tests along with the additional feature:
Course retrieval/creation can be done via course_id alone, and course_hex/token is not a requirement anymore.
parent b89c731c
......@@ -398,6 +398,22 @@ class Course(TimeStampedModel):
return org
@property
def course_runs(self):
"""
Returns the studio course runs associated with this course. Ideally, there should be one entry
in this Model for all the course runs in Studio.
"""
course_runs = []
if self.local_storedir:
course_runs = [
course_id.strip()
for course_id in self.local_storedir.split(',')
if course_id
]
return course_runs
def __unicode__(self):
return u'{institution} {edx_class_id} {course_name}'.format(
institution=self.institution,
......
......@@ -79,7 +79,7 @@ class DaemonCli:
node_work_directory=node_work_directory
)
FD.studio_s3_ingest()
FD.discover_studio_ingested_videos()
FD.about_video_ingest()
reset_queries()
x += 1
......
---
# This configuration should only have static settings.
# s3 bucket static prefixes
edx_s3_processed_prefix: prod-edx/processed/
edx_s3_rejected_prefix: prod-edx/rejected/
# Celery Info
onsite_worker: False
celery_threads: 1
......
---
veda_s3_hotstore_bucket: s3_hotstore_bucket
veda_deliverable_bucket: s3_deliverable_bucket
edx_s3_ingest_prefix: ingest/
edx_s3_ingest_bucket: s3_ingest_bucket
edx_s3_endpoint_bucket: s3_deliverable_bucket
multi_upload_barrier: 2000000000
veda_base_url: https://veda.edx.org
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment