Skip to content

pin_read() on Connect fails if the owner changes #858

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

Open
nealrichardson opened this issue Feb 14, 2025 · 1 comment
Open

pin_read() on Connect fails if the owner changes #858

nealrichardson opened this issue Feb 14, 2025 · 1 comment
Labels
documentation feature a feature request or enhancement

Comments

@nealrichardson
Copy link

When someone leaves the company, their content on Connect, including pins, gets transferred to someone else. But this breaks any consumers of pins who specify pins::pin_read("person-who-left/pin-name"), because it `Can't find pin named 'pin-name' with owner 'person-who-left' (code).

Reading the code, it looks like pin_read("pin-name") would work, as long as the user only has access to one pin named that. IMO, we should recommend that usage, and for cases where you're concerned that there could be multiple pins with the same name, recommend (and support in rsc_content_find()) referencing the pin by GUID, which is immutable. I don't think we should recommend the username/pinname way of referencing pins because that is not a convention that Connect knows about or enforces as a way to uniquely reference content.

@juliasilge juliasilge added documentation feature a feature request or enhancement labels Feb 14, 2025
@juliasilge
Copy link
Member

juliasilge commented Feb 14, 2025

This would require (well, sort of) work on the Python side to add all the looking up, guessing, etc for usernames. Currently the Python package requires you to always provide the username, for both writing and reading.

See for example:
https://github.com/rstudio/pins-python/blob/8a4faf12fee92687eb4d52b14006be1508948866/pins/boards.py#L1165

cc @isabelizimm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants