Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Alewis/refactor key list #531

Merged
merged 9 commits into from
Sep 9, 2019
Merged

Conversation

ashleymichal
Copy link
Contributor

@ashleymichal ashleymichal commented Sep 6, 2019

Closes #447

This extracts the logic of fetching all of the keys for a given KV namespace into an iterator, which will allow us to either print to standard out, or collect the keys as needed for other operations, without repeating all the fetch cursor logic. This is handy for implementing sync, which will need to collect a list of uploaded keys from the API to compare to local keys in order to decide what to delete.

@ashleymichal ashleymichal changed the base branch from alewis/refactor-publish-sites to feat-kv-additions September 6, 2019 18:45
@ashleymichal ashleymichal added refactor regression Something is broken, but works in previous releases status - needs review labels Sep 6, 2019
@ashleymichal ashleymichal added this to the KV Additions milestone Sep 6, 2019
@ashleymichal ashleymichal self-assigned this Sep 6, 2019
@ashleymichal
Copy link
Contributor Author

ashleymichal commented Sep 6, 2019

need to handle errors outside of the iterator.

@ashleymichal ashleymichal force-pushed the alewis/refactor-key-list branch 3 times, most recently from 15c8388 to 0938425 Compare September 6, 2019 22:26
@gabbifish
Copy link
Contributor

I opened a PR (#536) that should make this logic a little simpler--let me know what you think!

@ashleymichal
Copy link
Contributor Author

I opened a PR (#536) that should make this logic a little simpler--let me know what you think!

Perfect! Merged. Ready for review

src/commands/kv/key/key_list.rs Outdated Show resolved Hide resolved
@gabbifish gabbifish changed the base branch from feat-kv-additions to feat-kv-commands September 9, 2019 18:05
@ashleymichal ashleymichal changed the title Alewis/refactor key list [WIP] - Alewis/refactor key list Sep 9, 2019
@ashleymichal ashleymichal changed the base branch from feat-kv-commands to feat-kv-additions September 9, 2019 18:20
@ashleymichal ashleymichal changed the base branch from feat-kv-additions to feat-kv-commands September 9, 2019 18:51
@ashleymichal ashleymichal changed the title [WIP] - Alewis/refactor key list Alewis/refactor key list Sep 9, 2019
@gabbifish gabbifish merged commit bfe8d92 into feat-kv-commands Sep 9, 2019
@delete-merged-branch delete-merged-branch bot deleted the alewis/refactor-key-list branch September 9, 2019 19:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactor regression Something is broken, but works in previous releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants