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

fix: Do not persist storage when it is configured #559

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vdusek
Copy link
Collaborator

@vdusek vdusek commented Oct 1, 2024

Closes: #539

@vdusek vdusek requested a review from janbuchar October 1, 2024 10:29
@github-actions github-actions bot added this to the 99th sprint - Tooling team milestone Oct 1, 2024
@github-actions github-actions bot added t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics. labels Oct 1, 2024
@@ -57,7 +62,7 @@ def get_storage_client(*, client_type: StorageClientType | None = None) -> BaseS
return _services['cloud_storage_client']

if 'local_storage_client' not in _services:
_services['local_storage_client'] = MemoryStorageClient()
_services['local_storage_client'] = MemoryStorageClient(configuration=configuration)
Copy link
Collaborator

Choose a reason for hiding this comment

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

What if there is a local_storage_client with a different configuration though? I'm afraid we'll need some changes on an architectural level...

Copy link
Member

Choose a reason for hiding this comment

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

why do we even store those two separately? those should be two flavors of a single service, not two different services, at least that's how it was designed in the js version.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If you mean why we have a separate local_storage_client and cloud_storage_client, we do this so that the force_cloud switch in the SDK works. In the JS SDK, the Actor class holds the cloud client. This feels more readable to me.

@vdusek vdusek marked this pull request as draft October 24, 2024 11:46
@vdusek vdusek changed the title fix: do not persist storage when disabled fix: Do not persist storage when it is configured Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crawler doesn't respect configuration argument
3 participants