-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 ApplicationAnalysisStatus is required for status #1359
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #1359 +/- ##
=======================================
Coverage 41.50% 41.50%
=======================================
Files 137 137
Lines 4281 4281
Branches 1027 1027
=======================================
Hits 1777 1777
Misses 2417 2417
Partials 87 87
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
<IconedStatus | ||
preset={application.review ? "Completed" : "NotStarted"} | ||
<ApplicationAnalysisStatus | ||
state={getTaskState(application)} |
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.
could do this and remove the getTaskState
state={getTaskState(application)} | |
state={ getTask(application)?.state || "No task" } |
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.
@gitdallas, much slicker !!!
const getTaskState = (application: Application) => { | ||
const task = getTask(application); | ||
if (task && task.state) return task.state; | ||
return "No task"; | ||
}; | ||
|
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.
should be able to remove this now
const getTaskState = (application: Application) => { | |
const task = getTask(application); | |
if (task && task.state) return task.state; | |
return "No task"; | |
}; |
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.
@gitdallas , I forgot to save the file ! Thanks
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
#1353 follow-up to fix broken display of analysis status.
ApplicationAnalysisStatus
must be used to display analysis state.IconedStatus
cannot be used here (or at least not yet) because analysis state mapping for tasks is specific.