Skip to content

Commit

Permalink
SLA Config: Add new config that does not enforce SLA
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch committed Oct 16, 2024
1 parent 6b79840 commit a068e97
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/entrypoint-initializer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
36 changes: 36 additions & 0 deletions dojo/fixtures/sla_configurations.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]

0 comments on commit a068e97

Please sign in to comment.