Skip to content

chore: Allow opening pre-existing unnamed storage#1414

Merged
Pijukatel merged 1 commit intomasterfrom
pre-existing-unnamed-storage
Sep 17, 2025
Merged

chore: Allow opening pre-existing unnamed storage#1414
Pijukatel merged 1 commit intomasterfrom
pre-existing-unnamed-storage

Conversation

@Pijukatel
Copy link
Copy Markdown
Collaborator

@Pijukatel Pijukatel commented Sep 17, 2025

Description

  • Allow opening pre-existing unnamed storage

Issues

Testing

  • Added unit tests

@Pijukatel Pijukatel added the adhoc Ad-hoc unplanned task added during the sprint. label Sep 17, 2025
@github-actions github-actions Bot added this to the 123rd sprint - Tooling team milestone Sep 17, 2025
@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 Sep 17, 2025
@Pijukatel Pijukatel removed the tested Temporary label used only programatically for some analytics. label Sep 17, 2025
@Pijukatel Pijukatel requested a review from Copilot September 17, 2025 11:21
@Pijukatel Pijukatel marked this pull request as ready for review September 17, 2025 11:21
@github-actions github-actions Bot added the tested Temporary label used only programatically for some analytics. label Sep 17, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR allows opening pre-existing unnamed storage instances by their ID, removing the previous restriction that required either a name or alias. The change enables users to reconnect to storage instances that were created with aliases but need to be accessed later using only their ID.

  • Removed the runtime error that required storage instances to have either a name or an alias
  • Modified caching logic to handle unnamed storage instances more gracefully
  • Added test coverage for opening pre-existing unnamed storage by ID

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/crawlee/storages/_storage_instance_manager.py Removed the RuntimeError for unnamed storage and restructured caching logic with clearer comments
tests/unit/storages/test_storage_instance_manager.py Added test case to verify pre-existing unnamed storage can be opened by ID

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/crawlee/storages/_storage_instance_manager.py
@Pijukatel Pijukatel requested a review from vdusek September 17, 2025 11:28
Copy link
Copy Markdown
Collaborator

@vdusek vdusek left a comment

Choose a reason for hiding this comment

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

lgtm

@Pijukatel Pijukatel merged commit 8f33393 into master Sep 17, 2025
21 of 22 checks passed
@Pijukatel Pijukatel deleted the pre-existing-unnamed-storage branch September 17, 2025 15:16
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. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants