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

Minimal configuration for inserting documents into Tiled #755

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

DiamondJoseph
Copy link
Contributor

No description provided.

@@ -95,7 +99,8 @@ addopts = """
--ignore=src/blueapi/startup
"""
# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
filterwarnings = ["error", "ignore::DeprecationWarning"]
# Unignore UserWarning after Pydantic warning removed from bluesky/bluesky and release
Copy link
Contributor Author

Choose a reason for hiding this comment

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

bluesky/bluesky#1867

  • a release of bluesky

Copy link
Contributor

Choose a reason for hiding this comment

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

Should: Include issue link in a comment in the file

@DiamondJoseph DiamondJoseph marked this pull request as ready for review January 9, 2025 15:44
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 52.94118% with 8 lines in your changes missing coverage. Please review.

Project coverage is 92.99%. Comparing base (82b208f) to head (f3767e1).

Files with missing lines Patch % Lines
src/blueapi/service/interface.py 38.46% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #755      +/-   ##
==========================================
- Coverage   93.32%   92.99%   -0.34%     
==========================================
  Files          38       38              
  Lines        2083     2099      +16     
==========================================
+ Hits         1944     1952       +8     
- Misses        139      147       +8     

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

Config for connecting to a tiled instance
"""

uri: str
Copy link
Contributor

Choose a reason for hiding this comment

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

Could: Can we use separate host and port fields to be consistent with the other config models?

@@ -95,7 +99,8 @@ addopts = """
--ignore=src/blueapi/startup
"""
# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
filterwarnings = ["error", "ignore::DeprecationWarning"]
# Unignore UserWarning after Pydantic warning removed from bluesky/bluesky and release
filterwarnings = ["error", "ignore::DeprecationWarning", "ignore::UserWarning"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any way to only ignore warnings from the tests in question? Otherwise we may end up removing this in a few months time only to find the tests blowing up in a bunch of other places?

@@ -48,6 +50,19 @@ def worker() -> TaskWorker:
return worker


@cache
def tiled_inserter():
Copy link
Contributor

Choose a reason for hiding this comment

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

Should:

Suggested change
def tiled_inserter():
def tiled_inserter() -> TiledClient:

...or whatever it's called

@@ -95,7 +99,8 @@ addopts = """
--ignore=src/blueapi/startup
"""
# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
filterwarnings = ["error", "ignore::DeprecationWarning"]
# Unignore UserWarning after Pydantic warning removed from bluesky/bluesky and release
Copy link
Contributor

Choose a reason for hiding this comment

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

Should: Include issue link in a comment in the file

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