8000 refactor: remove unused setters in graph document by bwanglzu · Pull Request #2632 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor: remove unused setters in graph document #2632

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 2 commits into from
Jun 12, 2021

Conversation

bwanglzu
Copy link
Member
@bwanglzu bwanglzu commented Jun 12, 2021

we exposed too much setter to the user, such as edge_features and adjacency , user can set the value for these properties, but the internal graph structure did not change.

For instance, change edge_features in a setter, while node.id remains the same. We expect the key of edge_features should be node1.id-node2.id, this brings inconsistency. Same applies for adjacency.

btw, there're two setters for adjacency..

@bwanglzu bwanglzu changed the title refactor: remove unused setters refactor: remove unused setters in graph document Jun 12, 2021
@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 Jun 12, 2021
@codecov
Copy link
codecov bot commented Jun 12, 2021

Codecov Report

Merging #2632 (15ca409) into master (0094bbf) will increase coverage by 6.43%.
The diff coverage is 83.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2632      +/-   ##
==========================================
+ Coverage   82.21%   88.65%   +6.43%     
==========================================
  Files         106      147      +41     
  Lines        7064     8945    +1881     
==========================================
+ Hits         5808     7930    +2122     
+ Misses       1256     1015     -241     
Flag Coverage Δ
daemon 48.39% <83.11%> (?)
jina 88.82% <ø> (?)

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

Impacted Files Coverage Δ
jina/__init__.py 70.31% <ø> (ø)
jina/checker.py 96.55% <ø> (ø)
jina/clients/__init__.py 89.47% <ø> (ø)
jina/clients/asyncio.py 100.00% <ø> (ø)
jina/clients/base.py 79.20% <ø> (ø)
jina/clients/grpc.py 100.00% <ø> (ø)
jina/clients/helper.py 100.00% <ø> (ø)
jina/clients/mixin.py 100.00% <ø> (ø)
jina/clients/request/__init__.py 100.00% <ø> (ø)
jina/clients/request/asyncio.py 88.88% <ø> (ø)
... and 218 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 86262d4...15ca409. Read the comment docs.

@bwanglzu bwanglzu requested review from davidbp and JoanFM June 12, 2021 09:44
@bwanglzu bwanglzu marked this pull request as ready for review June 12, 2021 10:29
@bwanglzu bwanglzu requested a review from a team as a code owner June 12, 2021 10:29
@hanxiao hanxiao merged commit 1c85185 into master Jun 12, 2021
@hanxiao hanxiao deleted the refactor-graph-document branch June 12, 2021 14:52
@bwanglzu bwanglzu self-assigned this Jun 13, 2021
numb3r3 pushed a commit that referenced this pull request Jun 15, 2021
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.

4 participants
0