From 2c8128f38bdd828dd96c8fb5b903746cb3b50842 Mon Sep 17 00:00:00 2001 From: Mohamed-Hacene Date: Mon, 9 Dec 2024 20:51:39 +0100 Subject: [PATCH] feat: add attack-paths and stakeholders ebios-rm foreignKey --- frontend/src/lib/utils/crud.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/utils/crud.ts b/frontend/src/lib/utils/crud.ts index 11f6d7af1a..3496bd1ea8 100644 --- a/frontend/src/lib/utils/crud.ts +++ b/frontend/src/lib/utils/crud.ts @@ -652,7 +652,8 @@ export const URL_MODEL_MAP: ModelMap = { verboseNamePlural: 'Stakeholders', foreignKeyFields: [ { field: 'entity', urlModel: 'entities' }, - { field: 'applied_controls', urlModel: 'applied-controls' } + { field: 'applied_controls', urlModel: 'applied-controls' }, + { field: 'ebios_rm_study', urlModel: 'ebios-rm' } ], selectFields: [{ field: 'category' }] }, @@ -665,7 +666,8 @@ export const URL_MODEL_MAP: ModelMap = { verboseNamePlural: 'Attack paths', foreignKeyFields: [ { field: 'stakeholders', urlModel: 'stakeholders', endpointUrl: 'ebios-rm/stakeholders' }, - { field: 'ro_to_couple', urlModel: 'ro-to', endpointUrl: 'ebios-rm/ro-to' } + { field: 'ro_to_couple', urlModel: 'ro-to', endpointUrl: 'ebios-rm/ro-to' }, + { field: 'ebios_rm_study', urlModel: 'ebios-rm' } ] } };