mapbox / mapbox/tilesets-cli

`tilesets delete-source` does not delete source

Open
#171 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I uploaded a broken source file using tilesets upload-source and after I discovered the error with my file, I tried to delete the existing source with tilesets delete-source and upload a fixed file to the same source id. (I also deleted the tileset with tilesets delete but that is not where the issue is being encountered.)

When I use tilesets view-source I see the "files" key-value increment by one and "source_size"/"file_size" increase with each new try.

It would seem to me that tilesets delete-source is not actually deleting the source, even with Source deleted. confirmation.

My current workaround is to make a new source with a new source id, which is fine, but I thought it important to mention this error I found.

Thanks!

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

Reproduce the sequence with tilesets upload-source, tilesets delete-source, and tilesets view-source, checking whether the file count and reported sizes change after deletion and re-upload. Done means deleting a source removes its existing files so the same source id can accept a fixed upload without accumulating them.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.