Skip to content

Conversation

@Pijukatel
Copy link
Contributor

Description

  • Extract API storage client creation from the Apify storage open method to ApiClientFactory
  • Create specific variants of the factory and use them in open methods of Apify storages.

@github-actions github-actions bot added this to the 127th sprint - Tooling team milestone Nov 5, 2025
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Nov 5, 2025
@Pijukatel Pijukatel added the adhoc Ad-hoc unplanned task added during the sprint. label Nov 5, 2025
@Pijukatel
Copy link
Contributor Author

Refactoring refactoring to the discussion in:
https://apify.slack.com/archives/CD0SF6KD4/p1761306404835039

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.
Copy link
Contributor Author

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???
Copy link
Contributor Author

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

@Pijukatel Pijukatel requested a review from vdusek November 5, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants