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

feat!: upgrading django-storages to 1.10.1 #32571

Merged
merged 11 commits into from
Aug 28, 2023
Merged

Conversation

awais786
Copy link
Contributor

@awais786 awais786 commented Jun 26, 2023

This version has several breaking changes few of them are

For complete change log please review this.
https://github.com/jschneier/django-storages/blob/master/CHANGELOG.rst#1101-2020-09-13

  • I have already merged bucket to bucket_name changes in in all places. ( platform and config )
  • For acl and others key changes SRE needs to review the config files.

NOTE:

  • Owning team can review and test.

@awais786 awais786 force-pushed the django-storages-upgrade branch from 6bf30af to 275c37d Compare June 26, 2023 12:51
@awais786 awais786 closed this Jun 27, 2023
@awais786 awais786 reopened this Jun 27, 2023
@awais786
Copy link
Contributor Author

awais786 commented Aug 9, 2023

https://github.com/jschneier/django-storages/pull/520/files
leading slash is not working any more. devstack has few urls which need fix

@awais786 awais786 force-pushed the django-storages-upgrade branch from ac4330e to 3845490 Compare August 18, 2023 18:31
),
DIRECTORY_PREFIX='video-images/',
BASE_URL=MEDIA_URL,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These values override for sandbox and stage/prod and there base_url does not exists. Its for devstack.

@awais786 awais786 closed this Aug 24, 2023
@awais786 awais786 reopened this Aug 24, 2023
@@ -389,7 +389,7 @@ def test_video_backend(self):
@override_settings(VIDEO_IMAGE_SETTINGS={
'STORAGE_CLASS': 'storages.backends.s3boto3.S3Boto3Storage',
'STORAGE_KWARGS':
{'bucket_name': 'test', 'default_acl': None, 'base_url': '/', 'location': 'abc/def'}}
{'bucket_name': 'test', 'default_acl': None, 'location': 'abc/def'}}
Copy link
Contributor Author

@awais786 awais786 Aug 25, 2023

Choose a reason for hiding this comment

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

Constructor now verifies its passing params and base_url is unknown for this package.

Copy link
Contributor

@DawoudSheraz DawoudSheraz left a comment

Choose a reason for hiding this comment

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

CI is green 👍🏽 . Although, once the changes land on the stage, verify the upload is working as expected.

@awais786 awais786 marked this pull request as ready for review August 26, 2023 12:13
@awais786 awais786 merged commit 9281ea4 into master Aug 28, 2023
@awais786 awais786 deleted the django-storages-upgrade branch August 28, 2023 08:13
awais786 added a commit that referenced this pull request Aug 28, 2023
awais786 added a commit that referenced this pull request Aug 28, 2023
awais786 added a commit that referenced this pull request Aug 28, 2023
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@awais786 awais786 restored the django-storages-upgrade branch August 28, 2023 11:04
awais786 added a commit that referenced this pull request Aug 28, 2023
awais786 added a commit that referenced this pull request Aug 30, 2023
awais786 added a commit that referenced this pull request Aug 30, 2023
Yagnesh1998 pushed a commit to ManpraXSoftware/edx-platform that referenced this pull request Sep 1, 2023
* feat!: upgrading django-storages to 1.10.1
Yagnesh1998 pushed a commit to ManpraXSoftware/edx-platform that referenced this pull request Sep 1, 2023
Yagnesh1998 pushed a commit to ManpraXSoftware/edx-platform that referenced this pull request Sep 1, 2023
Yagnesh1998 pushed a commit to ManpraXSoftware/edx-platform that referenced this pull request Sep 1, 2023
@nedbat nedbat deleted the django-storages-upgrade branch January 8, 2024 15:02
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.

4 participants