Skip to content
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

Merged
merged 3 commits into from
Sep 15, 2023
Merged

🐛 ApplicationAnalysisStatus is required for status #1359

merged 3 commits into from
Sep 15, 2023

Conversation

gildub
Copy link
Contributor

@gildub gildub commented Sep 14, 2023

#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.

@gildub gildub self-assigned this Sep 14, 2023
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (88ae668) 41.50% compared to head (8e627b5) 41.50%.

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           
Flag Coverage Δ
client 41.50% <ø> (ø)
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

<IconedStatus
preset={application.review ? "Completed" : "NotStarted"}
<ApplicationAnalysisStatus
state={getTaskState(application)}
Copy link
Collaborator

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

Suggested change
state={getTaskState(application)}
state={ getTask(application)?.state || "No task" }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gitdallas, much slicker !!!

Comment on lines 457 to 462
const getTaskState = (application: Application) => {
const task = getTask(application);
if (task && task.state) return task.state;
return "No task";
};

Copy link
Collaborator

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

Suggested change
const getTaskState = (application: Application) => {
const task = getTask(application);
if (task && task.state) return task.state;
return "No task";
};

Copy link
Contributor Author

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants