Skip to content

Conversation

@danpoletaev
Copy link
Collaborator

Currently, when opening a KV store, we only store the id and name from the get() response.

This PR updates the logic to store the entire storageObject, allowing access to additional attributes without requiring extra requests.

More context in slack

@danpoletaev danpoletaev added the t-core-services Issues with this label are in the ownership of the core services team. label Feb 10, 2025
@danpoletaev danpoletaev self-assigned this Feb 10, 2025
@danpoletaev danpoletaev added the adhoc Ad-hoc unplanned task added during the sprint. label Feb 10, 2025
@github-actions github-actions bot added this to the 109th sprint - Platform team milestone Feb 10, 2025
@github-actions github-actions bot added the tested Temporary label used only programatically for some analytics. label Feb 10, 2025
Copy link
Member

@B4nan B4nan left a comment

Choose a reason for hiding this comment

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

looking good, i am just wondering if we should make this a refactor, i don't see much value in keeping this in the changelog

@danpoletaev danpoletaev changed the title feat: set storage object on KV store open refactor: set storage object on KV store open Feb 10, 2025
@danpoletaev danpoletaev merged commit 0bae010 into master Feb 12, 2025
9 checks passed
@danpoletaev danpoletaev deleted the feat/set-storage-object-on-kv-open branch February 12, 2025 12:34
danpoletaev added a commit to apify/crawlee-python that referenced this pull request Mar 4, 2025
### Description

Currently, when opening a KV store, dataset or request queue we only
store the id and name from the get() response.

This PR updates the logic to store the entire storage_object, allowing
access to additional attributes without requiring extra requests.

More context in
[slack](https://apify.slack.com/archives/CD0SF6KD4/p1738936334553189)

P.S. Python Crawlee storage constructors are a bit different than JS
storage consturctors, that's why I've added storage_object to all of the
classes - KV store, dataset & request queue

[Similar PR in Crawlee JS](apify/crawlee#2837)

### Testing

I've added one test, which checks that KV store class has storage_object
after open.
@fnesveda fnesveda added the validated Issues that are resolved and their solutions fulfill the acceptance criteria. label Mar 24, 2025
danpoletaev added a commit that referenced this pull request Aug 5, 2025
Following up on [this recent
update](#2837) where we started
storing the full storageObject when opening a key-value store, this PR
applies the same logic when opening a dataset.

This change prepares the ground for adding a new method:
Dataset.createItemsPublicUrl, which will need access to the dataset's
urlSigningSecretKey.
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-core-services Issues with this label are in the ownership of the core services team. tested Temporary label used only programatically for some analytics. validated Issues that are resolved and their solutions fulfill the acceptance criteria.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants