-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Issue #6414] File system operations do not adhere to Django file storage API #6425
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6425 +/- ##
==========================================
- Coverage 59.01% 59.00% -0.01%
==========================================
Files 184 185 +1
Lines 20569 20598 +29
Branches 3416 3420 +4
==========================================
+ Hits 12138 12154 +16
- Misses 7358 7374 +16
+ Partials 1073 1070 -3 |
57e1771
to
96c1dab
Compare
Hi @mtnorthcott it's been a bit difficult to understand when a PR is ready for the review or not. I'm kindly asking to either create just one PR for each issue, with no further commits, or put the PRs in DRAFT until they are still a work in progress. Thanks for your understanding. |
76bd738
to
62f0a91
Compare
This pull request fixes 1 alert when merging 62f0a916c17c0af0cd4dc4e844b744149b3e0155 into d4c9311 - view on LGTM.com fixed alerts:
|
@afabiani I had intended to tag the description with 'Closes #6414' once complete and make a comment but I did not communicate this so my apologies for the confusion. I have tagged this PR as a draft for the time being. |
I have done some testing and, although there are likely instances of local storage operations that I've missed, this PR is now in a state in which feature-breaking bugs are fixed for third-party plugins as described. This predominantly includes creation of documents and document thumbnails using |
@mtnorthcott for the time being I see some tests failing on Travis like this
|
62f0a91
to
dfab8af
Compare
This pull request fixes 1 alert when merging dfab8af70e617dad174f2d9ef94355ab86000eb2 into 0e03367 - view on LGTM.com fixed alerts:
|
dfab8af
to
0a0ee4d
Compare
This pull request fixes 1 alert when merging 0a0ee4d50a80d2932615f83638c420ab033be96a into 0e03367 - view on LGTM.com fixed alerts:
|
This pull request fixes 1 alert when merging 040711522ed41a1c86e5882b29260671e2f2d1fa into 0e03367 - view on LGTM.com fixed alerts:
|
948e86d
to
c2ad4a9
Compare
This pull request fixes 1 alert when merging c2ad4a93a91d16af56356336933ea75f501a27ab into 0e03367 - view on LGTM.com fixed alerts:
|
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.
There are still a couple of changes that should be made before merging this code. Apologies @mtnorthcott for not getting to review this earlier.
This pull request fixes 1 alert when merging ab15cdaf1976d815e9b6f48686357b9ec1638d64 into 24ba526 - view on LGTM.com fixed alerts:
|
ab15cda
to
55a8d10
Compare
a75cbde
to
1db58ca
Compare
This pull request fixes 1 alert when merging 1db58caba39dc4e7075f6f8d68af3965976eebcf into 24ba526 - view on LGTM.com fixed alerts:
|
1db58ca
to
cc5717d
Compare
This pull request introduces 1 alert and fixes 1 when merging cc5717d85bc80a4d94e7842c1afe453ac3dd2adf into 24ba526 - view on LGTM.com new alerts:
fixed alerts:
|
cc5717d
to
570ec5d
Compare
This pull request fixes 1 alert when merging 570ec5d into 24ba526 - view on LGTM.com fixed alerts:
|
@mtnorthcott apologies this took a while to review, but looking good to me now. |
…rage API (#6425) * [Issue #6414] Use Django storage API in delete_orphaned_* functions * [Issue #6414] Use Django storage API in geonode.qgis_server.tests.test_views * [Issue #6414] Use Django storage API when generating document thumbnails * [Issue #6414] Thumbnail generation fix for local storage * Add thumbnail convenience functions * Cleanup Django storage API changes (cherry picked from commit 771e154)
Fixes #6414
PR to replace file system operations performed using Python's
os
,shutil
etc. library functions with the more generic Django file storage API function calls with the goal of supporting Django storage plugins such as django-storage-swift.Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.