-
Notifications
You must be signed in to change notification settings - Fork 12
fix: Add domain to build_client #109
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
Conversation
beeme1mr
left a comment
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.
Could you please add some tests and update the readme?
@maxveldink, how would you feel about removing the name argument entirely? It would be a breaking change but help us avoid technical debut as we move towards a 1.0 release.
720e235 to
66daea3
Compare
Signed-off-by: William Kim <[email protected]>
|
I added some tests. I didn't want to change the behavior of the library too much, but maybe trying to instantiate a client against a domain that doesn't exist should throw or something, I feel like instantiating with the NoOp provider is unexpected behavior. |
|
Thanks for fixing this @grepfruit19! Definitely, an oversight I had when I was trying to convert us over from Further, I think dropping Let me know if that's enough to go on, or if you need more direction here. This will definitely be a breaking change. |
|
Sounds good, I can add the changes to drop |
|
I've removed Let me know if there's anything else to be done! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #109 +/- ##
=======================================
Coverage 99.39% 99.40%
=======================================
Files 12 12
Lines 166 167 +1
=======================================
+ Hits 165 166 +1
Misses 1 1 ☔ View full report in Codecov by Sentry. |
maxveldink
left a comment
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.
We need to back out the changes to the Metadata#name field and keep that the same. The changes to build_client are good though 👍🏻
Signed-off-by: William Kim <[email protected]>
maxveldink
left a comment
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.
Going to wait a little while longer for others to review as well, will merge in by EoD
beeme1mr
left a comment
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.
Approved, but please double-check if exposing the provider is required before merging.
|
@beeme1mr Is there a good way to check what provider a client is using then? |
Hey @grepfruit19, you can use the provider metadata on the client. Here's how we implemented that in the JS SDK. If you're interested, this is how we passed the provider reference to the client. |
|
@beeme1mr Then in terms of this ticket, would you be okay with me un-exposing the provider and holding off on exposing the provider metadata for future work? |
Sure, no problem at all. Thanks for your work on this PR. |
Signed-off-by: William Kim <[email protected]>
|
@beeme1mr I've updated the PR and commented out the corresponding tests |
|
@beeme1mr I think @maxveldink is out of office today, if this looks good to you mind giving it an approve + merge? |
This PR
Related Issues
Fixes #108
How to test
Instantiate the library with and without a
domainfor its provider.