Uh oh!
There was an error while loading. Please reload this page.
feat(storage): add support of daysSinceNoncurrentTime and noncurrentTimeBefore - #162
Conversation
HemangChothani
commented
May 28, 2020
@frankyn Should i change datetime object microsec to millisec as backend save the values in millisec? or any change expected from backend side. |
jkwlui
commented
Jun 4, 2020
@HemangChothani does the backend accept microsec? I think in general if the backend accepts it, we can take the easier path for our client and send the value directly. |
jkwlui
left a comment
There was a problem hiding this comment.
Please hold pending release.
@jkwlui The backend doesn't throw an error when time sent in microsecond, but when i have tried to retrieve the value it returned in millisecond. |
…into storage_issue_159
…into storage_issue_159
…into storage_issue_159
HemangChothani
commented
Jun 23, 2020
@jkwlui PTAL! I have remove the custom method as backend accept and return the |
jkwlui
left a comment
There was a problem hiding this comment.
LGTM. Please hold off from merging until we get approvals from the product side. Thank @HemangChothani!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tseaver
commented
Jul 21, 2020
@jkwlui The 1.29.0 release was made on 2020-06-11. Should this feature be unblocked? |
frankyn
commented
Jul 21, 2020
Please don't merge this change. We have an adjustment for the requirements coming that need to be addressed both client side and server side before merging. |
frankyn
left a comment
There was a problem hiding this comment.
Thanks for your patience @HemangChothani,
Update: The Cloud Storage team has updated type of noncurrent_time_before and custom_time to be a Date format (YYYY-mm-dd) instead of DateTime.
Discovery document with updated documentation with respect to these fields:
https://www.googleapis.com/discovery/v1/apis/storage/v1/rest
HemangChothani
commented
Aug 13, 2020
@frankyn That change has been already done. |
…into storage_issue_159
frankyn
commented
Aug 14, 2020
Hey @HemangChothani I meant to say: Update: The Cloud Storage team has updated type of noncurrentTimeBefore and customTimeBefore to be a Date format (YYYY-mm-dd) instead of DateTime. Discovery document with updated documentation with respect to these fields: |
…into storage_issue_159
frankyn
left a comment
There was a problem hiding this comment.
Documentation nit, otherwise LGTM.
| non current. | ||
| :type noncurrent_time_before: :class:`datetime.date` | ||
| :param noncurrent_time_before: (Optional) Date object parsed from iso8601 valid date, apply |
There was a problem hiding this comment.
Use RFC3339 and provide an example: 2019-03-16
…-storage into storage_issue_159
…into storage_issue_159
…imeBefore (googleapis#162) * feat(storage): add support of daysSinceNoncurrentTime and noncurrentTimeBefore * feat(storage): fix code coverage * feat(storage): add custom method to convert datetime to string * feat(storage): remove custom method as server support microsec * feat(storage): change the return type of noncurrent_time_before * feat(storage): change non_current_time type from datetime to date * feat: nit Co-authored-by: Jonathan Lui <jonathanlui@google.com> Co-authored-by: Frank Natividad <frankyn@users.noreply.github.com>
…imeBefore (googleapis#162) * feat(storage): add support of daysSinceNoncurrentTime and noncurrentTimeBefore * feat(storage): fix code coverage * feat(storage): add custom method to convert datetime to string * feat(storage): remove custom method as server support microsec * feat(storage): change the return type of noncurrent_time_before * feat(storage): change non_current_time type from datetime to date * feat: nit Co-authored-by: Jonathan Lui <jonathanlui@google.com> Co-authored-by: Frank Natividad <frankyn@users.noreply.github.com>
Fixes#159