From 9b6baec73b7c8fc931e8d9deae178b0725a87795 Mon Sep 17 00:00:00 2001 From: FlorianDelemarre Date: Tue, 7 Jan 2025 17:03:13 +0100 Subject: [PATCH] [frontend] refactor: use representative main (#9521) --- .../ContainerAddStixCoreObjectsLine.jsx | 155 +----------------- 1 file changed, 3 insertions(+), 152 deletions(-) diff --git a/opencti-platform/opencti-front/src/private/components/common/containers/ContainerAddStixCoreObjectsLine.jsx b/opencti-platform/opencti-front/src/private/components/common/containers/ContainerAddStixCoreObjectsLine.jsx index d55a0e6adb4f7..5184a71450e30 100644 --- a/opencti-platform/opencti-front/src/private/components/common/containers/ContainerAddStixCoreObjectsLine.jsx +++ b/opencti-platform/opencti-front/src/private/components/common/containers/ContainerAddStixCoreObjectsLine.jsx @@ -122,160 +122,11 @@ export const ContainerAddStixCoreObjectsLine = createFragmentContainer( standard_id parent_types entity_type - created_at - ... on AttackPattern { - name - description - aliases - x_mitre_id - } - ... on Campaign { - name - description - aliases - } - ... on Note { - attribute_abstract - content - } - ... on ObservedData { - name - first_observed - last_observed - } - ... on Opinion { - opinion - explanation - } - ... on Report { - name - description - } - ... on Grouping { - name - description - } - ... on CourseOfAction { - name - description - x_opencti_aliases - x_mitre_id - } - ... on Individual { - name - description - x_opencti_aliases - } - ... on Organization { - name - description - x_opencti_aliases - } - ... on Sector { - name - description - x_opencti_aliases - } - ... on System { - name - description - x_opencti_aliases - } - ... on Indicator { - name - description - } - ... on Infrastructure { - name - description - } - ... on IntrusionSet { - name - aliases - description - } - ... on Position { - name - description - x_opencti_aliases - } - ... on City { - name - description - x_opencti_aliases - } - ... on AdministrativeArea { - name - description - x_opencti_aliases - } - ... on Country { - name - description - x_opencti_aliases - } - ... on Region { - name - description - x_opencti_aliases - } - ... on Malware { - name - aliases - description - } - ... on MalwareAnalysis { - result_name - } - ... on ThreatActor { - name - aliases - description - } - ... on Tool { - name - aliases - description - } - ... on Vulnerability { - name - description - } - ... on Incident { - name - aliases - description - } - ... on Event { - name - description - aliases - } - ... on Channel { - name - description - aliases - } - ... on Narrative { - name - description - aliases - } - ... on Language { - name - aliases - } - ... on DataComponent { - name - } - ... on DataSource { - name - } - ... on Case { - name + representative { + main } + created_at ... on StixCyberObservable { - observable_value ... on StixFile { hashes { algorithm