Skip to content

Commit

Permalink
Merge branch 'develop-2.0.0-beta' of https://github.com/FederatedAI/F…
Browse files Browse the repository at this point in the history
…ATE-Board into develop-2.0.0-beta
  • Loading branch information
wmqwxb committed Aug 16, 2023
2 parents b5955aa + 2e7ee4d commit d02e68b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
31 changes: 17 additions & 14 deletions resources-front-end/src/views/job-dashboard/board/Board.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,23 @@ const ascending = (a, b) => {
const getDatasetFromSummary = obj => {
const { roles, dataset } = obj
const result = Object.keys(roles).map(role => {
const options = roles[role].map(item => ({ value: item, label: item }))
return {
role: role.toUpperCase(),
options,
roleValue: options[0].label,
datasetData: dataset[role] || ''
}
})
result.sort((a, b) => {
return ascending(ROLE_ORDER_MAP[a.role], ROLE_ORDER_MAP[b.role])
})
return result
if (obj && roles && dataset) {
const result = Object.keys(roles).map(role => {
const options = roles[role].map(item => ({ value: item, label: item }))
return {
role: role.toUpperCase(),
options,
roleValue: options[0].label,
datasetData: dataset[role] || ''
}
})
result.sort((a, b) => {
return ascending(ROLE_ORDER_MAP[a.role], ROLE_ORDER_MAP[b.role])
})
return result
} else {
return []
}
}
export default {
Expand Down
2 changes: 2 additions & 0 deletions resources-front-end/src/views/job-dashboard/log/Logs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ export default {
created() {
this.getInstanceIdFromFlow().then(() => {
this.initLogSocket()
}).catch(() => {
this.initLogSocket()
})
},
beforeDestroy() {
Expand Down

0 comments on commit d02e68b

Please sign in to comment.