-
Notifications
You must be signed in to change notification settings - Fork 85
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
Deprecate Store.get_s3fs_session
, expose under new name: Store.get_s3_filesystem
#766
Comments
Or |
Yep, I was actually going to suggest that originally for that same reason, so I'm happy to use that name instead. |
@mfisher87 Hey I want to have a look into this one. |
Sorry, I was thinking about #765 |
This comment was marked as duplicate.
This comment was marked as duplicate.
Remember for the purpose of the changelog that this is a breaking change :) |
If we deprecate the existing methods/functions, it's not a breaking change until we actually remove the deprecated items, no? |
Correct, if we go down that path we should leave deprecation warnings! I did not pay close enough attention to your use of "deprecate" in the issue description and was just reading the title :) |
Store.get_s3fs_session
, expose under new name: Store.get_s3_filesystem
Right, thanks for clarifying that in the issue title. This raises another question. Have we defined how we deprecate things? In terms of how deprecations appear in the changelog, our changelog conventions cover that, but how about a coding guideline for actually implementing a deprecation? |
Yeah, that sounds like something that should be in the contributing guide! Great call. Beyond e.g. "use the built-in |
See thread in PR #768 |
Fixed by #768 |
The method
Store.get_s3fs_session
is misleading because it does not return any kind of "session" object. Rather, it returns an instance ofs3fs.S3FileSystem
, so the method should be renamed to properly reflect the type of object it returns.I propose we deprecate
Store.get_s3fs_session
(along with all other places where it is surfaced through functions of the same name) and replace it (and other methods/functions named the same) with the nameget_s3fs_filesystem
.The text was updated successfully, but these errors were encountered: