diff --git a/deployment/deployment-pipelines.yml b/deployment/deployment-pipelines.yml index 52f3d800d0..410d705bd5 100644 --- a/deployment/deployment-pipelines.yml +++ b/deployment/deployment-pipelines.yml @@ -88,7 +88,7 @@ jobs: export IMG_NAME=$(dev_docker_img) export IMG_TAG=`git describe --tags --abbrev=0`.`date -u +%y%m%d%H%M` echo 'updating docker file for testpyi...' - sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/RUN python3 -m pip install --user --no-cache-dir --index-url https:\/\/test.pypi.org\/simple --extra-index-url https:\/\/pypi.org\/simple nni/' Dockerfile + sed -ie 's/RUN python3 -m pip --no-cache-dir install nni/RUN python3 -m pip install --no-cache-dir --index-url https:\/\/test.pypi.org\/simple --extra-index-url https:\/\/pypi.org\/simple nni/' Dockerfile else docker login -u $(docker_hub_user) -p $(docker_hub_pwd) export IMG_NAME=msranni/nni diff --git a/src/webui/src/components/trial-detail/TableList.tsx b/src/webui/src/components/trial-detail/TableList.tsx index 99e0388783..94c187a3ab 100644 --- a/src/webui/src/components/trial-detail/TableList.tsx +++ b/src/webui/src/components/trial-detail/TableList.tsx @@ -241,9 +241,15 @@ class TableList extends React.Component { // final result in a succeed trial, it may be a dict. // get intermediate result dict keys array const { intermediateKey } = this.state; - let otherkeys: string[] = ['default']; + const otherkeys: string[] = [ ]; if (res.data.length !== 0) { - otherkeys = Object.keys(parseMetrics(res.data[0].data)); + // just add type=number keys + const intermediateMetrics = parseMetrics(res.data[0].data); + for(const key in intermediateMetrics){ + if(typeof intermediateMetrics[key] === 'number') { + otherkeys.push(key); + } + } } // intermediateArr just store default val Object.keys(res.data).map(item => {