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

Filtering Performance: Add opt-in setting for converting to string ba… #10038

Merged
merged 5 commits into from
Apr 26, 2024

Conversation

Maffooch
Copy link
Contributor

@Maffooch Maffooch commented Apr 26, 2024

Today, the finding filters will query all products type, products, engagements, and all tags for all items that can be tagged. When loading the all finding pages, this will end up querying a large portion of the database.

This PR adds an opt in setting in the system settings to convert these filter options to string fields in order to avoid making these queries when they are not specifically used

[sc-5650]

@Maffooch Maffooch added enhancement performance performance improvement or bug report labels Apr 26, 2024
@github-actions github-actions bot added New Migration Adding a new migration file. Take care when merging. docs ui labels Apr 26, 2024
Copy link

dryrunsecurity bot commented Apr 26, 2024

Hi there 👋, @DryRunSecurity here, below is a summary of our analysis and findings.

DryRun Security Status Findings
AppSec Analyzer 0 findings
Authn/Authz Analyzer 10 findings
Configured Codepaths Analyzer 0 findings
Secrets Analyzer 0 findings
Sensitive Files Analyzer 0 findings

Note

🟢 Risk threshold not exceeded.

Powered by DryRun Security

Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

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

Approved

@Maffooch Maffooch merged commit d1c07eb into DefectDojo:bugfix Apr 26, 2024
123 checks passed
@Maffooch Maffooch deleted the sims branch April 26, 2024 03:38
hblankenship pushed a commit to hblankenship/django-DefectDojo that referenced this pull request Apr 26, 2024
DefectDojo#10038)

* Filtering Performance: Add opt-in setting for converting to string based filters

* Fix ruff error

* Fix Flake8

* Update unit tests..

* Correct filter
Maffooch added a commit to Maffooch/django-DefectDojo that referenced this pull request Apr 28, 2024
Maffooch added a commit that referenced this pull request Apr 29, 2024
* String Based Filtering: Follow on for #10038

* Fix Flake8

* Update unittests

* Update unit tests again
mwager added a commit to mwager/django-DefectDojo that referenced this pull request Apr 30, 2024
… kiuwan-sca

* 'kiuwan-sca' of github.com:mwager/django-DefectDojo:
  Update versions in application files
  Product Metrics: Performance Enhancements (DefectDojo#10059)
  String Based Filtering: Follow on for DefectDojo#10038 (DefectDojo#10050)
  update semgrep tests (DefectDojo#10058)
  Jira Webhook: Reorg logging and responses (DefectDojo#10049)
  Similar Findings: Create Toggle (DefectDojo#10047)
  Bump social-auth-app-django from 5.4.0 to 5.4.1 (DefectDojo#10026)
  Update versions in application files
  Update versions in application files
  Updated DryRun Security config (DefectDojo#10037)
  Filtering Performance: Add opt-in setting for converting to string ba… (DefectDojo#10038)
  Updates to semgrep parser (DefectDojo#10033)
  Update versions in application files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs enhancement New Migration Adding a new migration file. Take care when merging. performance performance improvement or bug report ui unittests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants