opencti icon indicating copy to clipboard operation
opencti copied to clipboard

[backend/frontend] massive delete operations for public dashboard and workspaces (#6509)

Open lndrtrbn opened this issue 1 year ago • 8 comments

Proposed changes

  • Massive delete for public dashboards
  • Massive delete for custom dashboards
  • Massive delete for investigations

Related issues

  • #6509

Checklist

  • [x] I consider the submitted work as finished
  • [x] 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)
  • [x] Where necessary I refactored code to improve the overall quality

lndrtrbn avatar Aug 23 '24 14:08 lndrtrbn

Codecov Report

Attention: Patch coverage is 51.53374% with 79 lines in your changes missing coverage. Please review.

Project coverage is 66.74%. Comparing base (c8dbedf) to head (b328dc5). Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
...pencti-graphql/src/domain/backgroundTask-common.js 60.00% 44 Missing :warning:
...latform/opencti-graphql/src/manager/taskManager.js 24.00% 19 Missing :warning:
...tform/opencti-graphql/src/domain/backgroundTask.js 42.85% 16 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8158      +/-   ##
==========================================
+ Coverage   66.06%   66.74%   +0.68%     
==========================================
  Files         597      597              
  Lines       59732    60027     +295     
  Branches     6080     6796     +716     
==========================================
+ Hits        39460    40065     +605     
+ Misses      20272    19962     -310     

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

codecov[bot] avatar Aug 26 '24 14:08 codecov[bot]

We have a known issue on duplicating/deleting workspaces and currently looking for a fix EDIT : has been fixed ✅

lndrtrbn avatar Aug 27 '24 07:08 lndrtrbn

Filters not correctly displayed when launching a background task on public dashboards.

  • Select all the public dashboard
  • Click on delete in the toolbar
  • the pop-up opens and the entity type public dashboard is not translated image

Archidoit avatar Aug 29 '24 07:08 Archidoit

Background task on custom dashboard also delete public dashboards : is it normal?

Select all the custom dashboards and delete them. Public dashboards are also deleted.

@lndrtrbn answer: Yes it is. Deleting a dashboard also delete its associated public dashboards.

Archidoit avatar Aug 29 '24 08:08 Archidoit

Missing translations also for entity_type_Workspace

image

Archidoit avatar Aug 29 '24 08:08 Archidoit

Export not working for Investigations

Select all the Investigations.

Export in stix. The export is working and the bundle is empty.

Export in Csv. An error occurs : image

Archidoit avatar Aug 29 '24 08:08 Archidoit

Open the export panel of Custom dashboards. You also see the exports that have been done for Investigations.

Archidoit avatar Aug 29 '24 08:08 Archidoit

@marieflorescontact @Archidoit remarks have been resolved

lndrtrbn avatar Aug 29 '24 15:08 lndrtrbn

Public dashboard scope not translated in the Background tasks list image

Archidoit avatar Aug 30 '24 08:08 Archidoit

In the background tasks list, try to delete a background task you previously do on Public Dashboard. An error occurs : image

Archidoit avatar Aug 30 '24 08:08 Archidoit