Skip to content

Commit

Permalink
Remove duplicate entries
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 10, 2024
1 parent e9acb6f commit be2f9ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
18 changes: 0 additions & 18 deletions frontend/src/lib/utils/crud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,24 +673,6 @@ export const URL_MODEL_MAP: ModelMap = {
{ field: 'folder', urlModel: 'folders', urlParams: 'content_type=DO' }
]
},
'ro-to': {
endpointUrl: 'ebios-rm/ro-to',
name: 'roto',
localName: 'roto',
localNamePlural: 'roto',
verboseName: 'Ro to',
verboseNamePlural: 'Ro to',
foreignKeyFields: [
{ field: 'ebios_rm_study', urlModel: 'ebios-rm' },
{ field: 'feared_events', urlModel: 'feared-events' }
],
selectFields: [
{ field: 'risk-origin' },
{ field: 'motivation' },
{ field: 'resources' },
{ field: 'pertinence' }
]
},
attack_paths: {
endpointUrl: 'ebios-rm/attack-paths',
name: 'attackpath',
Expand Down
10 changes: 0 additions & 10 deletions frontend/src/lib/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,6 @@ export const operationalScenarioSchema = z.object({
justification: z.string().optional()
});

export const operationalScenarioSchema = z.object({
ebios_rm_study: z.string(),
attack_paths: z.string().uuid().array(),
threats: z.string().uuid().optional().array(),
description: z.string(),
likelihood: z.number().optional().default(-1),
is_selected: z.boolean().optional().default(false),
justification: z.string().optional()
});

const SCHEMA_MAP: Record<string, AnyZodObject> = {
folders: FolderSchema,
projects: ProjectSchema,
Expand Down

0 comments on commit be2f9ee

Please sign in to comment.