-
Notifications
You must be signed in to change notification settings - Fork 62
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
created_time
for Connect needs to use a different ISO8601 variant
#623
Conversation
Hey, thanks for opening this PR! Do you mind explaining a bit the issue encountered? What were you trying to do when you noticed this, and how did it cause a problem? |
Hello @machow! Thank you for your comment. I'm sorry I didn't provide any context. So a simple test case: board <- pins::board_rsconnect(auth = "envvar")
name <- 'pin-test'
board |>
pins::pin_write(list(1, 2, 3), name = name)
board |>
pins::pin_versions(name) You will see that the So with this PR, the I've checked with RStudio Connect, who confirmed it's a bug with
I understand that this means the So if that is correct, we'll want to merge this PR as is. :) |
I have experienced this myself @bjfletcher so thank you so much for the contribution! We are in the midst of revamping how authentication is handled in pins for CI and testing but we will merge this in as soon as we get that hammered out. 👍 |
@bjfletcher thanks for the helpful context on the bug! I'm noticing that the pin_versions code for RSConnect is using different metadata, than e.g. It could be that pin_versions did this as an optimization (probably faster to retrieve version data this way). But it likely produces slightly different creation times than you'd get by running It seems okay to me to get the data in the way pin_versions is doing it, and apply this fix, but @juliasilge wanted to flag for us to double check beforehand! edit: wait -- other boards in R pins (and pins-python) use something like |
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.
Seems fine to me, but the fix (switching ISO8601 variants) doesn't seem connected to the PR title (POSIXct vs POSIXlt).
created_time
in bundles are in POSIXlt format not POSIXct format :/created_time
for Connect needs to use a different ISO8601 variant
Thanks for this PR @bjfletcher! |
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
pins
seems to expectcreated_time
with bundles to be in POSIXct format however we're seeing them in POSIXlt format.RStudio Connect (on Kubernetes):
Version: 2022.05.0
Build: v2022.05.0-0-g762d29c
This PR fixes it for us, however, we we will most probably want to implement something like this pseudocode:
created_time
along with tests. But we'd like to check with you first about the approach before we implement the changes and push to this PR.