Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change boto to boto3 for import-export related code. #31771

Closed
7 tasks
Tracked by #31175
awais786 opened this issue Feb 16, 2023 · 2 comments
Closed
7 tasks
Tracked by #31175

Change boto to boto3 for import-export related code. #31771

awais786 opened this issue Feb 16, 2023 · 2 comments
Assignees

Comments

@awais786
Copy link
Contributor

awais786 commented Feb 16, 2023

Part1:
Instead of changing all backends in single, change this in small prs.

  • 1. USER_TASKS_ARTIFACT_STORAGE
  • 2. COURSE_IMPORT_EXPORT_STORAGE
  • 3. COURSE_METADATA_EXPORT_STORAGE

Update secures in

  • sandbox
  • stage
  • prod
  • edge
@awais786
Copy link
Contributor Author

Sandbox PR for this change

@awais786
Copy link
Contributor Author

awais786 commented Feb 16, 2023

in edx-app thats how storages are setting up.

if COURSE_IMPORT_EXPORT_BUCKET:
    COURSE_IMPORT_EXPORT_STORAGE = 'cms.djangoapps.contentstore.storage.ImportExportS3Storage'
else:
    COURSE_IMPORT_EXPORT_STORAGE = DEFAULT_FILE_STORAGE

USER_TASKS_ARTIFACT_STORAGE = COURSE_IMPORT_EXPORT_STORAGE

COURSE_METADATA_EXPORT_BUCKET = ENV_TOKENS.get('COURSE_METADATA_EXPORT_BUCKET', '')

if COURSE_METADATA_EXPORT_BUCKET:
    COURSE_METADATA_EXPORT_STORAGE = 'cms.djangoapps.export_course_metadata.storage.CourseMetadataExportS3Storage'
else:
    COURSE_METADATA_EXPORT_STORAGE = DEFAULT_FILE_STORAGE

Buckets already sets for stage and prod https://github.com/edx/edx-internal/search?q=COURSE_IMPORT_EXPORT_BUCKET

PR for edx-app

@awais786 awais786 self-assigned this Feb 16, 2023
@awais786 awais786 changed the title Part1: PR1: Change backend for import-export related code. Feb 16, 2023
@awais786 awais786 changed the title PR1: Change backend for import-export related code. Change backend for import-export related code. Feb 16, 2023
@awais786 awais786 changed the title Change backend for import-export related code. Change boto to boto3 for import-export related code. Feb 16, 2023
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

No branches or pull requests

2 participants