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

broken scans shown as completed in the UI #230

Open
marcorosa opened this issue Apr 12, 2022 · 4 comments · May be fixed by #330
Open

broken scans shown as completed in the UI #230

marcorosa opened this issue Apr 12, 2022 · 4 comments · May be fixed by #330
Labels
UI/UX improvement Request to improve the UI/UX

Comments

@marcorosa
Copy link
Member

If a scan raises an error (either in the scanner, or models, or db), the discoveries are not inserted in the db, but the UI shows the scan as completed with 0 discoveries.

We should not show them as completed but as broken/error (and maybe with color-code red, not green neither yellow)

@marcorosa marcorosa added the UI/UX improvement Request to improve the UI/UX label Apr 12, 2022
@wassafshahzad
Copy link

I would like to work on this

@marcorosa
Copy link
Member Author

sure, thanks

@wassafshahzad
Copy link

@marcorosa I did some RnD on this issue and my findings are as follows.
This error can occur in multiple cases but the case most severe in our scenario is, if the repo is inserted into the db and the discoveries are not. In that particular case, The get_repo api will succeed in getting the repos but their discoveries will be 0.
In all other cases as long as the repo is not inserted in the db the get_repo apis return will fix the UI.

In our scenario, we need to save the state of the repository in the db or we can consider repos with default values for following attributes as failed and update the UI accordingly
{ "FP": 0, "TP": 0, "addressing": 0, "fixed": 0, "not_relevant": 0, "total": 0, }

@wassafshahzad
Copy link

@marcorosa Just need your go ahead before implementing

@wassafshahzad wassafshahzad linked a pull request Oct 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI/UX improvement Request to improve the UI/UX
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants