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

fallback to authed workspace api key for getting public projects #3

Merged

Conversation

hansent
Copy link
Contributor

@hansent hansent commented Nov 20, 2022

When specifying a project id for e.g. commands like roboflow project get augmented-startups/playing-cards-ow27d, we use the workspace in the porject id to look up the api key. However, for public projects on universe, we need to use the api key of one of the authed workspaces instead. This was kind of working when e.g. just specifying the project url without the workspace url (e.g. roboflow project get playing-cards-ow27d).

This PR changes it so we check whether we have a API key for the project specific workspace, and if not we fallback to getting the api for an authed workspace (wither default workspace or the one specified via --workspace option

Also fixed some typos (one mentioned here and renaming getApiKeyWorWorkspace to getApiKeyForWorkspace

… there is no api key for the workspace specified in the project url

 - fix some typos  / misspellings
@hansent hansent requested a review from yeldarby November 20, 2022 20:55
@hansent hansent merged commit cad0939 into master Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants