-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Conversation
@@ -373,136 +388,132 @@ class TableList extends React.Component<TableListProps, TableListState> { | |||
parameterStr.push(`${value} (search space)`); | |||
}); | |||
} | |||
let showTitle = COLUMNPro; // eslint-disable-line @typescript-eslint/no-unused-vars | |||
showTitle = COLUMNPro.concat(parameterStr); | |||
|
|||
// only succeed trials have final keys | |||
if (tableSource.filter(record => record.status === 'SUCCEEDED').length >= 1) { | |||
const temp = tableSource.filter(record => record.status === 'SUCCEEDED')[0].accuracy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
temp
: better to give it a meaningful name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks
src/webui/src/static/const.ts
Outdated
@@ -2,8 +2,9 @@ | |||
const METRIC_GROUP_UPDATE_THRESHOLD = 100; | |||
const METRIC_GROUP_UPDATE_SIZE = 20; | |||
|
|||
const MANAGER_IP = `/api/v1/nni`; | |||
const MANAGER_IP = `http://13.77.78.63:8080/api/v1/nni`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this ip address?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
watchOptions: { | ||
ignored: ignoredFiles(paths.appSrc), | ||
}, | ||
// Enable HTTPS if the HTTPS environment variable is set to 'true' | ||
https: protocol === 'https', | ||
host: host, | ||
host, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove host:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同名可以简写~ 这是项目生成时的文件,我其实并没有改什么...
src/webui/scripts/build.js
Outdated
'Setting NODE_PATH to resolve modules absolutely has been deprecated in favor of setting baseUrl in jsconfig.json (or tsconfig.json if you are using TypeScript) and will be removed in a future major release of create-react-app.' | ||
) | ||
); | ||
console.log(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty content
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had delete this line.
src/webui/scripts/start.js
Outdated
console.log(`Learn more here: ${chalk.yellow('http://bit.ly/2mwWSwH')}`); | ||
console.log( | ||
`Learn more here: ${chalk.yellow('https://bit.ly/CRA-advanced-config')}` | ||
); | ||
console.log(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty content
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing! I had delete this line.
if (isFilter !== this.state.isFilter) { | ||
return true; | ||
} | ||
// if (isFilter !== this.state.isFilter) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why annotate these lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// will add it later. [graph is not render when add this component]
So... will delete this notes. will support this function after that.
if (whichGraph !== beforeGraph) { | ||
return true; | ||
} | ||
// const { whichGraph } = nextProps; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these lines are not useful, could remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.
src/webui/src/static/function.ts
Outdated
// render the table | ||
if (updateList) { | ||
updateList(); // FIXME | ||
} | ||
} else { | ||
message.error('fail to cancel the job'); | ||
alert('fail to cancel the job'); | ||
// message.error('fail to cancel the job'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unused function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this function will use in [kill a trial],
I 'll update this function in next commit in PR.
Thanks for reviewing.
@@ -0,0 +1,21 @@ | |||
MIT License |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so...
src/webui/src/App.test.tsx
Outdated
import App from './App'; | ||
|
||
it('renders without crashing', () => { | ||
const div = document.createElement('div'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep indentation consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
// render the table | ||
if (updateList) { | ||
updateList(); // FIXME | ||
} | ||
} else { | ||
message.error('fail to cancel the job'); | ||
alert('fail to cancel the job'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe using browser alert
API is a bad practice.
We should port to a better notification framework later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
你说的对!下一版会fix
}); | ||
}; | ||
|
||
private _copyAndSort<T>(items: T[], columnKey: string, isSortedDescending?: boolean): T[] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does TS/React recommend variable name starting with underscore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fabric-react's demos show that,
but,
将会改成驼峰命名!
@@ -19,24 +19,105 @@ interface ProgressProps { | |||
|
|||
interface ProgressState { | |||
isShowLogDrawer: boolean; | |||
isCalloutVisible?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why ?
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when experiment status is error
, hover to the status, will tooltip a modal.
isCalloutVisible
decide the modal's hidden | show
editTrialConcurrency = async (userInput: string): Promise<void> => { | ||
if (!userInput.match(/^[1-9]\d*$/)) { | ||
message.error('Please enter a positive integer!', 2); | ||
this.getMessageInfo('Please enter a positive integer!', 'error'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "get message info" is misleading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, will change to showMessageInfo
It's OK?
This PR‘s content:
office-fabric-ui
, deleteantd
dependencyaddColumn
modalimprovement
support items in next release: