Kinto / Kinto/kinto-wizard

Add a way to load collections in another bucket

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Python
Stars
9
Forks
3
PR merge metrics
No merged PRs in 30d

Description

If I have the following yaml file:

```
chefclub:
collections:
categories:
...
```

I'd like to be able to use `kinto-wizard` to load this file in `chefclub-preview` rather than `chefclub`

kinto-wizard load recipes.yaml --bucket "chefclub:chefclub-preview"

or

kinto-wizard load recipes.yaml --bucket "chefclub" --dest-bucket "chefclub-preview"

What do you think?

Right now I just do:

sed -i "s/^chefclub:$/chefclub-preview:/g" recipes.yaml

Contributor guide

Open the contributing guide

Research direction

Start at the kinto-wizard load command and trace how --bucket selects the destination from recipes.yaml. Compare the two proposed command-line forms and confirm how collection paths are resolved; done means loading the file into chefclub-preview without editing the YAML while preserving existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.