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

Make zenml up prefill username when launching dashboard #2024

Merged
merged 4 commits into from
Nov 10, 2023

Conversation

strickvl
Copy link
Contributor

@strickvl strickvl commented Nov 6, 2023

zenml up launches the dashboard (unless you have a specific env variable set) without any details prefilled for the login screen. This PR addresses that and launches with the default preset in the dashboard.

Pre-requisites

Please ensure you have done the following:

  • I have read the CONTRIBUTING.md document.
  • If my change requires a change to docs, I have updated the documentation accordingly.
  • If I have added an integration, I have updated the integrations table and the corresponding website section.
  • I have added tests to cover my changes.
  • I have based my new branch on develop and the open PR is targeting develop. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Other (add details above)

@strickvl strickvl added enhancement New feature or request internal To filter out internal PRs and issues labels Nov 6, 2023
@strickvl strickvl requested review from fa9r and bcdurak November 6, 2023 11:07
src/zenml/api.py Outdated
url = f"{url}:{port}" if port else url
if prefill_username:
url = (
f"{url}:{port}/login?username={DEFAULT_USERNAME}" if port else url
Copy link
Contributor

Choose a reason for hiding this comment

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

If someone were to configure their local server with external authentication support, will this mess with it in any way @stefannica?

Copy link
Contributor

Choose a reason for hiding this comment

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

A local server with external authentication support is not supported and not even technically possible, not even for development purposes.

src/zenml/api.py Outdated Show resolved Hide resolved
src/zenml/api.py Outdated Show resolved Hide resolved
@strickvl strickvl requested a review from fa9r November 6, 2023 12:50
Copy link
Contributor

@fa9r fa9r left a comment

Choose a reason for hiding this comment

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

LGTM from my side but let's wait for clarification from @stefannica regarding @schustmi's comment

@stefannica stefannica merged commit a6c3c87 into develop Nov 10, 2023
25 of 26 checks passed
@stefannica stefannica deleted the feature/OSS-2587-zenml-up-with-prefilled-username branch November 10, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request internal To filter out internal PRs and issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants