Skip to content

Commit 6019c7b

Browse files
authored
Merge pull request #9142 from DefectDojo/release/2.29.2
Release: Merge release into master from: release/2.29.2
2 parents 24584a8 + aa91cca commit 6019c7b

6 files changed

Lines changed: 22 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cd django-DefectDojo
5555

5656
# Run the application (for other profiles besides postgres-redis see
5757
# https://github.com/DefectDojo/django-DefectDojo/blob/dev/readme-docs/DOCKER.md)
58-
./dc-up.sh postgres-redis
58+
./dc-up-d.sh postgres-redis
5959

6060
# Obtain admin credentials. The initializer can take up to 3 minutes to run.
6161
# Use docker compose logs -f initializer to track its progress.

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.29.1",
3+
"version": "2.29.2",
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
66

7-
__version__ = '2.29.1'
7+
__version__ = '2.29.2'
88
__url__ = 'https://github.com/DefectDojo/django-DefectDojo'
99
__docs__ = 'https://documentation.defectdojo.com'

dojo/filters.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,16 @@ def any(self, qs, name):
148148
return qs
149149

150150
def satisfies_sla(self, qs, name):
151-
non_sla_violations = [finding.id for finding in qs if not finding.violates_sla]
152-
return Finding.objects.filter(id__in=non_sla_violations)
151+
for finding in qs:
152+
if finding.violates_sla:
153+
qs = qs.exclude(id=finding.id)
154+
return qs
153155

154156
def violates_sla(self, qs, name):
155-
sla_violations = [finding.id for finding in qs if finding.violates_sla]
156-
return Finding.objects.filter(id__in=sla_violations)
157+
for finding in qs:
158+
if not finding.violates_sla:
159+
qs = qs.exclude(id=finding.id)
160+
return qs
157161

158162
options = {
159163
None: (_('Any'), any),
@@ -179,12 +183,16 @@ def any(self, qs, name):
179183
return qs
180184

181185
def satisfies_sla(self, qs, name):
182-
non_sla_violations = [product.id for product in qs if not product.violates_sla]
183-
return Product.objects.filter(id__in=non_sla_violations)
186+
for product in qs:
187+
if product.violates_sla:
188+
qs = qs.exclude(id=product.id)
189+
return qs
184190

185191
def violates_sla(self, qs, name):
186-
sla_violations = [product.id for product in qs if product.violates_sla]
187-
return Product.objects.filter(id__in=sla_violations)
192+
for product in qs:
193+
if not product.violates_sla:
194+
qs = qs.exclude(id=product.id)
195+
return qs
188196

189197
options = {
190198
None: (_('Any'), any),

helm/defectdojo/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: "2.29.1"
2+
appVersion: "2.29.2"
33
description: A Helm chart for Kubernetes to install DefectDojo
44
name: defectdojo
5-
version: 1.6.99
5+
version: 1.6.100
66
icon: https://www.defectdojo.org/img/favicon.ico
77
maintainers:
88
- name: madchap

readme-docs/DOCKER.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,7 @@ OpenSSL version: OpenSSL 1.0.1t 3 May 2016
418418

419419
In this case, both docker (version 17.09.0-ce) and docker-compose (1.18.0) need to be updated.
420420

421-
**NOTE** - Docker Compose version 2.19.0 and greater includes syntax restrictions that are not compatible with our compose files. As a temporary workaround while a more complete solution is determined, please do not update docker compose to a version greater than 2.18.1.
422-
423-
Follow [Dockers' documentation](https://docs.docker.com/install/) for your OS to get the latest version of Docker* (see above Note). For the docker command, most OSes have a built-in update mechanism like "apt upgrade".
421+
Follow [Docker's documentation](https://docs.docker.com/install/) for your OS to get the latest version of Docker. For the docker command, most OSes have a built-in update mechanism like "apt upgrade".
424422

425423
Docker Compose isn't packaged like Docker and you'll need to manually update an existing install if using Linux. For Linux, either follow the instructions in the [Docker Compose documentation](https://docs.docker.com/compose/install/) or use the shell script below. The script below will update docker-compose to the latest version automatically. You will need to make the script executable and have sudo privileges to upgrade docker-compose:
426424

0 commit comments

Comments
 (0)