From a068e97a0da49f1821cd7e3909d119fce8bafbbf Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:56:12 -0500 Subject: [PATCH 1/2] SLA Config: Add new config that does not enforce SLA --- docker/entrypoint-initializer.sh | 2 +- dojo/fixtures/sla_configurations.json | 36 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 dojo/fixtures/sla_configurations.json diff --git a/docker/entrypoint-initializer.sh b/docker/entrypoint-initializer.sh index c6f86970d89..08e77dc46ca 100755 --- a/docker/entrypoint-initializer.sh +++ b/docker/entrypoint-initializer.sh @@ -154,7 +154,7 @@ EOD echo "Importing fixtures all at once" python3 manage.py loaddata system_settings initial_banner_conf product_type test_type \ development_environment benchmark_type benchmark_category benchmark_requirement \ - language_type objects_review regulation initial_surveys role + language_type objects_review regulation initial_surveys role sla_configurations echo "UPDATE dojo_system_settings SET jira_webhook_secret='$DD_JIRA_WEBHOOK_SECRET'" | python manage.py dbshell diff --git a/dojo/fixtures/sla_configurations.json b/dojo/fixtures/sla_configurations.json new file mode 100644 index 00000000000..7cf92520425 --- /dev/null +++ b/dojo/fixtures/sla_configurations.json @@ -0,0 +1,36 @@ +[ + { + "model": "dojo.sla_configuration", + "pk": 1, + "fields": { + "name": "Default", + "description": "The Default SLA Configuration. Products not using an explicit SLA Configuration will use this one.", + "critical": 7, + "enforce_critical": true, + "high": 30, + "enforce_high": true, + "medium": 90, + "enforce_medium": true, + "low": 120, + "enforce_low": true, + "async_updating": false + } + }, + { + "model": "dojo.sla_configuration", + "pk": 100, + "fields": { + "name": "No SLA Enforced", + "description": "No SLA is enforced for a product which uses this SLA configuration.", + "critical": 7, + "enforce_critical": false, + "high": 30, + "enforce_high": false, + "medium": 90, + "enforce_medium": false, + "low": 120, + "enforce_low": false, + "async_updating": false + } + } +] \ No newline at end of file From 4806a82487fc45cfab4d72701579da915c0d3413 Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:32:18 -0500 Subject: [PATCH 2/2] Update sla_configurations.json --- dojo/fixtures/sla_configurations.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dojo/fixtures/sla_configurations.json b/dojo/fixtures/sla_configurations.json index 7cf92520425..f90d022581d 100644 --- a/dojo/fixtures/sla_configurations.json +++ b/dojo/fixtures/sla_configurations.json @@ -18,7 +18,6 @@ }, { "model": "dojo.sla_configuration", - "pk": 100, "fields": { "name": "No SLA Enforced", "description": "No SLA is enforced for a product which uses this SLA configuration.", @@ -33,4 +32,4 @@ "async_updating": false } } -] \ No newline at end of file +]