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(types): fix extend in docset #1883

Merged
merged 1 commit into from Feb 5, 2021
Merged

fix(types): fix extend in docset #1883

merged 1 commit into from Feb 5, 2021

Conversation

hanxiao
Copy link
Member

@hanxiao hanxiao commented Feb 5, 2021

No description provided.

@hanxiao hanxiao requested a review from a team as a code owner February 5, 2021 21:45
@jina-bot jina-bot added size/S area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing component/type labels Feb 5, 2021
raise BadDocType('Each chunk should have the same granularity.')
self.chunks.extend(chunks)

# in case chunks have granularity defined, override
Copy link
Member

Choose a reason for hiding this comment

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

a warning should be raised if something is overriden for the user?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is your original logic in the code, which I found hard to understand.

Copy link
Member Author

Choose a reason for hiding this comment

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

i keep it as it is as your original does not raise warning

Copy link
Member Author

Choose a reason for hiding this comment

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

this is your original logic in the code, which I found hard to understand.

to be clear, I'm against the logic that a child granularity can decide parent's granularity

@codecov
Copy link

codecov bot commented Feb 5, 2021

Codecov Report

Merging #1883 (def8b1a) into master (6f68b20) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1883      +/-   ##
==========================================
- Coverage   86.28%   86.15%   -0.14%     
==========================================
  Files         147      147              
  Lines        7006     7011       +5     
==========================================
- Hits         6045     6040       -5     
- Misses        961      971      +10     
Impacted Files Coverage Δ
jina/types/document/multimodal.py 96.29% <100.00%> (-1.71%) ⬇️
jina/types/sets/document.py 95.61% <100.00%> (+0.03%) ⬆️
jina/flow/base.py 87.23% <0.00%> (-2.35%) ⬇️

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 49a4457...def8b1a. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Feb 5, 2021

Latency summary

Current PR yields:

  • 🐢🐢 index QPS at 1040, delta to last 3 avg.: -6%
  • 😶 query QPS at 19, delta to last 3 avg.: +0%

Breakdown

Version Index QPS Query QPS
current 1040 19
0.9.28 1099 18
0.9.27 1128 19

Backed by latency-tracking. Further commits will update this comment.

@hanxiao hanxiao merged commit c73d938 into master Feb 5, 2021
@hanxiao hanxiao deleted the fix-chunk-extend branch February 5, 2021 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing component/type size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants