-
Notifications
You must be signed in to change notification settings - Fork 32
fix: use configured STORAGE_KWARGS if available #593
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
Conversation
|
Thanks for the pull request, @marslanabdulrauf! This repository is currently unmaintained. 🔘 Find a technical reviewerTo get help with finding a technical reviewer, reach out to the community contributions project manager for this PR:
Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
blarghmatey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #593 +/- ##
==========================================
+ Coverage 94.84% 94.86% +0.01%
==========================================
Files 33 33
Lines 3337 3350 +13
Branches 128 129 +1
==========================================
+ Hits 3165 3178 +13
Misses 154 154
Partials 18 18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @feanil could you please take a look ? |
|
Hi @feanil , We are using I used the same setting name for |
|
@marslanabdulrauf yes, I think we do want to update to using the new settings but that should also fall back to the old settings which might make it a little complicated but feels correct. |
|
I have updated the PR and gave precedence to Django 5.2 Custom settings key (same): I will create a follow-up PR in |
aeb08b0 to
54ecba1
Compare
|
@feanil could you please take another look ? |
|
@marslanabdulrauf It looks like there's a failing check, can you have a look? |
dc122e9 to
8401fd0
Compare
feanil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally makes sense, one note on naming and also don't forget to document the change on the Verawood operator notes site: https://openedx.atlassian.net/wiki/spaces/COMM/pages/5331222534/Verawood+-+Operator+Release+Notes or the Ulmo equivalent if the plan is to backport this.
edxval/utils.py
Outdated
| # For Django 5.x, pick options if available | ||
| options = getattr(settings, 'STORAGES', {}).get('default', {}).get('OPTIONS', {}) | ||
| storages_config = getattr(settings, 'STORAGES', {}) | ||
| storage_key = settings_key.replace("SETTINGS", "storage") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to add storage as a suffix here. The key is inside the storages dictionary so just calling it STORAGES['video_transcripts'] should be clear enough.
|
I re-ran the failed test and it got past the codecov error, but it looks like there is a legit Pact error to dig into now @marslanabdulrauf |
|
Hey @feanil I don't have access to add/edit https://openedx.atlassian.net/wiki/spaces/COMM/pages/5331222534/Verawood+-+Operator+Release+Notes And I am not sure if this |
|
@marslanabdulrauf if you create an account and login, you should be able to edit that page. If that's not working let me know your username in atlassian and I can dig into why. The pact issue is related to some 2U specific testing, that doesn't work correctly from forks, I can remake this PR as a branch to verify that the pact issue is okay once everything else is all set. |
|
Updated: https://openedx.atlassian.net/wiki/spaces/COMM/pages/5331222534/Verawood+-+Operator+Release+Notes And Deprecation added for legacy settings |
|
Hi @feanil, were you able to remake this PR to see if the Pact issue is fixed ? |
|
@marslanabdulrauf I updated the description on the wiki to link to this PR and to add the key in the new storages data structure for transcripts and tested this via a separate PR so it's all set. v3.2.0 has been pushed to PyPI |
|
Thanks @feanil it looks great. |
Related Ticket
#590
Description:
This PRs
STORAGE_KWARGSfrom settingsReasons
STORAGE_KWARGSfromVIDEO_TRANSCRIPTS_SETTINGSSTORAGE_KWARGSon user'sDEFAULT_FILE_STORAGE/STORAGES