-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
add Storage.upload(Path) #179
Comments
Extension the Storage interface is incompatible change. Such a minor feature as adding helper upload methods should not break compatibility. Instead of extending the main interface it's better to introduce a new class like StorageUtilities and put various helpers there. |
How is Storage interface change incompatible change in this case? I still think we should add the method under Storage and not create a separate helper utility. |
Interface extension is backward incompatible change. |
We've been adding new methods to the interface for several features outside of this request. Could you clarify what you mean? If we move forward with the feature added in #214 it will create a fracture in developer experience. We can try to do something else, but I'd prefer |
Extending interface breaks the API and requires a major version update since this API post 1.0. |
I agree that this doesn't substantiate a major version bump. What is the failure that you're hitting by updating the Storage API surface? |
You can't add a method to an interface without breaking the API. |
I misunderstood. damn, we have breaking the API without major version bumps for a couple of years then. What other alternatives do we have to continue supporting requests in Storage.java? It really changes the way we execute work so I'm a bit confused. |
There are at least 3 ways forward:
There's a fourth once we drop Java 7 support. Maybe some others I haven't thought of. |
Shared an internal document to help unblock the existing dev path for now. It will hold up other work as well that needs to be released this way. |
What the document did you share? |
It's an internal document with Googlers right now. I'm sorting it out. I'll follow-up later today. Thanks for your patience @dmitry-fa |
Hi @dmitry-fa, could you send me an email at coderfrank@google.com, I'm not able to find your email. |
To move further with this issue:
|
In addition to Blob.uploadFrom() methods which require a Blob instance to be created first there should be a way to upload a resource to the storage without creating an instance of Blob:
Implementing this feature means extending of public interface.
The text was updated successfully, but these errors were encountered: