Projects STRLCPY opencti Commits 5ea2e045
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/observations/indicators/IndicatorEditionOverview.js
    skipped 99 lines
    100 100   x_opencti_score: Yup.number().nullable(),
    101 101   description: Yup.string().nullable(),
    102 102   x_opencti_detection: Yup.boolean(),
    103  - x_mitre_platforms: Yup.array(),
    104  - indicator_types: Yup.array(),
     103 + x_mitre_platforms: Yup.array().nullable(),
     104 + indicator_types: Yup.array().nullable(),
    105 105   references: Yup.array().required(t('This field is required')),
    106 106   x_opencti_workflow_id: Yup.object(),
    107 107  });
    skipped 230 lines
    338 338   <SubscriptionFocus context={context} fieldName="name" />
    339 339   }
    340 340   />
     341 + <OpenVocabField
     342 + label={t('Indicator types')}
     343 + type="indicator-type-ov"
     344 + name="indicator_types"
     345 + onFocus={this.handleChangeFocus.bind(this)}
     346 + onChange={this.handleSubmitField.bind(this)}
     347 + containerStyle={fieldSpacingContainerStyle}
     348 + variant="edit"
     349 + multiple={true}
     350 + editContext={context}
     351 + />
    341 352   <ConfidenceField
    342 353   name="confidence"
    343 354   onFocus={this.handleChangeFocus.bind(this)}
    skipped 51 lines
    395 406   />
    396 407   ),
    397 408   }}
    398  - />
    399  - <OpenVocabField
    400  - label={t('Indicator types')}
    401  - type="indicator-type-ov"
    402  - name="indicator_types"
    403  - onFocus={this.handleChangeFocus.bind(this)}
    404  - onChange={this.handleSubmitField.bind(this)}
    405  - containerStyle={fieldSpacingContainerStyle}
    406  - variant="edit"
    407  - multiple={true}
    408  - editContext={context}
    409 409   />
    410 410   <Field
    411 411   component={SelectField}
    skipped 196 lines
  • ■ ■ ■ ■ ■
    opencti-platform/opencti-graphql/src/resolvers/indicator.js
    skipped 61 lines
    62 62   Indicator: {
    63 63   killChainPhases: (indicator, _, context) => killChainPhasesLoader.load(indicator.id, context, context.user),
    64 64   observables: (indicator, _, context) => batchObservablesLoader.load(indicator.id, context, context.user),
    65  - indicator_types: (indicator) => (indicator.indicator_types ? indicator.indicator_types : ['malicious-activity']),
    66 65   },
    67 66   Mutation: {
    68 67   indicatorEdit: (_, { id }, context) => ({
    skipped 13 lines
Please wait...
Page is in error, reload to recover