Skip to content

Resolves #380: Added severity in the view at http://127.0.0.1:8000/vulnerabilities/<vulnerability_id> - #385

Closed
Pushpit07 wants to merge 18 commits into
aboutcode-org:mainfrom
Pushpit07:main
Closed

Resolves #380: Added severity in the view at http://127.0.0.1:8000/vulnerabilities/<vulnerability_id>#385
Pushpit07 wants to merge 18 commits into
aboutcode-org:mainfrom
Pushpit07:main

Conversation

@Pushpit07

Copy link
Copy Markdown
Contributor

Added severity in the view at http://127.0.0.1:8000/vulnerabilities/<vulnerability_id> by adding the severity to the context sent by the view and referencing it in the html page

@sbs2001

sbs2001 commented Mar 18, 2021

Copy link
Copy Markdown
Collaborator

Could you post a screenshot/video/gif ?

@Pushpit07

Copy link
Copy Markdown
Contributor Author

Could you post a screenshot/video/gif ?

Screenshot 2021-03-18 at 12 42 55

@sbs2001

sbs2001 commented Mar 18, 2021

Copy link
Copy Markdown
Collaborator

I've commented in #380, we want both fields of the severity.

Also add signoff to your commits to pass the dco check

Pushpit07 and others added 6 commits March 18, 2021 15:51
BeautifulSoup would generate warnings without an explicit parser which
shows up in the test results as well.
It is always better to look at clean test results than one filled with
unnecessary warnings.

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
The earlier location http://127.0.0.1:8000/api/docs was a 404. As the
urls.py suggests, the README now reflects http://127.0.0.1:8000/api/schema/swagger-ui/

After the first install, activating the venv is done prior to installing
pytest, thus the system default pytest is being called. It is either
required to reactive venv or run pytest via python -m.

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
Here is the entire conversation: aboutcode-org#379

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
As mentioned in the previous version of README.rst, the docs should be
at /api/docs.

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
@Pushpit07

Copy link
Copy Markdown
Contributor Author

Done!

Screenshot 2021-03-18 at 15 22 31

Screenshot 2021-03-18 at 15 22 14

@sbs2001

sbs2001 commented Mar 18, 2021

Copy link
Copy Markdown
Collaborator

@Pushpit07 could you rebase this properly ? Also a reference can contain multiple severities, I'm wondering how that would look like on the UI side ? Ideas appreciated there :)

@Pushpit07

Copy link
Copy Markdown
Contributor Author

Seems like the severities aren't being returned as a list of values. There's only one value being returned. That's why when I tried to loop over the severities, it separated the characters instead of the words

Screenshot 2021-03-19 at 08 35 33

Screenshot 2021-03-19 at 08 35 41

@Pushpit07

Pushpit07 commented Mar 19, 2021

Copy link
Copy Markdown
Contributor Author

I tried to loop over a list to debug and in that case the output was as expected. So maybe there's only a single value being returned from severity

Screenshot 2021-03-19 at 08 25 47

Pushpit07 and others added 11 commits March 19, 2021 09:08
Signed-off-by: Pushpit <pushpit07@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
The earlier location http://127.0.0.1:8000/api/docs was a 404. As the
urls.py suggests, the README now reflects http://127.0.0.1:8000/api/schema/swagger-ui/

After the first install, activating the venv is done prior to installing
pytest, thus the system default pytest is being called. It is either
required to reactive venv or run pytest via python -m.

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
Here is the entire conversation: aboutcode-org#379

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
As mentioned in the previous version of README.rst, the docs should be
at /api/docs.

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
BeautifulSoup would generate warnings without an explicit parser which
shows up in the test results as well.
It is always better to look at clean test results than one filled with
unnecessary warnings.

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Pushpit <pushpit07@gmail.com>
@Pushpit07

Copy link
Copy Markdown
Contributor Author

Rebased it properly. I've made changes to 2 files only

@Pushpit07

Copy link
Copy Markdown
Contributor Author

Also, I messed up the process a little this time. Sorry for that. Won't happen in the future

@sbs2001

sbs2001 commented Mar 19, 2021

Copy link
Copy Markdown
Collaborator

@Pushpit07 the rebase is messed up, I'm seeing 18 commits now. You could open a new PR on branch created off from latest main

Regarding #385 (comment)

you could run the nvd importer to get some real examples of multiple severity scores.
I don't understand what you are trying to convey in the screenshot ? Does the reference have 3 severity systems called good, better, best ? If yes, then they will three distinct values

@Pushpit07 Pushpit07 closed this Mar 19, 2021
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.

3 participants