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

chore | add support for multi filter arguments #151

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Conversation

aman-bansal
Copy link
Member

No description provided.

@aman-bansal aman-bansal requested a review from a team as a code owner November 27, 2023 06:12
Copy link

Test Results

110 tests  ±0   110 ✔️ ±0   55s ⏱️ -1s
  38 suites ±0       0 💤 ±0 
  38 files   ±0       0 ±0 

Results for commit 2129319. ± Comparison against base commit a4d5d5d.

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Attention: 29 lines in your changes are missing coverage. Please review.

Comparison is base (a4d5d5d) 57.57% compared to head (2129319) 56.44%.

Files Patch % Lines
...re/graphql/utils/gateway/MultiFilterConverter.java 0.00% 26 Missing ⚠️
...core/graphql/utils/gateway/GatewayUtilsModule.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #151      +/-   ##
============================================
- Coverage     57.57%   56.44%   -1.14%     
  Complexity      264      264              
============================================
  Files            91       92       +1     
  Lines          1445     1474      +29     
  Branches         42       42              
============================================
  Hits            832      832              
- Misses          583      612      +29     
  Partials         30       30              
Flag Coverage Δ
unit 56.44% <0.00%> (-1.14%) ⬇️

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.

@aman-bansal aman-bansal merged commit fd15f6e into main Nov 27, 2023
6 of 8 checks passed
@aman-bansal aman-bansal deleted the aman/multi_filter branch November 27, 2023 07:26

@Override
public Single<Filter> convert(
Collection<Collection<AttributeAssociation<FilterArgument>>> filters) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we assuming a collection of collection of filters should be an OR-AND relationship? That's extremely unintuitive. Can we revert this and instead build a real converter here that allows the caller to build relationships - (collection<filters>, logicalOperator) => filter

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