-
Notifications
You must be signed in to change notification settings - Fork 132
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
Update client wrappers with new async APIs #1327
Update client wrappers with new async APIs #1327
Conversation
Codecov Report
Additional details and impacted files
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Seems like this has been left un-pinned and un-documented for a long time. Might as well fix that, so we can address the new async APIs in e.g. #1327 in a standardized way.
5740ef6
to
701e780
Compare
Pull Request Test Coverage Report for Build 018e9ca6-a094-49e0-99cd-bf58edb8502cDetails
💛 - Coveralls |
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.
gonna request some relatively minor things, as there's some odd inconsistencies / unrelated checks / tests that don't really test anything.
generally: tackle what you want / what you agree with, since a moderate amount of the comments are fuzzy.
overall looks good though, should be an easy re-review. and I'm curious if you have any reasons for/against adding another metrics tag for async APIs.
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.
I'll make a task or something for the followups 👍 I might just tackle that today.
Followups from #1327: 1. simplifying the memo/search-attr encoding tests 2. making sure the dataconverter tests can detect correct vs incorrect encoder use 1 is pretty simple: memos and search attrs are ALWAYS JSON because the server must interpret them, so the exact bytes should not change in the future. A hardcoded string is easy to verify, and strengthens the guarantee that "this should not change even if other encoding changes". 2 is more interesting: as originally written, the test would still pass if the custom dataconverter was *not* saved and used. The type-assertion to check the internal field somewhat prevents that, but it's unnecessary and a disjointed check. So it has been rewritten: now the serialized request bytes must clearly come from the test encoder, not the default encoder, and they must be detectably different.
What changed?
Updating client wrappers to expose new async methods.
These changes were missed in #1321.
How did you test it?
Unit test