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

Remove deprecated fields of Findings #5261

Merged
merged 5 commits into from
Oct 12, 2021

Conversation

StefanFl
Copy link
Contributor

@StefanFl StefanFl commented Oct 9, 2021

line_number, sourcefile and sourcefilepath are redundant fields and are only written by 3 parsers (Fortify, GitLab SAST and Veracode). These 3 parsers write line and file_path as well, so the redundant fields can be removed without migration of data.

is_template is a remains of the time before Finding_Template was implemented in 2015. It could be set when adding or editing a finding, then a template is saved additionally to the actual findingand the flag is set to False. The same can be achieved with the action menu while viewing a finding or from the findings list, so is_template can be removed without data migration as well.

@github-actions github-actions bot added New Migration Adding a new migration file. Take care when merging. unittests labels Oct 9, 2021
@damiencarol damiencarol merged commit 8704e25 into DefectDojo:dev Oct 12, 2021
@StefanFl StefanFl deleted the finding_deprecated_fields branch October 22, 2021 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance New Migration Adding a new migration file. Take care when merging. unittests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants