Skip to content

Commit

Permalink
feat: add attack-paths and stakeholders ebios-rm foreignKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Dec 9, 2024
1 parent 4c3eb2e commit 2c8128f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/lib/utils/crud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' }]
},
Expand All @@ -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' }
]
}
};
Expand Down

0 comments on commit 2c8128f

Please sign in to comment.