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

chore: Switching URL to api.app.preset.io #127

Merged
merged 6 commits into from
Oct 21, 2022
Merged

Conversation

craig-rueda
Copy link
Member

Switches manager baseUrl from manage.app.preset.io over to api.app.preset.io

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this, @craig-rueda !

@betodealmeida
Copy link
Member

Weird that the tests are reporting missing coverage:

src/preset_cli/cli/main.py                              237     24     98      1    91%   130-172

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I'm just confused about the early return when we run preset-cli auth.

Comment on lines +125 to +127
if ctx.invoked_subcommand == "auth":
# The user is trying to auth themselves, so skip anything auth-related
return
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this the credentials will never be stored (line 155) when the user runs preset-cli auth.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def auth() is invoked after this method, so that's where they will be stored. Then, the user would call something else, like superset, which would fetch the JWT, etc

@craig-rueda craig-rueda merged commit 16f3878 into main Oct 21, 2022
@craig-rueda craig-rueda deleted the craig/switch_to_api branch October 21, 2022 21:58
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.

None yet

2 participants