Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore: Remove client construction from SignUp/In funcs#62789

Merged
varungandhi-src merged 1 commit into
mainfrom
vg/debuggability
May 21, 2024
Merged

chore: Remove client construction from SignUp/In funcs#62789
varungandhi-src merged 1 commit into
mainfrom
vg/debuggability

Conversation

@varungandhi-src

@varungandhi-src varungandhi-src commented May 20, 2024

Copy link
Copy Markdown
Contributor

These functions are used in test code, which makes it tricker to
pass in loggers for checking requests and responses. Instead, make
the API method-based. This introduces slightly more boilerplate
since Client construction is fallible (so you can't chain
NewClient(...).SignUp(...)), but it allows calling code
to pass in loggers more easily for debugging test failures.

Test plan

Covered by existing tests

@cla-bot cla-bot Bot added the cla-signed label May 20, 2024
@varungandhi-src varungandhi-src requested a review from eseliger May 20, 2024 10:10
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels May 20, 2024
@varungandhi-src varungandhi-src enabled auto-merge (squash) May 20, 2024 10:12
These functions are used in test code, which makes it tricker to
pass in loggers for checking requests and responses. Instead, make
the API method-based. This introduces slightly more boilerplate
since Client construction is fallible, but it allows calling code
to pass in loggers more easily for debugging test failures.

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, looks good 👍

@varungandhi-src varungandhi-src merged commit e4bb0b5 into main May 21, 2024
@varungandhi-src varungandhi-src deleted the vg/debuggability branch May 21, 2024 13:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants