Repository navigation
fix anchore reimport, sync reimport logic API<->UI, add unit tests - #3629
Merged
valentijnscholten merged 15 commits intoJan 15, 2021
Merged
valentijnscholten merged 15 commits into
valentijnscholten merged 15 commits into
Conversation
madchap
self-requested a review
January 15, 2021 08:56
Contributor
|
fyi @yilmi |
madchap
reviewed
Jan 15, 2021
| status.mitigated = False | ||
| status.last_modified = timezone.now() | ||
| status.save(push_to_jira=push_to_jira) | ||
| status.save() |
Contributor
There was a problem hiding this comment.
Always false anyways, so good to remove 👍
madchap
approved these changes
Jan 15, 2021
madchap
left a comment
Contributor
There was a problem hiding this comment.
Reviewed live with @valentijnscholten, looks good to me. Thanks.
damiencarol
approved these changes
Jan 15, 2021
Closed
1 of 4 tasks
9alexx3
pushed a commit
to 9alexx3/django-DefectDojo
that referenced
this pull request
Aug 12, 2026
…efectDojo#3629) * unit tests: test import/reimport also on UI * import/reimport: fix anchore matching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
for Anchore we fix this here, we may need a broader fix (and testcases)
or we may need to change the matching logic here to use the same logic
as the deduplication logic (hashcode fields)
I have refactored the existing 9 testscases to be run against the APIv2 and UI.
And added an extra testcase for anchore. In the first unit test run I did not yet include the fix described above and you can see the test failing. This test is using a real world anchore report: https://github.com/DefectDojo/django-DefectDojo/pull/3629/checks?check_run_id=1707458436#step:9:40351
I fixed some other things a long the way:
Question for a future PR: