opencti icon indicating copy to clipboard operation
opencti copied to clipboard

[frontend] Bulk create relationship in container context (#7443)

Open ValentinBouzinFiligran opened this issue 1 year ago • 2 comments

Proposed changes

UNDER FEATURE FLAG: 4352_BULK_RELATIONS

  • Add a new dialog in the knowledge tab of Intrusion-Set (other places in platform to come in follow up PRs)
  • Allow to create relations to SCO and SDO that already exists in the patform and matches the relation type.

Everything is done in frontend as per brainstorm descision.

Related issues

  • https://github.com/OpenCTI-Platform/opencti/issues/7443

Checklist

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

Further comments

ValentinBouzinFiligran avatar Jun 05 '24 14:06 ValentinBouzinFiligran

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.56%. Comparing base (3355b5f) to head (2901329). Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7242   +/-   ##
=======================================
  Coverage   67.55%   67.56%           
=======================================
  Files         567      567           
  Lines       69903    69903           
  Branches     5936     5938    +2     
=======================================
+ Hits        47223    47228    +5     
+ Misses      22680    22675    -5     

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

codecov[bot] avatar Jun 24 '24 15:06 codecov[bot]

Testing review

  • Missing some SDO (all SDO should be available for related to relationships)
  • Relationship types are only available in one direction (from intrusion set), we don't have the other direction relations => Not included in this POC

SouadHadjiat avatar Jun 28 '24 14:06 SouadHadjiat