mapbox / mapbox/tilesets-cli

Feedback for upload-source endpoint

Open
#99 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

nice-to-have
Dominant language
Python
Stars
141
Forks
27
PR merge metrics
No merged PRs in 30d

Description

It would be helpful to have the `upload-source` endpoint, automatically call the `list-source` endpoint to list all the already existing sources for the tileset ID before moving to add or replace the source. That way users can compare source sizes and avoid duplicating a source that already exists in their tileset. So it will be something like:

`tilesets upload-source ./file.geojson
`
“The following source exists in tileset if you want to replace your source use --replace flag. If you want to add an additional source enter, "Yes". Enter "No" to continue with the existing sources”
List of the sources here...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the CLI entry points for `upload-source` and `list-source`, and trace how the tileset ID and source list are handled. Verify the existing-source prompt, `--replace` path, add-source choice, and continue-with-existing-sources choice against the issue text; done means `upload-source` lists existing sources before adding or replacing one.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.