Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
de1ae178
"docs/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "fb18f0d4d1da46f23b501db176c3434b876dac4d"
Unverified
Commit
de1ae178
authored
Feb 17, 2020
by
Lijiao
Committed by
GitHub
Feb 17, 2020
Browse files
fix some bugs in v1.4 bug bash (#2066)
parent
b7045b19
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/webui/src/components/NavCon.tsx
src/webui/src/components/NavCon.tsx
+1
-1
src/webui/src/components/TrialsDetail.tsx
src/webui/src/components/TrialsDetail.tsx
+2
-2
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+3
-3
No files found.
src/webui/src/components/NavCon.tsx
View file @
de1ae178
...
@@ -172,7 +172,7 @@ class NavCon extends React.Component<NavProps, NavState> {
...
@@ -172,7 +172,7 @@ class NavCon extends React.Component<NavProps, NavState> {
/>
/>
<
CommandBarButton
<
CommandBarButton
iconProps
=
{
infoIconAbout
}
iconProps
=
{
infoIconAbout
}
text
=
"
a
bout"
text
=
"
A
bout"
menuProps
=
{
aboutProps
}
menuProps
=
{
aboutProps
}
/>
/>
</
Stack
>
</
Stack
>
...
...
src/webui/src/components/TrialsDetail.tsx
View file @
de1ae178
...
@@ -56,7 +56,7 @@ class TrialsDetail extends React.Component<TrialsDetailProps, TrialDetailState>
...
@@ -56,7 +56,7 @@ class TrialsDetail extends React.Component<TrialsDetailProps, TrialDetailState>
return
;
return
;
}
}
switch
(
this
.
state
.
searchType
)
{
switch
(
this
.
state
.
searchType
)
{
case
'
i
d
'
:
case
'
I
d
'
:
filter
=
(
trial
):
boolean
=>
trial
.
info
.
id
.
toUpperCase
().
includes
(
targetValue
.
toUpperCase
());
filter
=
(
trial
):
boolean
=>
trial
.
info
.
id
.
toUpperCase
().
includes
(
targetValue
.
toUpperCase
());
break
;
break
;
case
'
Trial No.
'
:
case
'
Trial No.
'
:
...
@@ -65,7 +65,7 @@ class TrialsDetail extends React.Component<TrialsDetailProps, TrialDetailState>
...
@@ -65,7 +65,7 @@ class TrialsDetail extends React.Component<TrialsDetailProps, TrialDetailState>
case
'
Status
'
:
case
'
Status
'
:
filter
=
(
trial
):
boolean
=>
trial
.
info
.
status
.
toUpperCase
().
includes
(
targetValue
.
toUpperCase
());
filter
=
(
trial
):
boolean
=>
trial
.
info
.
status
.
toUpperCase
().
includes
(
targetValue
.
toUpperCase
());
break
;
break
;
case
'
p
arameters
'
:
case
'
P
arameters
'
:
// TODO: support filters like `x: 2` (instead of `"x": 2`)
// TODO: support filters like `x: 2` (instead of `"x": 2`)
filter
=
(
trial
):
boolean
=>
JSON
.
stringify
(
trial
.
info
.
hyperParameters
,
null
,
4
).
includes
(
targetValue
);
filter
=
(
trial
):
boolean
=>
JSON
.
stringify
(
trial
.
info
.
hyperParameters
,
null
,
4
).
includes
(
targetValue
);
break
;
break
;
...
...
src/webui/src/components/trial-detail/TableList.tsx
View file @
de1ae178
...
@@ -128,7 +128,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -128,7 +128,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
name
:
'
Default metric
'
,
name
:
'
Default metric
'
,
className
:
'
leftTitle
'
,
className
:
'
leftTitle
'
,
key
:
'
accuracy
'
,
key
:
'
accuracy
'
,
fieldName
:
'
a
ccuracy
'
,
fieldName
:
'
latestA
ccuracy
'
,
minWidth
:
200
,
minWidth
:
200
,
maxWidth
:
300
,
maxWidth
:
300
,
isResizable
:
true
,
isResizable
:
true
,
...
@@ -534,8 +534,8 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -534,8 +534,8 @@ class TableList extends React.Component<TableListProps, TableListState> {
}
}
UNSAFE_componentWillReceiveProps
(
nextProps
:
TableListProps
):
void
{
UNSAFE_componentWillReceiveProps
(
nextProps
:
TableListProps
):
void
{
const
{
columnList
}
=
nextProps
;
const
{
columnList
,
tableSource
}
=
nextProps
;
this
.
setState
({
tableColumns
:
this
.
initTableColumnList
(
columnList
)
});
this
.
setState
({
tableSourceForSort
:
tableSource
,
tableColumns
:
this
.
initTableColumnList
(
columnList
)
});
}
}
render
():
React
.
ReactNode
{
render
():
React
.
ReactNode
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment