Skip to content

Commit

Permalink
retrieve right description from tags (G-Research#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiovincenzi authored Jun 10, 2024
1 parent 71b8966 commit b937ff7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/src/services/models/runs/runDetailAppModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function getExperimentsData() {
}

function getRunInfo(runHash: string): IApiRequest<void> {
const DESCRIPTION_TAG = 'mlflow.note.content';
if (getRunsInfoRequestRef) {
getRunsInfoRequestRef.abort();
}
Expand All @@ -74,6 +75,10 @@ function getRunInfo(runHash: string): IApiRequest<void> {
const data = await getRunsInfoRequestRef.call((detail: any) => {
exceptionHandler({ detail, model });
});
data.props.description =
DESCRIPTION_TAG in data.params.tags
? data.params.tags[DESCRIPTION_TAG]
: '';
model.setState({
runParams: data.params,
runTraces: data.traces,
Expand Down Expand Up @@ -332,7 +337,7 @@ function editRunNameAndDescription(
description,
},
});
if (res.id) {
if (res.ID) {
onNotificationAdd({
id: Date.now(),
severity: 'success',
Expand Down

0 comments on commit b937ff7

Please sign in to comment.