Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backend] External reference fail creation as checked attribute is not the good one (#8545) #8548

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

richard-julien
Copy link
Member

See #8545

@github-actions github-actions bot added the filigran team use to identify PR from the Filigran team label Sep 30, 2024
@richard-julien richard-julien linked an issue Oct 1, 2024 that may be closed by this pull request
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.43%. Comparing base (9754a5e) to head (05a841d).
Report is 36 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8548      +/-   ##
==========================================
+ Coverage   66.21%   66.43%   +0.21%     
==========================================
  Files         597      597              
  Lines       60417    60546     +129     
  Branches     6205     6446     +241     
==========================================
+ Hits        40008    40223     +215     
+ Misses      20409    20323      -86     
Flag Coverage Δ
66.43% <100.00%> (+0.21%) ⬆️

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.

@SouadHadjiat
Copy link
Member

The code change looks all right, but I'm not sure it fixes the issue.
I'm not sure how to reproduce the issue by the way.
I tried to run opencti locally, add a remote octi stream on testing (filtered on reports with a specific label I created).
I create reports with this label on testing => it's well created on my local opencti
I add external ref on this report on testing => it's well added locally
I remove the external ref on this report => KO it's not removed from my local report, the external ref is still present.
Should it be removed with this fix ? what did I miss to reproduce the issue ?

@SouadHadjiat SouadHadjiat self-requested a review October 2, 2024 16:38
@richard-julien
Copy link
Member Author

The code change looks all right, but I'm not sure it fixes the issue. I'm not sure how to reproduce the issue by the way. I tried to run opencti locally, add a remote octi stream on testing (filtered on reports with a specific label I created). I create reports with this label on testing => it's well created on my local opencti I add external ref on this report on testing => it's well added locally I remove the external ref on this report => KO it's not removed from my local report, the external ref is still present. Should it be removed with this fix ? what did I miss to reproduce the issue ?

Sometimes the external refs was not created at all. To have the deletion you need to activate the advanced option "full sync" on the client side

Copy link
Member

@SouadHadjiat SouadHadjiat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change is good and should fix issues, but I couldn't make sure that the bug related is fixed.

@SouadHadjiat
Copy link
Member

With perfect sync advanced option, the external ref is well synchronized (added and removed). But without this option, the remove of external ref or label is not synchronized.

@SouadHadjiat SouadHadjiat merged commit cd92938 into master Oct 7, 2024
12 of 15 checks passed
@SouadHadjiat SouadHadjiat deleted the issue/8545 branch October 7, 2024 09:06
@richard-julien
Copy link
Member Author

With perfect sync advanced option, the external ref is well synchronized (added and removed). But without this option, the remove of external ref or label is not synchronized.

Thats the expected behavior. Without full sync the refs are only cumulated (markings, externals refs, labels, ...)

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.

[live stream] external references are not synced
2 participants