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

[DRAFT] [ENHANCEMENT] argilla server: add search support for custom fields #5461

Open
wants to merge 2 commits into
base: feat/custom-field-support
Choose a base branch
from

Conversation

frascuchon
Copy link
Member

@frascuchon frascuchon commented Sep 4, 2024

Description

Important

This PR includes some cherry-pick commits from develop. All branches should be UPDATED before approving and merging this PR.

This PR adds support to apply a basic search on custom field values. Inner fields cannot be queried ( for a record.custom.value the search does not support things like custom.value: some value

Type of change

  • Improvement (change adding some improvement to an existing functionality)
  • Documentation update

How Has This Been Tested

Checklist

  • I added relevant documentation
  • I followed 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/)

frascuchon and others added 2 commits September 4, 2024 18:32
…y dsl (#5222)

# 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 adds a tiny dsl to improve text queries based on [this
query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html#simple-query-string-syntax)

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

- Improvement (change adding some improvement to an existing
functionality)
- Documentation update

**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
- I followed 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/)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Damián Pumar <[email protected]>
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.

Project coverage is 91.09%. Comparing base (a83758c) to head (05d87df).

Files with missing lines Patch % Lines
...server/src/argilla_server/search_engine/commons.py 82.35% 3 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           feat/custom-field-support    #5461      +/-   ##
=============================================================
- Coverage                      91.11%   91.09%   -0.02%     
=============================================================
  Files                            139      139              
  Lines                           5865     5876      +11     
=============================================================
+ Hits                            5344     5353       +9     
- Misses                           521      523       +2     
Flag Coverage Δ
argilla-server 91.09% <82.35%> (-0.02%) ⬇️

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.

Copy link

github-actions bot commented Sep 4, 2024

The URL of the deployed environment for this PR is https://argilla-quickstart-pr-5461-ki24f765kq-no.a.run.app

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.

1 participant