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

Implementation of Directory Selection for Server Startup [Santana's PR] #1788

Closed
wants to merge 4 commits into from

Conversation

rashidakanchwala
Copy link
Contributor

Description

This is based on Santana's work #1741. I was not able to work off that ticket since it was forked, so created a new PR.

Development notes

QA notes

Checklist

  • Read the contributing guidelines
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added new entries to the RELEASE.md file
  • Added tests to cover my changes

@@ -56,6 +56,12 @@ def viz(ctx):
default=DEFAULT_HOST,
help="Host that viz will listen to. Defaults to localhost.",
)
@click.option(
"--project_path",
Copy link
Contributor

Choose a reason for hiding this comment

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

for consistency the option can be renamed to - --project-path

@@ -137,9 +137,14 @@ def run_server(
parser.add_argument(
"--port", help="The port of the development server", default=DEV_PORT
)
parser.add_argument("--project_path", help="Path to a Kedro project")
Copy link
Contributor

Choose a reason for hiding this comment

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

can be renamed to --project-path for consistency

@@ -158,7 +166,7 @@ def run(
"extra_params": params,
}
if autoreload:
project_path = Path.cwd()
project_path = Path(project_path) if project_path else Path.cwd()
Copy link
Contributor

Choose a reason for hiding this comment

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

run_server also does Path(project_path) if project_path else Path.cwd() on line 109 server.py, so we can just pass project_path and this is not needed

@rashidakanchwala
Copy link
Contributor Author

Closing this one as I was able to create a PR based off contributor PR.

@rashidakanchwala rashidakanchwala deleted the add-project-path-args-kedro-viz branch May 30, 2024 10:44
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