Skip to content

Commit

Permalink
Merge branch 'intuitem:main' into nzism-3-8
Browse files Browse the repository at this point in the history
  • Loading branch information
Coffee-007 authored Sep 17, 2024
2 parents ba1f837 + 773ddac commit 705c85b
Show file tree
Hide file tree
Showing 81 changed files with 7,892 additions and 939 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
]
}
}
10 changes: 8 additions & 2 deletions backend/app_tests/api/test_api_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ def test_import_frameworks(self, test):
"name": lib_detail_response["name"],
"description": lib_detail_response["description"],
"urn": lib_detail_response["urn"],
"folder": {"str": Folder.get_root_folder().name},
"folder": {
"id": str(Folder.get_root_folder().id),
"str": Folder.get_root_folder().name,
},
},
base_count=1,
user_group=test.user_group,
Expand Down Expand Up @@ -164,7 +167,10 @@ def test_import_risk_matrix(self, test):
"name": lib_detail_response["name"],
"description": lib_detail_response["description"],
"urn": lib_detail_response["urn"],
"folder": {"str": Folder.get_root_folder().name},
"folder": {
"id": str(Folder.get_root_folder().id),
"str": Folder.get_root_folder().name,
},
# 'json_definition': lib_detail_response # TODO: restore this test
},
base_count=1,
Expand Down
10 changes: 8 additions & 2 deletions backend/app_tests/api/test_api_reference_controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ def test_get_reference_controls(self, test):
"is_published": True,
},
{
"folder": {"str": Folder.get_root_folder().name},
"folder": {
"id": str(Folder.get_root_folder().id),
"str": Folder.get_root_folder().name,
},
},
user_group=test.user_group,
scope="Global",
Expand Down Expand Up @@ -157,7 +160,10 @@ def test_update_reference_control_with_urn(self, test):
"provider": "new " + REFERENCE_CONTROL_PROVIDER,
},
{
"folder": {"str": Folder.get_root_folder().name},
"folder": {
"id": str(Folder.get_root_folder().id),
"str": Folder.get_root_folder().name,
},
},
user_group=test.user_group,
scope="Global",
Expand Down
5 changes: 4 additions & 1 deletion backend/app_tests/api/test_api_threats.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ def test_get_threats(self, test):
"is_published": True,
},
{
"folder": {"str": Folder.get_root_folder().name},
"folder": {
"id": str(Folder.get_root_folder().id),
"str": Folder.get_root_folder().name,
},
},
user_group=test.user_group,
scope="Global",
Expand Down
1 change: 1 addition & 0 deletions backend/ciso_assistant/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def set_ciso_assistant_url(_, __, event_dict):
"tailwind",
"iam",
"global_settings",
"tprm",
"core",
"cal",
"django_filters",
Expand Down
2 changes: 2 additions & 0 deletions backend/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

from typing import List, Dict, Optional

import json

from django.core.exceptions import NON_FIELD_ERRORS as DJ_NON_FIELD_ERRORS
from django.core.exceptions import ValidationError as DjValidationError
from rest_framework.exceptions import ValidationError as DRFValidationError
Expand Down
Binary file modified backend/core/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 705c85b

Please sign in to comment.