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

Suport prefix url for nnimanager #3643

Merged
merged 5 commits into from
May 24, 2021

Conversation

acured
Copy link
Contributor

@acured acured commented May 14, 2021

Suport prefix url for nnimanager

@@ -19,7 +20,7 @@ import { createRestHandler } from './restHandler';
*/
@component.Singleton
export class NNIRestServer extends RestServer {
private readonly API_ROOT_URL: string = '/api/v1/nni';
private readonly API_ROOT_URL: string = `/api/v1/nni/${getUrlPrefix()}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think prefix URL should better override /api/v1/nni.

Copy link
Contributor

Choose a reason for hiding this comment

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

The same opinion with @liuzhe-lz , in

API_ROOT_URL = '/api/v1/nni'

so that we don't need to modify too many internal interfaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed.

@Lijiaoa Lijiaoa mentioned this pull request May 14, 2021
3 tasks
@ultmaster ultmaster added this to Review in progress in v2.3 May 14, 2021
@ultmaster ultmaster linked an issue May 14, 2021 that may be closed by this pull request
@ultmaster ultmaster requested a review from J-shang May 14, 2021 08:38
@@ -81,6 +81,10 @@ def start_rest_server(port, platform, mode, experiment_id, foreground=False, log
cmds += ['--log_level', log_level]
if foreground:
cmds += ['--foreground', 'true']
if url_prefix:
path_validation(url_prefix)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe validate in create_experiment is better?
and if we resume or view an experiment, should we support reconfigure url_prefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. Changed.
  2. I'm ok for that, since there is no way to change "url_prefix". Any concerns @liuzhe-lz ?

v2.3 automation moved this from Review in progress to Reviewer approved May 24, 2021
@ultmaster ultmaster merged commit 35c3d16 into microsoft:master May 24, 2021
v2.3 automation moved this from Reviewer approved to Done May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v2.3
Done
Development

Successfully merging this pull request may close these issues.

Is there any option to set base url for the web report?
4 participants