-
Notifications
You must be signed in to change notification settings - Fork 19
refactor: use CloudantBaseService as a super of CloudantV1 #879
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
ricellis
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.
This looks good to me, but it does need some copyright date updates
|
@ricellis good catch, but I keep it draft, because remembered that we also want to reuse client in session auth |
c0f2cac to
af755bc
Compare
ad16a45 to
858f318
Compare
ricellis
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.
1 nit I missed first time round, but +1
|
|
||
| def set_jar(self, jar): | ||
| """Sets the cookie jar for the authenticator. | ||
| def set_http_client(self, http_client: Session, jar: RequestsCookieJar) -> None: |
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.
since it is internal can we use the leading _ naming? ofc we'd need to update the matching callers too.
| def set_http_client(self, http_client: Session, jar: RequestsCookieJar) -> None: | |
| def _set_http_client(self, http_client: Session, jar: RequestsCookieJar) -> None: |
f7842c1 to
16867c7
Compare
PR summary
CouchDbSessionAuthenticator, so it'd be used in token manager.TestPageIteratorin pagination's tests toBaseTestPageIteratorto avoid test runner's warnings.Fixes: s1030
Note: An existing issue is required before opening a PR.
PR Checklist
Please make sure that your PR fulfills the following requirements:
Angular Commit Message Guidelines.
PR Type
What is the current behavior?
We monkey-patch methods of CloudantV1 to get extended functionality for generated sdk
What is the new behavior?
Extend functionality in base class and switch CloudantV1 to inherit from it
Does this PR introduce a breaking change?
Other information