Projects STRLCPY opencti Commits e8928019
🤬
  • [api/front] Handle more hidden menus / deepscan unused variable issue

  • Loading...
  • Julien Richard committed 2 years ago
    e8928019
    1 parent 4be3c321
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    opencti-platform/opencti-front/src/private/components/entities/Root.js
    skipped 35 lines
    36 36   redirect = 'cities';
    37 37   } else if (!helper.isEntityTypeHidden('Position')) {
    38 38   redirect = 'positions';
     39 + } else if (!helper.isEntityTypeHidden('Event')) {
     40 + redirect = 'events';
     41 + } else if (!helper.isEntityTypeHidden('Organization')) {
     42 + redirect = 'organizations';
     43 + } else if (!helper.isEntityTypeHidden('System')) {
     44 + redirect = 'systems';
    39 45   }
    40 46   return (
    41 47   <Switch>
    skipped 103 lines
  • ■ ■ ■ ■ ■ ■
    opencti-platform/opencti-graphql/src/manager/taskManager.js
    skipped 238 lines
    239 239   await askElementEnrichmentForConnector(user, element.internal_id, connector.internal_id);
    240 240   }, { concurrency: ES_MAX_CONCURRENCY });
    241 241  };
    242  -const executePromote = async (user, context, element) => {
     242 +const executePromote = async (user, element) => {
    243 243   // If indicator, promote to observable
    244 244   if (element.entity_type === ENTITY_TYPE_INDICATOR) {
    245 245   await promoteIndicatorToObservable(user, element.internal_id);
    skipped 68 lines
    314 314   await executeMerge(user, context, element);
    315 315   }
    316 316   if (type === ACTION_TYPE_PROMOTE) {
    317  - await executePromote(user, context, element);
     317 + await executePromote(user, element);
    318 318   }
    319 319   if (type === ACTION_TYPE_ENRICHMENT) {
    320 320   await executeEnrichment(user, context, element);
    skipped 99 lines
Please wait...
Page is in error, reload to recover