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

[BUGFIX] argilla-server: Query on response values without an user #5003

Conversation

frascuchon
Copy link
Member

Description

This PR includes a temporal workaround to fix searching records when filtering with response values without providing any user.

The solution uses index mapping to identify field paths to use in the query. Those fields are combined into a single bool query with an OR (should) operator.

Type of change

(Please delete options that are not relevant. Remember to title the PR according to the type of change)

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested

(Please describe the tests that you ran to verify your changes. And ideally, reference tests)

  • Test A
  • Test B

Checklist

  • I followed the style guidelines of this project
  • I did a self-review of my code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I filled out the contributor form (see text above)
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@frascuchon frascuchon requested a review from jfcalvo June 12, 2024 14:31
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

Attention: Patch coverage is 94.59459% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.02%. Comparing base (a667a90) to head (959d390).

Files Patch % Lines
...server/src/argilla_server/search_engine/commons.py 94.59% 2 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           feat/v2.0.0    #5003       +/-   ##
================================================
+ Coverage        61.07%   92.02%   +30.94%     
================================================
  Files              328      135      -193     
  Lines            17645     5829    -11816     
================================================
- Hits             10777     5364     -5413     
+ Misses            6868      465     -6403     
Flag Coverage Δ
argilla ?
argilla-server 92.02% <94.59%> (+0.03%) ⬆️

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.

@frascuchon frascuchon merged commit 44da3d2 into feat/v2.0.0 Jun 13, 2024
8 checks passed
@frascuchon frascuchon deleted the bugfix/argilla-server/query-on-response-values-without-an-user branch June 13, 2024 07:58
@frascuchon frascuchon linked an issue Jun 14, 2024 that may be closed by this pull request
frascuchon added a commit that referenced this pull request Jul 4, 2024
…g response values without user (#5159)

# Description
<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that are required for this change. -->

This PR fixes missing `await` call included in
#5003


**Type of change**
<!-- Please delete options that are not relevant. Remember to title the
PR according to the type of change -->

- Bug fix (non-breaking change which fixes an issue)

**How Has This Been Tested**
<!-- Please add some reference about how your feature has been tested.
-->

**Checklist**
<!-- Please go over the list and make sure you've taken everything into
account -->

- I added relevant documentation
- follows the style guidelines of this project
- I did a self-review of my code
- I made corresponding changes to the documentation
- I confirm My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature
works
- I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)
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.

[BUG] Search API for search all responses generating error
2 participants