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

PLAT-10460: Implemented OBO-enabled endpoints #123

Merged
merged 4 commits into from
Feb 16, 2021
Merged

PLAT-10460: Implemented OBO-enabled endpoints #123

merged 4 commits into from
Feb 16, 2021

Conversation

symphony-elias
Copy link
Contributor

@symphony-elias symphony-elias commented Feb 15, 2021

Ticket

PLAT-10460

Description

Implemented OBO-enabled endpoints.

Checklist

  • Referenced a ticket in the PR title and in the corresponding section
  • Filled properly the description and dependencies, if any
  • Unit tests updated or added
  • Docstrings added or updated
  • Updated the documentation in docs folder

async def __aenter__(self):
return self

async def __aexit__(self, exc_type, exc_val, exc_tb):
Copy link
Contributor

Choose a reason for hiding this comment

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

how do we document that you should use async with here?

Copy link
Contributor Author

@symphony-elias symphony-elias Feb 15, 2021

Choose a reason for hiding this comment

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

I added code samples in docs/authentication.md.

self._config = config
self._obo_session = obo_session

self._api_client_factory = ApiClientFactory(config)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we recreate one or reuse the one from BDK? (I'm wondering why we did it like that for the Java BDK)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep that's what I was wondering, do we have a good reason to do it?
If we reuse the existing one from BDK it means we don't have to use async with

@symphony-elias symphony-elias marked this pull request as ready for review February 15, 2021 17:32
@symphony-elias symphony-elias requested a review from a team February 15, 2021 17:32
@symphony-elias symphony-elias merged commit 336638d into finos:2.0 Feb 16, 2021
@symphony-elias symphony-elias deleted the PLAT-10460 branch February 16, 2021 09:43
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.

2 participants