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

fix: downgrade django-storages to 1.14.3 #35156

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

KristinAoki
Copy link
Member

@KristinAoki KristinAoki commented Jul 23, 2024

Description

A recent upgrade to django-storages from 1.14.3 to 1.14.4 broke the ability to import a course. The course was able to upload but after uploading the file was not able to be found when the import moved to the "Unpacking" step. This change impacts the "Developer" and "Authors".

This bug was introduced in #35125.

Supporting information

the import is broken in edx-platform's master branch by the most recent version of django-storages (1.14.4). I'm not sure what is the proper fix, but pinning it to 1.14.3 in master should work.
The culprit are these two lines added in 1.14.4 that make file_exists_in_storage function always return False, as the default value of AWS_S3_FILE_OVERWRITE is True.

Testing instructions

  1. Open a course in Studio
  2. Navigate to the import page
  3. Add a file
  4. Confirm that file successfully imports and course outline is updated

KristinAoki and others added 2 commits July 23, 2024 09:32
Commit generated by workflow `openedx/edx-platform/.github/workflows/compile-python-requirements.yml@refs/heads/master`

Co-authored-by: KristinAoki <[email protected]>
@KristinAoki KristinAoki merged commit 896b011 into master Jul 23, 2024
50 checks passed
@KristinAoki KristinAoki deleted the KristinAoki/fix-downgrade-django-storages-1.14.3 branch July 23, 2024 17:15
@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.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.


# django-storages==1.14.4 breaks course imports
# Two lines were added in 1.14.4 that make file_exists_in_storage function always return False,
# as the default value of AWS_S3_FILE_OVERWRITE is True
Copy link
Contributor

Choose a reason for hiding this comment

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

@KristinAoki @jristau1984 please create a github issue for removing this constraint in the future and ideally schedule that for a future sprint.

mudassir-hafeez pushed a commit to mudassir-hafeez/edx-platform that referenced this pull request Jul 24, 2024
* fix: downgrade django-storages to 1.14.3

* fix: change max version

* feat: Recompile Python dependencies (openedx#35164)

Commit generated by workflow `openedx/edx-platform/.github/workflows/compile-python-requirements.yml@refs/heads/master`

Co-authored-by: KristinAoki <[email protected]>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
mudassir-hafeez pushed a commit to mudassir-hafeez/edx-platform that referenced this pull request Jul 24, 2024
* fix: downgrade django-storages to 1.14.3

* fix: change max version

* feat: Recompile Python dependencies (openedx#35164)

Commit generated by workflow `openedx/edx-platform/.github/workflows/compile-python-requirements.yml@refs/heads/master`

Co-authored-by: KristinAoki <[email protected]>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
mudassir-hafeez pushed a commit to mudassir-hafeez/edx-platform that referenced this pull request Jul 24, 2024
* fix: downgrade django-storages to 1.14.3

* fix: change max version

* feat: Recompile Python dependencies (openedx#35164)

Commit generated by workflow `openedx/edx-platform/.github/workflows/compile-python-requirements.yml@refs/heads/master`

Co-authored-by: KristinAoki <[email protected]>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
mudassir-hafeez pushed a commit to mudassir-hafeez/edx-platform that referenced this pull request Jul 24, 2024
* fix: downgrade django-storages to 1.14.3

* fix: change max version

* feat: Recompile Python dependencies (openedx#35164)

Commit generated by workflow `openedx/edx-platform/.github/workflows/compile-python-requirements.yml@refs/heads/master`

Co-authored-by: KristinAoki <[email protected]>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

5 participants