Skip to content

[backend/client] fix file handling in upsert by adding files versions (#14585)#14614

Open
JeremyCloarec wants to merge 4 commits intomasterfrom
issue/14585
Open

[backend/client] fix file handling in upsert by adding files versions (#14585)#14614
JeremyCloarec wants to merge 4 commits intomasterfrom
issue/14585

Conversation

@JeremyCloarec
Copy link
Contributor

@JeremyCloarec JeremyCloarec commented Feb 25, 2026

Proposed changes

  • fix file handling in upsert by adding files versions alongside other files infos

Related issues

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

@github-actions github-actions bot added the filigran team use to identify PR from the Filigran team label Feb 25, 2026
@codecov
Copy link

codecov bot commented Feb 25, 2026

Codecov Report

❌ Patch coverage is 55.55556% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 32.37%. Comparing base (75ae528) to head (afb3ead).
⚠️ Report is 13 commits behind head on master.

Files with missing lines Patch % Lines
client-python/pycti/utils/opencti_stix2.py 25.00% 6 Missing ⚠️
...latform/opencti-graphql/src/database/middleware.ts 0.00% 6 Missing ⚠️
...platform/opencti-graphql/src/utils/upsert-utils.js 0.00% 5 Missing ⚠️
client-python/pycti/entities/opencti_channel.py 0.00% 1 Missing ⚠️
client-python/pycti/entities/opencti_event.py 0.00% 1 Missing ⚠️
client-python/pycti/entities/opencti_grouping.py 0.00% 1 Missing ⚠️
client-python/pycti/entities/opencti_language.py 0.00% 1 Missing ⚠️
client-python/pycti/entities/opencti_narrative.py 0.00% 1 Missing ⚠️
...python/pycti/entities/opencti_security_coverage.py 0.00% 1 Missing ⚠️
client-python/pycti/entities/opencti_task.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #14614    +/-   ##
========================================
  Coverage   32.36%   32.37%            
========================================
  Files        3096     3096            
  Lines      210896   211050   +154     
  Branches    38196    38257    +61     
========================================
+ Hits        68262    68322    +60     
- Misses     142634   142728    +94     
Flag Coverage Δ
opencti-client-python 45.58% <69.04%> (+0.08%) ⬆️
opencti-front 2.83% <ø> (+<0.01%) ⬆️
opencti-graphql 67.74% <8.33%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JeremyCloarec JeremyCloarec marked this pull request as ready for review February 25, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

filigran team use to identify PR from the Filigran team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playbook: manipulating container files even if not needed

1 participant