Skip to content

Commit

Permalink
Add related objects to the applied control detail view (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene authored Jan 3, 2025
2 parents df8b758 + f7477ea commit 4b59814
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/lib/utils/crud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,12 @@ export const URL_MODEL_MAP: ModelMap = {
{ field: 'evidences', urlModel: 'evidences' },
{ field: 'owner', urlModel: 'users' }
],
reverseForeignKeyFields: [{ field: 'applied_controls', urlModel: 'evidences' }],
reverseForeignKeyFields: [
{ field: 'applied_controls', urlModel: 'evidences' },
{ field: 'applied_controls', urlModel: 'requirement-assessments' },
{ field: 'applied_controls', urlModel: 'vulnerabilities' },
{ field: 'applied_controls', urlModel: 'stakeholders', endpointUrl: 'ebios-rm/stakeholders' }
],
selectFields: [
{ field: 'status' },
{ field: 'category' },
Expand Down

0 comments on commit 4b59814

Please sign in to comment.