diff --git a/docs/content/metrics_reports/dashboards/Introduction_dashboard.md b/docs/content/metrics_reports/dashboards/Introduction_dashboard.md index 3599392f46a..927d27de0e4 100644 --- a/docs/content/metrics_reports/dashboards/Introduction_dashboard.md +++ b/docs/content/metrics_reports/dashboards/Introduction_dashboard.md @@ -62,7 +62,7 @@ Select **Reset Dashboard Configuration** from the same menu to restore defaults. * **Customizable Dashboard Tiles**, which you can use to visualize the metrics which are relevant to you. * **Pre\-built Dashboard Charts**, which visualize your team’s overall performance. -Each team member shares a single dashboard, but the results of the dashboard are restricted by their role and Product Membership. Team members will only see calculated stats for the Products, Engagements, Findings or other objects that they have access to. For more information, see our guides on [User Permissions and Roles](https://docs.defectdojo.com/en/user_management/about-permissions--roles/). +Each team member shares a single dashboard, but the results of the dashboard are restricted by their role and Product Membership. Team members will only see calculated stats for the Products, Engagements, Findings or other objects that they have access to. For more information, see our guides on [User Permissions and Roles](/admin/user_management/about_perms_and_roles). ### Dashboard Tiles @@ -78,7 +78,7 @@ Tiles can: Tiles are pinned to the top section of your **🏠 Home** page. -To learn how to add and use dashboard tiles, see our [guide](../about_custom_dashboard_tiles). +To learn how to add and use dashboard tiles, see our [guide](/metrics_reports/dashboards/about_custom_dashboard_tiles). ### Dashboard Charts @@ -90,7 +90,7 @@ Located beneath Dashboard Tiles, DefectDojo has five pre\-built charts: * **Top 10 Graded Products** table * **Bottom 10 Graded Products** table -These charts can be added or removed from the dashboard via **[Dashboard Configuration](https://docs.defectdojo.com/en/dashboard/how-to-edit-dashboard-configuration/)**. +These charts can be added or removed from the dashboard via **Dashboard Configuration**. #### Historical Finding Severity diff --git a/dojo/models.py b/dojo/models.py index 153177bc20e..8cff7092ef6 100644 --- a/dojo/models.py +++ b/dojo/models.py @@ -1799,14 +1799,11 @@ def __hash__(self): def __eq__(self, other): if isinstance(other, Endpoint): - # Check if the contents of the endpoint match contents_match = str(self) == str(other) - # Determine if products should be used in the equation - if self.product is not None and other.product is not None: - # Check if the products are the same - products_match = (self.product) == other.product - # Check if the contents match - return products_match and contents_match + # Use product_id (cached integer) instead of self.product to avoid + # triggering a FK lookup on every comparison inside NestedObjects.add_edge. + if self.product_id is not None and other.product_id is not None: + return self.product_id == other.product_id and contents_match return contents_match return NotImplemented diff --git a/helm/defectdojo/Chart.yaml b/helm/defectdojo/Chart.yaml index 070292081ea..4d33cfcd45e 100644 --- a/helm/defectdojo/Chart.yaml +++ b/helm/defectdojo/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "2.59.0-dev" description: A Helm chart for Kubernetes to install DefectDojo name: defectdojo -version: 1.9.26-dev +version: 1.9.27-dev icon: https://defectdojo.com/hubfs/DefectDojo_favicon.png maintainers: - name: madchap diff --git a/helm/defectdojo/README.md b/helm/defectdojo/README.md index b6ffc0491b4..fa00a45482b 100644 --- a/helm/defectdojo/README.md +++ b/helm/defectdojo/README.md @@ -511,7 +511,7 @@ The HELM schema will be generated for you. # General information about chart values -![Version: 1.9.26-dev](https://img.shields.io/badge/Version-1.9.26--dev-informational?style=flat-square) ![AppVersion: 2.59.0-dev](https://img.shields.io/badge/AppVersion-2.59.0--dev-informational?style=flat-square) +![Version: 1.9.27-dev](https://img.shields.io/badge/Version-1.9.27--dev-informational?style=flat-square) ![AppVersion: 2.59.0-dev](https://img.shields.io/badge/AppVersion-2.59.0--dev-informational?style=flat-square) A Helm chart for Kubernetes to install DefectDojo