Skip to content

Fix Extension Hijacking and Dashboard URLs #14

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

Merged
merged 16 commits into from
Jul 12, 2025

Conversation

safoinme
Copy link
Contributor

No description provided.

safoinme added 10 commits July 10, 2025 20:04
… local setup instructions, and adjust Dockerfile for new version. Add node_modules to .vscodeignore and update dependencies in package-lock.json.
…ty with new commands, and add ZenML tutorial view. Adjust Dockerfile and .vscodeignore for new versioning. Improve logging for extension activation.
…ctionality, and add auto-open tutorial feature. Adjust Dockerfile and package files accordingly. Improve error handling and logging during activation.
…nd package files accordingly, and add codicon.css for icon support. Modify .vscodeignore to exclude node_modules and update build workflow for new versioning.
…in package files, Dockerfile, and build workflow for consistent versioning across all components.
@safoinme safoinme requested a review from htahir1 July 11, 2025 08:57
Copy link
Contributor

@htahir1 htahir1 left a comment

Choose a reason for hiding this comment

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

I honestly have no way of checking this :D


# Determine base URL based on environment
is_codespace = os.environ.get("CODESPACES") == "true"
is_tutorial_enabled = os.environ.get("ZENML_ENABLE_TUTORIAL") == "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

Who sets this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this would be set by default in codespaces containers

if is_codespace or is_tutorial_enabled or is_remote:
dashboard_base = "https://cloud.zenml.io"
else:
dashboard_base = "http://127.0.0.1:8237"
Copy link
Contributor

Choose a reason for hiding this comment

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

Well it isnt always local is it? The server url can be an OSS URL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what's an OSS url?

Copy link
Contributor

Choose a reason for hiding this comment

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

@safoinme open source deployment of the server

Copy link
Contributor Author

Choose a reason for hiding this comment

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

how can we know that url? is it already defined like the 2 in top? if not users can change it via extension settings https://open-vsx.org/extension/zenml-io/zenml-tutorial#%F0%9F%94%A7-settings-json

Copy link
Contributor

Choose a reason for hiding this comment

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

cant we somehow fetch it? im not sure myself... maybe the way you describe it is the way to go @safoinme

safoinme added 6 commits July 12, 2025 16:42
…o package files, Dockerfile, and README for improved user guidance and consistent versioning across components.
…in package files, build workflow, and the addition of the new VSIX file for consistent versioning across all components.
…in package files, Dockerfile, build workflow, and the addition of the new VSIX file for consistent versioning across all components.
…sistency and improved dependency management.
…uding @azure/core-auth, @azure/core-client, @azure/core-rest-pipeline, and others, ensuring compatibility with Node.js 20 and improving overall package management.
…in package files, Dockerfile, build workflow, and the addition of the new VSIX file for consistent versioning across all components.
@safoinme safoinme merged commit ce0a1b7 into develop Jul 12, 2025
4 checks passed
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