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

refactor(#945): using new search service #1117

Merged
merged 3 commits into from
Feb 10, 2022

Conversation

frascuchon
Copy link
Member

This PR includes the implementation for SearchRecordsService class and changes all task services search method, that will use the new implemented service.

This will help in a future to normalize api task search and simplify development.

@frascuchon frascuchon self-assigned this Feb 9, 2022
@frascuchon frascuchon added this to In progress in Release via automation Feb 9, 2022
@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #1117 (5b85936) into master (bd37a1f) will increase coverage by 0.01%.
The diff coverage is 98.80%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1117      +/-   ##
==========================================
+ Coverage   94.98%   95.00%   +0.01%     
==========================================
  Files         119      121       +2     
  Lines        4491     4562      +71     
==========================================
+ Hits         4266     4334      +68     
- Misses        225      228       +3     
Flag Coverage Δ
pytest 95.00% <98.80%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
src/rubrix/server/tasks/search/model.py 95.45% <95.45%> (ø)
src/rubrix/server/tasks/search/service.py 100.00% <100.00%> (ø)
src/rubrix/server/tasks/text2text/api/model.py 98.57% <100.00%> (-0.10%) ⬇️
...c/rubrix/server/tasks/text2text/service/service.py 100.00% <100.00%> (ø)
...brix/server/tasks/text_classification/api/model.py 99.40% <100.00%> (-0.02%) ⬇️
...erver/tasks/text_classification/service/service.py 97.82% <100.00%> (+0.17%) ⬆️
...rix/server/tasks/token_classification/api/model.py 98.68% <100.00%> (-0.05%) ⬇️
...rver/tasks/token_classification/service/service.py 100.00% <100.00%> (ø)
src/rubrix/server/commons/es_helpers.py 86.09% <0.00%> (-0.90%) ⬇️
src/rubrix/server/commons/es_wrapper.py 88.28% <0.00%> (ø)
... and 5 more

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 d422d5c...5b85936. Read the comment docs.

@frascuchon frascuchon linked an issue Feb 9, 2022 that may be closed by this pull request
@frascuchon frascuchon moved this from In progress to Review in Release Feb 10, 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.

💯 nice!! the new search service call (__search__.search) looks much neater!

@frascuchon frascuchon merged commit 06117b0 into master Feb 10, 2022
@frascuchon frascuchon deleted the refactor/using-new-search-service branch February 10, 2022 13:37
@frascuchon frascuchon moved this from Review to Ready to DEV QA in Release Feb 10, 2022
@frascuchon frascuchon moved this from Ready to DEV QA to Approved DEV QA in Release Feb 10, 2022
@frascuchon frascuchon moved this from Approved DEV QA to Ready to Release QA in Release Feb 10, 2022
frascuchon pushed a commit that referenced this pull request Feb 10, 2022
dvsrepo added a commit that referenced this pull request Feb 10, 2022
* 'master' of https://github.com/recognai/rubrix: (26 commits)
  feat(#1061): unify records results title (#1111)
  refactor(#945): using new search service (#1117)
  fix(#1121):  Adjust search bar width (#1124)
  fix(#945): validate label for single label text classification dataset (#1123)
  docs: fix skweak images (#1120)
  fix(#831): Remove sort field when only one is applied (#1116)
  refactor(#945): add current search aggregations as metrics (#1115)
  chore(#982): extends search area (#1112)
  chore(#1054): long records margin adjustment #1114
  feat(#1063): Token Classifier fine tuning content selection (#1084)
  refactor(#1102): remove "Update Summary" button rules summary (#1110)
  refactor(#945): revert index config for text2text (#1108)
  fix: convert pd.NaT to None for event_timestamp (#1105)
  fix(#1094): return empty list for no predicted_as (#1107)
  docs(#1089): remove pip install elasticsearch from docs (#1104)
  fix(#1054): reduce collapsable area. Optimize for annotation (#1106)
  fix(#945): include default aggregations for text2text (#1097)
  refactor(#1044): include last updated field for sort (#1093)
  fix(#1094): remove computed record fields returned in API results (#1095)
  feat(#1051): keep predictions labels when annotating (#1077)
  ...
@frascuchon frascuchon moved this from Ready to Release QA to Approved Release QA in Release Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Release
Approved Release QA
Development

Successfully merging this pull request may close these issues.

[Search] Improve and normalizes the search data model
2 participants