Skip to content
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

dev vs prod pins? #827

Open
rjake opened this issue Apr 26, 2024 · 1 comment
Open

dev vs prod pins? #827

rjake opened this issue Apr 26, 2024 · 1 comment
Labels
feature a feature request or enhancement

Comments

@rjake
Copy link

rjake commented Apr 26, 2024

Would it be possible to have a simplified pin versioning that is similar to a gh branch? I'd like to work on the underlying data for the dev version of an app without affecting the prod version of an app. I'd like to be able to set a variable in both scripts to look for the right version. The recommendation would likely be to have a dev and prod server but we only have one.

Pin script:

env <- "prod"

pin_write(board, df_1, "pin-1", variant = env)
pin_write(board, df_2, "pin-2", variant = env)
pin_write(board, df_3, "pin-3", variant = env)
pin_write(board, df_4, "pin-4", variant = env)

App script

env <- "prod"

df_1 <- pin_read(board, "pin-1", variant = env)
df_2 <- pin_read(board, "pin-2", variant = env)
df_3 <- pin_read(board, "pin-3", variant = env)
df_4 <- pin_read(board, "pin-4", variant = env)
@juliasilge
Copy link
Member

This is an interesting idea @rjake! We can keep this open to collect feedback from folks.

As a workaround for now, if you wanted to have dev vs. prod datasets, I would recommend storing them in separate pins with pin names like "pin-1-dev", and "pin-1-prod", like so:

env <- "prod"
df_1 <- pin_read(board, paste0("pin-1-", env))

@juliasilge juliasilge added the feature a feature request or enhancement label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants