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

Added support for fetching data with protocol buffers #1728

Merged
merged 8 commits into from
Apr 9, 2024

Conversation

Raalsky
Copy link
Contributor

@Raalsky Raalsky commented Apr 8, 2024

Before submitting checklist

  • Did you update the CHANGELOG? (not for test updates, internal changes/refactors or CI/CD setup)
  • Did you ask the docs owner to review all the user-facing changes?

@Raalsky Raalsky changed the title Added suppport for fetching data with protocol buffers Added support for fetching data with protocol buffers Apr 9, 2024
Copy link

codecov bot commented Apr 9, 2024

Codecov Report

Attention: Patch coverage is 61.34969% with 63 lines in your changes are missing coverage. Please review.

Project coverage is 73.68%. Comparing base (f9da5f2) to head (64ad22a).

Files Patch % Lines
...to/neptune_pb/api/model/leaderboard_entries_pb2.py 31.42% 24 Missing ⚠️
...eptune/internal/backends/hosted_neptune_backend.py 20.68% 23 Missing ⚠️
...e/api/proto/neptune_pb/api/model/attributes_pb2.py 64.70% 6 Missing ⚠️
src/neptune/api/searching_entries.py 71.42% 4 Missing ⚠️
...ptune/internal/backends/offline_neptune_backend.py 62.50% 3 Missing ⚠️
.../neptune/internal/backends/neptune_backend_mock.py 50.00% 2 Missing ⚠️
src/neptune/api/models.py 98.03% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1728      +/-   ##
==========================================
- Coverage   78.21%   73.68%   -4.53%     
==========================================
  Files         242      244       +2     
  Lines       12787    12769      -18     
==========================================
- Hits        10001     9409     -592     
- Misses       2786     3360     +574     
Flag Coverage Δ
e2e ?
e2e-management ?
e2e-s3 ?
e2e-s3-gcs ?
e2e-standard ?
macos 73.53% <61.34%> (-4.58%) ⬇️
py3.10 ?
py3.11 ?
py3.12 ?
py3.7 73.67% <61.34%> (-3.95%) ⬇️
py3.7.16 ?
py3.8 ?
py3.9 ?
ubuntu 73.61% <61.34%> (-4.54%) ⬇️
unit 73.67% <61.34%> (-0.83%) ⬇️
windows 72.56% <61.34%> (-5.23%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -16,13 +16,15 @@ pytest-xdist
vega_datasets
backoff
altair
icecream
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? 😄

Copy link
Contributor

@AleksanderWWW AleksanderWWW Apr 9, 2024

Choose a reason for hiding this comment

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

Don't get me wrong, I love this tool - I just don't see it used anywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was annoying to install it over and over locally, same as grpc_tools - Not used by the code/tests itself but helps with development.

@@ -97,7 +98,8 @@ def get_single_page(
types: Optional[Iterable[str]],
query: Optional["NQLQuery"],
searching_after: Optional[str],
) -> Any:
use_proto: Optional[bool] = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this optional? Cannot be just use_proto: bool = False?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

None means -> keep what environment variable says. True/False will override it. Used for testing purposes.

@@ -1062,7 +1069,9 @@ def search_leaderboard_entries(
ascending: bool = False,
progress_bar: Optional[ProgressBarType] = None,
step_size: Optional[int] = None,
use_proto: Optional[bool] = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, maybe just bool?

self,
container_id: str,
container_type: ContainerType,
use_proto: Optional[bool] = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

And here (just bool)

@Raalsky Raalsky merged commit 9505ead into master Apr 9, 2024
4 checks passed
@Raalsky Raalsky deleted the rj/protobuffers branch April 9, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants