Skip to content

fix bug with mongo search option removing deletion filter when top le… - #2707

Open
SylvainSenechal wants to merge 1 commit into
improvement/ARSN-617/clean-read-filterfrom
bugfix/ARSN-641
Open

SylvainSenechal wants to merge 1 commit into
improvement/ARSN-617/clean-read-filterfrom
bugfix/ARSN-641

Conversation

@SylvainSenechal

Copy link
Copy Markdown
Contributor

ISSUE: ARSN-641

Found this while reviewing the pr of the target branch #2688 (comment)

  • mongo query is supposed to filter out deleted elements
  • The query can contains extra search option, added with an object.assign that can erase the first deletion filter with top level $or statement

Added a functional test to verify the bug
Added the fix and rerun the functional test => its fixed

Side note : I think impact is minimal, I don't believe we use top level $or filters

@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.73%. Comparing base (3b7ab09) to head (fd8b794).
⚠️ Report is 1 commits behind head on improvement/ARSN-617/clean-read-filter.

Additional details and impacted files
@@                            Coverage Diff                             @@
##           improvement/ARSN-617/clean-read-filter    #2707      +/-   ##
==========================================================================
- Coverage                                   74.74%   74.73%   -0.01%     
==========================================================================
  Files                                         227      227              
  Lines                                       18631    18633       +2     
  Branches                                     3863     3864       +1     
==========================================================================
  Hits                                        13925    13925              
- Misses                                       4701     4703       +2     
  Partials                                        5        5              

☔ View full report in Codecov by Harness.
📢 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.

@SylvainSenechal

Copy link
Copy Markdown
Contributor Author

Will apply linter after parent pr is merged

@SylvainSenechal
SylvainSenechal requested review from a team, DarkIsDude, benzekrimaha and delthas and removed request for delthas September 15, 2026 16:18
@SylvainSenechal
SylvainSenechal marked this pull request as ready for review September 15, 2026 16:19

@benzekrimaha benzekrimaha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM code wise , on the ci side prettier is failing along with codecov...

@DarkIsDude DarkIsDude left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the spot and the PR 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants