Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLA Config: Add new config that does not enforce SLA #11086

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
blakeaowens marked this conversation as resolved.
Show resolved Hide resolved
"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
}
}
]
Loading