-
Notifications
You must be signed in to change notification settings - Fork 16
refactor: Extract API storage client creation from the Apify storage code #663
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
base: master
Are you sure you want to change the base?
Conversation
|
Refactoring refactoring to the discussion in: |
| raw_metadata = await resource_client.get() | ||
| metadata = self._get_metadata(raw_metadata) | ||
| if not raw_metadata: | ||
| # Do we want this??? Backwards compatibility, so probably yes. |
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.
One edge case from the discussion
| if raw_metadata: | ||
| return resource_client, self._get_metadata(raw_metadata) | ||
| # If we do not raise here, we will behave same as for default storage. We create it even though it | ||
| # should exist already. Consistency or throw an error??? |
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.
The other edge case from the discussion
Description
openmethod toApiClientFactoryopenmethods of Apify storages.