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(search): compute dataset schema properly #1380

Merged

Conversation

frascuchon
Copy link
Member

A wrong dataset schema computation makes es query won't be built properly with nested fields.

@frascuchon frascuchon self-assigned this Apr 5, 2022
@frascuchon frascuchon added type: bug Indicates an unexpected problem or unintended behavior area: server Indicates that an issue or pull request is related to the server labels Apr 5, 2022
@frascuchon frascuchon added this to In progress in Release via automation Apr 5, 2022
dcfidalgo
dcfidalgo previously approved these changes Apr 5, 2022
Copy link
Contributor

@dcfidalgo dcfidalgo left a comment

Choose a reason for hiding this comment

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

💯 Just one inline comment

tests/conftest.py Outdated Show resolved Hide resolved
Release automation moved this from In progress to Review OK Apr 5, 2022
@frascuchon frascuchon force-pushed the bugfixes/apply-nested-search-on-advanced-query-dsl branch from 30cf1a0 to e3b3fac Compare April 5, 2022 20:02
@codecov
Copy link

codecov bot commented Apr 5, 2022

Codecov Report

Merging #1380 (c0fe483) into master (7580d03) will increase coverage by 0.17%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1380      +/-   ##
==========================================
+ Coverage   94.24%   94.41%   +0.17%     
==========================================
  Files         130      130              
  Lines        5873     5877       +4     
==========================================
+ Hits         5535     5549      +14     
+ Misses        338      328      -10     
Flag Coverage Δ
pytest 94.41% <100.00%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/rubrix/server/tasks/commons/dao/dao.py 98.77% <100.00%> (+1.28%) ⬆️
src/rubrix/server/tasks/search/query_builder.py 100.00% <0.00%> (+13.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b03ebb...c0fe483. Read the comment docs.

@frascuchon frascuchon merged commit 670ab7d into master Apr 6, 2022
Release automation moved this from Review OK to Ready to DEV QA Apr 6, 2022
@frascuchon frascuchon deleted the bugfixes/apply-nested-search-on-advanced-query-dsl branch April 6, 2022 09:08
@frascuchon frascuchon moved this from Ready to DEV QA to Approved DEV QA in Release Apr 11, 2022
frascuchon added a commit that referenced this pull request Apr 11, 2022
…1380)

* fix(search): compute dataset schema properly

* test: prevent loguru not installed error

* test: fix huggingface_hub version

(cherry picked from commit 670ab7d)
@frascuchon frascuchon moved this from Approved DEV QA to Ready to Release QA in Release Apr 11, 2022
@frascuchon frascuchon moved this from Ready to Release QA to Approved Release QA in Release Apr 11, 2022
frascuchon added a commit that referenced this pull request Apr 11, 2022
…1380)

* fix(search): compute dataset schema properly

* test: prevent loguru not installed error

* test: fix huggingface_hub version

(cherry picked from commit 670ab7d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: server Indicates that an issue or pull request is related to the server type: bug Indicates an unexpected problem or unintended behavior
Projects
No open projects
Release
Approved Release QA
Development

Successfully merging this pull request may close these issues.

None yet

2 participants