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

fix: use combine operator & and |` #2938

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Dec 11, 2024

Resolves #2939

Changes:
Updates the filter combination logic in BAIPropertyFilter to:

  • Return undefined instead of empty string when merging empty filter values
  • Change operator types from 'and'/'or' to '&'/'|' to match backend expectations
  • Standardize filter combination to use '&' operator consistently

@github-actions github-actions bot added the size:XS ~10 LoC label Dec 11, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

graphite-app bot commented Dec 11, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link

github-actions bot commented Dec 11, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.25% (-0% 🔻)
398/7587
🔴 Branches
4.5% (-0% 🔻)
237/5271
🔴 Functions 3.13% 78/2492
🔴 Lines
5.16% (-0% 🔻)
383/7418
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / BAIPropertyFilter.tsx
11.11% (-0.16% 🔻)
0% 3.85%
11.94% (-0.18% 🔻)

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 8252a10

@yomybaby yomybaby marked this pull request as ready for review December 11, 2024 04:33
@ironAiken2 ironAiken2 self-requested a review December 11, 2024 04:38
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

graphite-app bot commented Dec 11, 2024

Merge activity

Resolves #2939

**Changes:**
Updates the filter combination logic in BAIPropertyFilter to:
- Return `undefined` instead of empty string when merging empty filter values
- Change operator types from 'and'/'or' to '&'/'|' to match backend expectations
- Standardize filter combination to use '&' operator consistently
@ironAiken2 ironAiken2 force-pushed the fix/bai-property-filter-operation branch from ab9b64b to 8252a10 Compare December 11, 2024 04:44
@graphite-app graphite-app bot merged commit 8252a10 into main Dec 11, 2024
7 checks passed
@graphite-app graphite-app bot deleted the fix/bai-property-filter-operation branch December 11, 2024 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BAIPropertyFilter Fails to Return Results with Multiple Conditions
2 participants