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

Extend response header autocompletion support #120

Merged
merged 4 commits into from
Jun 26, 2024

Conversation

mhidalgo-bdai
Copy link
Collaborator

Follow-up to #81. This patch extends the logic for response header autocompletion to gRPC services that are not unary in both request and response.

Signed-off-by: Michel Hidalgo <[email protected]>
from bosdyn.api.lease_pb2 import ResourceTree


class GeneralizedDecorator:
class ThinDecorator:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any chance we can get a more descriptive name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not always great with names. TransparentDecorator? ForwardingDecorator is almost tautological.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Naming might be the hardest thinking in programming, but I can't tell you what a ThinDecorator does just by reading the name. Maybe just add a usage comment?

Copy link
Collaborator Author

@mhidalgo-bdai mhidalgo-bdai Jun 26, 2024

Choose a reason for hiding this comment

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

How about ForwardingWrapper? Added in 6901afa

@coveralls
Copy link

coveralls commented Jun 25, 2024

Pull Request Test Coverage Report for Build 9670158691

Details

  • 36 of 49 (73.47%) changed or added relevant lines in 3 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 46.074%

Changes Missing Coverage Covered Lines Changed/Added Lines %
spot_wrapper/testing/helpers.py 1 2 50.0%
spot_wrapper/testing/grpc.py 34 46 73.91%
Files with Coverage Reduction New Missed Lines %
spot_wrapper/testing/helpers.py 5 70.83%
Totals Coverage Status
Change from base Build 9667079323: -0.2%
Covered Lines: 1690
Relevant Lines: 3668

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 26, 2024

Pull Request Test Coverage Report for Build 9685899447

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 35 of 48 (72.92%) changed or added relevant lines in 2 files are covered.
  • 258 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.2%) to 46.07%

Changes Missing Coverage Covered Lines Changed/Added Lines %
spot_wrapper/testing/helpers.py 1 2 50.0%
spot_wrapper/testing/grpc.py 34 46 73.91%
Files with Coverage Reduction New Missed Lines %
spot_wrapper/testing/helpers.py 5 70.83%
spot_wrapper/wrapper.py 81 54.4%
spot_wrapper/cam_wrapper.py 172 0.0%
Totals Coverage Status
Change from base Build 9667079323: -0.2%
Covered Lines: 1700
Relevant Lines: 3690

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 26, 2024

Pull Request Test Coverage Report for Build 9685951175

Details

  • 36 of 49 (73.47%) changed or added relevant lines in 3 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 46.085%

Changes Missing Coverage Covered Lines Changed/Added Lines %
spot_wrapper/testing/helpers.py 1 2 50.0%
spot_wrapper/testing/grpc.py 34 46 73.91%
Files with Coverage Reduction New Missed Lines %
spot_wrapper/testing/helpers.py 5 70.83%
Totals Coverage Status
Change from base Build 9685846083: -0.2%
Covered Lines: 1701
Relevant Lines: 3691

💛 - Coveralls

@mhidalgo-bdai mhidalgo-bdai merged commit 1ad6a99 into main Jun 26, 2024
6 checks passed
@mhidalgo-bdai mhidalgo-bdai deleted the mhidalgo-bdai/response-header-autocomplete branch June 26, 2024 20:10
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.

3 participants