8000 docs(drivers): add missing docstrings by Yongxuanzhang · Pull Request #1976 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

docs(drivers): add missing docstrings #1976

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

Merged
merged 3 commits into from
Feb 22, 2021
Merged

docs(drivers): add missing docstrings #1976

merged 3 commits into from
Feb 22, 2021

Conversation

Yongxuanzhang
Copy link
Contributor

No description provided.

@jina-bot jina-bot added size/S area/core This issue/PR affects the core codebase component/driver labels Feb 18, 2021
@@ -132,12 +128,19 @@ def __init__(self,

@property
def single_field(self):
"""Get single field."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Can u add here the comment. Property to guarantee compatibility when only one field is provided either as a string or as a unit length tuple

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! Thanks!

@codecov
Copy link
codecov bot commented Feb 18, 2021

Codecov Report

Merging #1976 (5d58557) into master (b1fab67) will decrease coverage by 0.36%.
The diff coverage is 84.61%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1976      +/-   ##
==========================================
- Coverage   81.89%   81.52%   -0.37%     
==========================================
  Files         148      148              
  Lines        7107     7081      -26     
==========================================
- Hits         5820     5773      -47     
- Misses       1287     1308      +21     
Impacted Files Coverage Δ
jina/drivers/evaluate.py 94.28% <ø> (-4.29%) ⬇️
jina/drivers/index.py 96.15% <ø> (ø)
jina/enums.py 95.83% <ø> (-0.12%) ⬇️
jina/helloworld/helper.py 0.00% <ø> (-90.63%) ⬇️
jina/drivers/convertdriver.py 86.11% <66.66%> (-4.80%) ⬇️
jina/parsers/helloworld.py 93.47% <85.71%> (-6.53%) ⬇️
jina/flow/base.py 79.79% <100.00%> (-1.46%) ⬇️
jina/flow/builder.py 95.52% <100.00%> (+21.60%) ⬆️
jina/parsers/flow.py 100.00% <100.00%> (ø)
jina/helloworld/__init__.py 0.00% <0.00%> (-100.00%) ⬇️
... and 28 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 b1fab67...12ef7fa. Read the comment docs.

@github-actions
Copy link
github-actions bot commented Feb 18, 2021

Latency summary

Current PR yields:

  • 😶 index QPS at 1056, delta to last 3 avg.: +0%
  • 😶 query QPS at 17, delta to last 3 avg.: -2%

Breakdown

Version Index QPS Query QPS
current 1056 17
1.0.2 1056 17
1.0.1 1066 17

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

@Yongxuanzhang Yongxuanzhang marked this pull request as ready for review February 18, 2021 23:01
@Yongxuanzhang Yongxuanzhang requested a review from a team as a code owner F 8000 ebruary 18, 2021 23:01
@@ -68,13 +68,11 @@ def _apply_all(
evaluation.ref_id = groundtruth.id

def extract(self, doc: 'Document') -> Any:
"""Extracting the to-be-evaluated field from the document.
Drivers inherit from :class:`BaseEvaluateDriver` must implement this method.
"""Extract the to-be-evaluated field from the document. Drivers inherit from :class:`BaseEvaluateDriver` must implement this method.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the first line of the docstring must be one short sentence.

@hanxiao hanxiao merged commit 16162fa into master Feb 22, 2021
@hanxiao hanxiao deleted the docs-update-drivers branch February 22, 2021 00:28
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 component/driver size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0