-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Adding Custom-Time to Firebase Storage #9576
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
Conversation
Thanks for the PR! LGTM, can you add a test |
@tonyjhuang It should be okay, tests are passing in Xcode |
Tony/Sebastian, do we need to go through internal API review for this (also, do we need to add this to web and Android)? |
Yes, filed b/228219437 to track the internal review. AFAICT this would be the first SDK to have support for this field, so there is some work to port it to Android & web. |
I thought it was sad that this field was not available in the sdk, and it can be useful (for example my goal is to update the custom time to allow the file to be deleted by a cloud storage rule later, and better than file age that I currently use, which is fixed for all files). |
The associated API review is available internally at go/firebase-storage-ios-custom-time |
Thanks Nathan, just to be clear, Android and web are not blockers to getting this PR merged in. We at Firebase have an internal review process any time our public API (aka our SDK surface) is changed, so I've filed one just for the iOS sdk, which we will need to wait for approvals on before merging this PR. The turnaround is typically O(1 week) but can take longer in some cases. That being said, if you're able to add this to our Android sdk, I'd be more than happy to review that and help get it submitted as well. |
Thanks for the PR @nathanfallet! We've done some pretty large refactoring around Storage this release - sorry about that. These files have moved to FirebaseStorageInternal. Do you mind moving these changes there? I'm happy to do so if you'd prefer. After that, the new API will need to be added to the Swift public API: https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseStorage/Sources/StorageMetadata.swift Thanks, let me know if you're able to do so or want me or someone else on the team to tackle this. Cheers! |
@ryanwilson Okay I will update my PR to match the refactoring around Storage |
@ryanwilson Same changes have been applied to the current master branch. |
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.
LGTM! Thanks, will make sure the tests pass and merge afterwards.
Merging now. cc @tonyjhuang |
The PR is breaking the updateMetadata2 test in all the integration tests (which don't run in forked PRs because of needing credentials). It seems that the updateMetadata API loses the |
So it's a problem coming from the server API? Or it's something I forgot in my changes in the iOS SDK? |
Hmm, yeah my guess is it's not being sent by the backend. That method you pointed to @paulb777 is just a convenience method to save a few lines of code: firebase-ios-sdk/FirebaseStorageInternal/Sources/FIRStorageUtils.m Lines 162 to 169 in 7402150
|
Yep, I understand it's a convenience method - it's just much easier to read dictionary's in the debugger than NSData's. |
Added #9652 to revert until we sort out the integration test issues and backend behavior. |
Hey there! So you want to contribute to a Firebase SDK?
Before you file this pull request, please read these guidelines:
Discussion
If not, go file an issue about this before creating a pull request to discuss.
Fixes #9575
Testing
API Changes
us make Firebase APIs better, please propose your change in a feature request so that we
can discuss it together.