Skip to content

Commit c0c56c8

Browse files
authored
Merge pull request #13910 from DefectDojo/release/2.53.3
Release: Merge release into master from: release/2.53.3
2 parents 034cb85 + ee8c3c1 commit c0c56c8

5 files changed

Lines changed: 25 additions & 29 deletions

File tree

components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "defectdojo",
3-
"version": "2.53.2",
3+
"version": "2.53.3",
44
"license" : "BSD-3-Clause",
55
"private": true,
66
"dependencies": {

dojo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# Django starts so that shared_task will use this app.
55
from .celery import app as celery_app # noqa: F401
66

7-
__version__ = "2.53.2"
7+
__version__ = "2.53.3"
88
__url__ = "https://github.com/DefectDojo/django-DefectDojo"
99
__docs__ = "https://documentation.defectdojo.com"

dojo/utils.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,20 +1987,20 @@ class async_delete:
19871987
def __init__(self, *args, **kwargs):
19881988
self.mapping = {
19891989
"Product_Type": [
1990-
(Endpoint, "product__prod_type"),
1991-
(Finding, "test__engagement__product__prod_type"),
1992-
(Test, "engagement__product__prod_type"),
1993-
(Engagement, "product__prod_type"),
1994-
(Product, "prod_type")],
1990+
(Endpoint, "product__prod_type__id"),
1991+
(Finding, "test__engagement__product__prod_type__id"),
1992+
(Test, "engagement__product__prod_type__id"),
1993+
(Engagement, "product__prod_type__id"),
1994+
(Product, "prod_type__id")],
19951995
"Product": [
1996-
(Endpoint, "product"),
1997-
(Finding, "test__engagement__product"),
1998-
(Test, "engagement__product"),
1999-
(Engagement, "product")],
1996+
(Endpoint, "product__id"),
1997+
(Finding, "test__engagement__product__id"),
1998+
(Test, "engagement__product__id"),
1999+
(Engagement, "product__id")],
20002000
"Engagement": [
2001-
(Finding, "test__engagement"),
2002-
(Test, "engagement")],
2003-
"Test": [(Finding, "test")],
2001+
(Finding, "test__engagement__id"),
2002+
(Test, "engagement__id")],
2003+
"Test": [(Finding, "test__id")],
20042004
}
20052005

20062006
@dojo_async_task
@@ -2069,11 +2069,11 @@ def delete(self, obj, **kwargs):
20692069
@app.task
20702070
def crawl(self, obj, model_list, **kwargs):
20712071
logger.debug("ASYNC_DELETE: Crawling " + self.get_object_name(obj) + ": " + str(obj))
2072-
task_results = []
20732072
for model_info in model_list:
2073+
task_results = []
20742074
model = model_info[0]
20752075
model_query = model_info[1]
2076-
filter_dict = {model_query: obj}
2076+
filter_dict = {model_query: obj.id}
20772077
# Only fetch the IDs since we will make a list of IDs in the following function call
20782078
objects_to_delete = model.objects.only("id").filter(**filter_dict).distinct().order_by("id")
20792079
logger.debug("ASYNC_DELETE: Deleting " + str(len(objects_to_delete)) + " " + self.get_object_name(model) + "s in chunks")
@@ -2087,11 +2087,11 @@ def crawl(self, obj, model_list, **kwargs):
20872087
# Wait for all chunk deletions to complete (they run in parallel)
20882088
for task_result in task_results:
20892089
task_result.get(timeout=300) # 5 minute timeout per chunk
2090-
# Now delete the main object after all chunks are done
2091-
result = self.delete_chunk([obj])
2092-
# Wait for final deletion to complete
2093-
if hasattr(result, "get"):
2094-
result.get(timeout=300) # 5 minute timeout
2090+
# Now delete the main object after all chunks are done
2091+
result = self.delete_chunk([obj])
2092+
# Wait for final deletion to complete
2093+
if hasattr(result, "get"):
2094+
result.get(timeout=300) # 5 minute timeout
20952095
logger.debug("ASYNC_DELETE: Successfully deleted " + self.get_object_name(obj) + ": " + str(obj))
20962096

20972097
def chunk_list(self, model, full_list):

helm/defectdojo/Chart.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: "2.53.2"
2+
appVersion: "2.53.3"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
5-
version: 1.9.2
5+
version: 1.9.3
66
icon: https://defectdojo.com/hubfs/DefectDojo_favicon.png
77
maintainers:
88
- name: madchap
@@ -34,8 +34,4 @@ dependencies:
3434
# description: Critical bug
3535
annotations:
3636
artifacthub.io/prerelease: "false"
37-
artifacthub.io/changes: |
38-
- kind: fixed
39-
description: Use non-tilde notation of versions in subcharts
40-
- kind: changed
41-
description: Bump DefectDojo to 2.53.2
37+
artifacthub.io/changes: "- kind: changed\n description: Bump DefectDojo to 2.53.3\n"

helm/defectdojo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ The HELM schema will be generated for you.
511511
512512
# General information about chart values
513513
514-
![Version: 1.9.2](https://img.shields.io/badge/Version-1.9.2-informational?style=flat-square) ![AppVersion: 2.53.2](https://img.shields.io/badge/AppVersion-2.53.2-informational?style=flat-square)
514+
![Version: 1.9.3](https://img.shields.io/badge/Version-1.9.3-informational?style=flat-square) ![AppVersion: 2.53.3](https://img.shields.io/badge/AppVersion-2.53.3-informational?style=flat-square)
515515
516516
A Helm chart for Kubernetes to install DefectDojo
517517

0 commit comments

Comments
 (0)