-
Notifications
You must be signed in to change notification settings - Fork 133
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
Consolidate the storage implementations + Remove libcloud dependency #640
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #640 +/- ##
==========================================
- Coverage 80.97% 80.80% -0.17%
==========================================
Files 53 52 -1
Lines 4652 4398 -254
Branches 661 628 -33
==========================================
- Hits 3767 3554 -213
+ Misses 857 816 -41
Partials 28 28
|
162b9e9
to
4ca32ba
Compare
e722c54
to
c4e4746
Compare
eef8bbf
to
4c052a9
Compare
Also pushed a change to fix the bug reported by SonarCloud. |
@@ -1,4 +1,4 @@ | |||
FROM ubuntu:18.04 as base | |||
k8s/Dockerfile-azure FROM ubuntu:18.04 as base |
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'm actally not sure how this sneakedi n.
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.
lol, we're removing this file anyway.
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.
Fantastic job!
We're good for a merge (with two refactoring tickets that need to be created)
@@ -1,4 +1,4 @@ | |||
FROM ubuntu:18.04 as base | |||
k8s/Dockerfile-azure FROM ubuntu:18.04 as base |
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.
lol, we're removing this file anyway.
logging.debug('Loading storage_provider: {}'.format(self._config.storage_provider)) | ||
if self._config.storage_provider == Provider.GOOGLE_STORAGE: | ||
if self._config.storage_provider.lower() == 'google_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.
Suggestion: we should create a refactoring ticket to create new constants for the storage providers.
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.
medusa/storage/azure_storage.py
Outdated
name=object_key, | ||
data=data, | ||
overwrite=True, | ||
max_concurrency=4, |
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.
Suggestion: we had settled on 16 ;)
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.
Fixed.
4c052a9
to
ac8fe1c
Compare
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Fixes #618 .