rstudio / pins-r

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

Support pin_search on RStudio Connect when user is an admin #606

Closed machow closed 1 year ago

machow commented 2 years ago

See https://github.com/machow/pins-python/issues/27#issuecomment-1075633988

Currently, admin users on RStudio Connect can show a list of all pin content, including content they are not able to access. However, this leads to this bad situation:

In order to resolve, we could catch failures to fetch metadata and have them return something with less information (e.g. pin name).

See:

kmasiello commented 2 years ago

+1 on behalf of customer. Use case is querying for existing pins as part of a shiny app. The application works when deployed but not locally due to the publisher being an admin, making for a challenging development process.

kmasiello commented 2 years ago

Also posting a reminder that pin_list() and pin_exists() may be suitable alternatives for users running into this issue, depending on what the use case is for running pin_search().

github-actions[bot] commented 1 year 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.