-
Notifications
You must be signed in to change notification settings - Fork 66
pin_read() on Connect fails if the owner changes #858
Description
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.