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

Add priority to action plan modeltables #1127

Merged
merged 4 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
23 changes: 3 additions & 20 deletions backend/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,7 @@ def export_csv(self, request):
"csf_function",
"status",
"eta",
"priority",
"owner",
]
writer.writerow(columns)
Expand All @@ -1028,6 +1029,7 @@ def export_csv(self, request):
control.csf_function,
control.status,
control.eta,
control.priority,
]
if len(control.owner.all()) > 0:
owners = ",".join([o.email for o in control.owner.all()])
Expand Down Expand Up @@ -1988,26 +1990,7 @@ def action_plan(self, request, pk):
)
)
applied_controls = [
{
"id": applied_control.id,
"name": applied_control.name,
"description": applied_control.description,
"status": applied_control.status,
"category": applied_control.category,
"csf_function": applied_control.csf_function,
"eta": applied_control.eta,
"expiry_date": applied_control.expiry_date,
"link": applied_control.link,
"effort": applied_control.effort,
"cost": applied_control.cost,
"owners": [
{
"id": owner.id,
"email": owner.email,
}
for owner in applied_control.owner.all()
],
}
AppliedControlReadSerializer(applied_control).data
for applied_control in AppliedControl.objects.filter(
requirement_assessments__in=requirement_assessments_objects
).distinct()
Expand Down
4 changes: 2 additions & 2 deletions backend/library/libraries/RNSI-Algerie-2020.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
urn: urn:intuitem:risk:library:RNSI-ALGERIE-2020
locale: fr
ref_id: RNSI-ALGERIE-2020
name: "R\xE9f\xE9rentiel National\nde S\xE9curit\xE9 de l\u2019Information Alg\xE9\
rie V2020 Par EKSEC.net"
name: "R\xE9f\xE9rentiel National de S\xE9curit\xE9 de l\u2019Information Alg\xE9\
rie V2020 Par EKSEC.net"
description: "\"EKSEC est fier de contribuer \xE0 la CISO Assistant Community et \xE0\
\ l\u2019Alg\xE9rie en int\xE9grant le R\xE9f\xE9rentiel National de S\xE9curit\xE9\
\ de l\u2019Information (RNSI) de l'Alg\xE9rie.\n\nLe R\xE9f\xE9rentiel National\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

const appliedControlsHead = {
name: 'name',
priority: 'priority',
category: 'category',
csf_function: 'csfFunction',
eta: 'eta',
Expand All @@ -23,6 +24,7 @@
};
const appliedControlsColums = [
'name',
'priority',
'category',
'csf_function',
'eta',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

const APPLIED_CONTROL_FIELDS = [
'name',
'priority',
'description',
'category',
'csf_function',
Expand Down
Loading