-
Notifications
You must be signed in to change notification settings - Fork 16
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
service: Add generic get_connection(s) API #438
Conversation
_with_typed_session() was incorrectly assuming that the runtime type matches the static type. Also, it was trying to infer the static type variable `TSession` based on the runtime type expression `type(session)`.
Test Results 30 files ± 0 30 suites ±0 14m 25s ⏱️ + 3m 33s Results for commit 2d7e530. ± Comparison against base commit 49a90c6. This pull request removes 4 and adds 47 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
…and they don't match any connections
For strings, repr() doesn't just add single quotes. It also escapes special characters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my comments
What does this Pull Request accomplish?
Add
reservation.get_connection
andreservation.get_connections
for mapping a pin and site to a specific instrument session and channel.Update the reservation classes to eagerly convert the gRPC session infos to API session infos.
Why should this Pull Request be merged?
Part of the new session management API.
What testing has been done?
Ran new unit tests.