8000 feat: allow to access parameters of data request wo loading data by samsja · Pull Request #4991 · jina-ai/serve · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: allow to access parameters of data request wo loading data #4991

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
Jul 5, 2022

Conversation

samsja
Copy link
Contributor
@samsja samsja commented Jul 4, 2022

Context

This pr is the direct follow up of #4950.

The last pr allow us to access the parameters of the DataRequest wo loading the data( DocumentArray).

We need sometime to set the parameters wo loading the data as well. Especially for #4939

What this pr do:

This PR allow to set the parameters wo loading the data.

Now the parameters property setters call proto_wo_data under the hood.

I refactor the code so that _pb_body can either be a DataRequestProto or a DataRequestProtoWoData

  • implementation
  • tests

@github-actions github-actions bot added size/M area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing component/type labels Jul 4, 2022
@samsja samsja force-pushed the feat-proto-param-acess branch from c7a83db to 3b7442e Compare July 4, 2022 09:18
@codecov
Copy link
codecov bot commented Jul 4, 2022

Codecov Report

Merging #4991 (5166740) into master (34997cc) will decrease coverage by 0.04%.
The diff coverage is 96.55%.

@@            Coverage Diff             @@
##           master    #4991      +/-   ##
==========================================
- Coverage   87.92%   87.88%   -0.05%     
==========================================
  Files         111      111              
  Lines        8862     8870       +8     
==========================================
+ Hits         7792     7795       +3     
- Misses       1070     1075       +5     
Flag Coverage Δ
jina 87.88% <96.55%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
jina/types/request/data.py 97.65% <96.55%> (+0.15%) ⬆️
...a/orchestrate/deployments/config/docker_compose.py 99.00% <0.00%> (-1.00%) ⬇️
jina/orchestrate/flow/base.py 89.83% <0.00%> (-0.57%) ⬇️
jina/serve/runtimes/gateway/websocket/app.py 79.74% <0.00%> (+0.63%) ⬆️

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 ff56ca1...5166740. Read the comment docs.

@samsja samsja changed the title fix: fix compress method feat: allow to access parameters of data request wo loading data Jul 4, 2022
@samsja samsja requested review from JoanFM and JohannesMessner July 4, 2022 09:26
Copy link
Contributor
@JoanFM JoanFM left a comment

Choose a reason for hiding this comment

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

what was the error?

Co-authored-by: Johannes Messner <44071807+JohannesMessner@users.noreply.github.com>
@JoanFM JoanFM merged commit c3849c6 into master Jul 5, 2022
@JoanFM JoanFM deleted the feat-proto-param-acess branch July 5, 2022 13:05
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/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0