rstudio / pins-r

Pin, discover, and share resources
https://pins.rstudio.com
Other
317 stars 62 forks source link

Problem looking up pins on Connect with duplicate names #807

Closed juliasilge closed 1 year ago

juliasilge commented 1 year ago

On a Connect server, we have problems looking up a pin when different users have pins with the same name. This is true even when you use the fully qualified name:

library(pins)
b <- board_connect()
#> Connecting to Posit Connect 2023.10.0 at <https://colorado.posit.co/rsc>
b |> pin_write(sample(1:100, 10), "julia.silge/test", type = "json")
#> Error in `rsc_content_find()`:
#> ! Can't find pin named 'test' with owner 'julia.silge'
#> Backtrace:
#>     ▆
#>  1. └─pins::pin_write(b, sample(1:100, 10), "julia.silge/test", type = "json")
#>  2.   ├─pins::pin_store(...)
#>  3.   └─pins:::pin_store.pins_board_connect(...)
#>  4.     ├─base::tryCatch(...)
#>  5.     │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
#>  6.     │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
#>  7.     │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
#>  8.     └─pins:::rsc_content_find(board, name, warn = FALSE)
#>  9.       └─rlang::abort(...)

Created on 2023-11-15 with reprex v2.0.2

github-actions[bot] commented 11 months ago

This issue 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.