-
Notifications
You must be signed in to change notification settings - Fork 93
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
Python API: disable autocreate feature on demand #1462
Python API: disable autocreate feature on demand #1462
Conversation
Codecov Report
@@ Coverage Diff @@
## 4.1.x #1462 +/- ##
==========================================
- Coverage 77.46% 77.18% -0.28%
==========================================
Files 309 309
Lines 58142 58167 +25
Branches 6823 6823
==========================================
- Hits 45040 44898 -142
+ Misses 12955 12910 -45
- Partials 147 359 +212
Continue to review full report at Codecov.
|
oio/api/object_storage.py
Outdated
@@ -324,7 +324,7 @@ class ObjectStorageApi(object): | |||
- `write_timeout`: `float` | |||
""" | |||
TIMEOUT_KEYS = ('connection_timeout', 'read_timeout', 'write_timeout') | |||
EXTRA_KEYWORDS = ('chunk_checksum_algo', ) | |||
EXTRA_KEYWORDS = ('chunk_checksum_algo', 'autocreate', ) |
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 think the last comma is useless.
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.
Done
oio/api/object_storage.py
Outdated
@@ -344,7 +344,10 @@ def __init__(self, namespace, logger=None, **kwargs): | |||
for all HTTP based APIs (except rawx) | |||
:type pool_manager: `urllib3.PoolManager` | |||
:keyword chunk_checksum_algo: algorithm to use for chunk checksums. | |||
Only 'md5' and `None` are supported at the moment. | |||
Only 'md5' aend `None` are supported at the moment. |
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.
aend
--> and
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.
Done
Previously, autocreate was forced to True. Parameter is now exposed on API side and default value is True for backward compatibility.
3ee0ff5
to
c05daac
Compare
SUMMARY
The autocreate feature on API Python was hardcoded
ISSUE TYPE
COMPONENT NAME
Python API
SDS VERSION
ADDITIONAL INFORMATION
Default value of autocreate option is still True to avoid breaking backward compat