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

Get workspace IDs #23

Open
svraka opened this issue Jul 13, 2020 · 0 comments
Open

Get workspace IDs #23

svraka opened this issue Jul 13, 2020 · 0 comments

Comments

@svraka
Copy link
Contributor

svraka commented Jul 13, 2020

As already noted by @VincentGuyader in a comment in get_workspace_id(), currently there's no way to query all workspace IDs from togglr.

As far as I understand, get_workspace_id() is used in many functions throughout the package to fetch the first workspace ID of an account which might not even be the default. Fortunately there's a me API endpoint, which returns info on all workspaces (similarly to the workspaces endpoint) but this also includes a field on which workspace is set as default.

I'm not sure what is the best approach to add this functionality to the packages. Without introducing significant braking changes, get_workspace_id() could gain a default_workspace argument, defaulting to TRUE (presumably most togglr users have only one workspace). However, the function name get_workspace_id() would be a bit misleading.

BTW, great package!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants