opencti icon indicating copy to clipboard operation
opencti copied to clipboard

[backend] add askAnalysis mutation to request file or fields analysis (#6803)

Open JeremyCloarec opened this issue 1 year ago • 1 comments

Proposed changes

  • add askAnalysis mutation in stixCoreObjectEdit
  • add new INTERNAL_ANALYSIS connector type
  • askAnalysis request creates a work and send a message to the first INTERNAL_ANALYSIS connector available
  • handle both file and fields analysis

see related client and connector PR https://github.com/OpenCTI-Platform/client-python/pull/666 https://github.com/OpenCTI-Platform/connectors/pull/2190

Related issues

  • #6803

Checklist

  • [ ] I consider the submitted work as finished
  • [ ] I tested the code for its functionality
  • [ ] I wrote test cases for the relevant uses case (coverage and e2e)
  • [ ] I added/update the relevant documentation (either on github or on notion)
  • [ ] Where necessary I refactored code to improve the overall quality

Further comments

JeremyCloarec avatar May 30 '24 14:05 JeremyCloarec

Codecov Report

Attention: Patch coverage is 24.81752% with 103 lines in your changes missing coverage. Please review.

Project coverage is 67.59%. Comparing base (7cfd0cf) to head (41f695a). Report is 1 commits behind head on master.

Files Patch % Lines
...tform/opencti-graphql/src/domain/stixCoreObject.js 15.45% 93 Missing :warning:
...rm/opencti-graphql/src/manager/activityListener.ts 0.00% 5 Missing :warning:
...latform/opencti-graphql/src/database/repository.js 60.00% 2 Missing :warning:
...i-platform/opencti-graphql/src/domain/connector.js 0.00% 1 Missing :warning:
...orm/opencti-graphql/src/manager/activityManager.ts 0.00% 1 Missing :warning:
...rm/opencti-graphql/src/resolvers/stixCoreObject.js 50.00% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7192      +/-   ##
==========================================
- Coverage   67.67%   67.59%   -0.09%     
==========================================
  Files         561      561              
  Lines       69059    69190     +131     
  Branches     5879     5880       +1     
==========================================
+ Hits        46735    46768      +33     
- Misses      22324    22422      +98     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 30 '24 15:05 codecov[bot]