Kong / Kong/insomnia

Not able to delete the Document in Secure Cloud

Open
#6,958 0 comments 0 reactions 0 assignees View on GitHub
B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

When I duplicated a Document, due to it was a little bit slow, I click twice the "Duplicate" button.
![image](https://github.com/Kong/insomnia/assets/99497/7c47bb4f-5acf-42d5-9d32-39fdf373a6ad)

And then two same duplicated Documents were created.

Now I want to delete the duplicated Documents, I was not able to. It should let me delete any Document I want.

### Actual Behavior

After clicking the Delete button, app gave me this error and the Document cannot be deleted.
![image](https://github.com/Kong/insomnia/assets/99497/a9cd42a6-4934-42d5-b619-5ced6cb342cc)

### Reproduction Steps

1. Create a complex Document.
2. In the Document right top corner, click three dots menu.
3. Clicking Duplicate several times.
4. I guess some duplicated Document with same key created in cloud backend.
5. Not able to delete the duplicated Documents, and see the picture as below.

![image](https://github.com/Kong/insomnia/assets/99497/655644e3-030a-4978-a24c-6addd270f78e)

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

_No response_

### Insomnia Version

8.5.1

### What operating system are you using?

Windows

### Operating System Version

Windows 10

### Installation method

Download from Official Website

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Research direction

No files, tests, or code entry points are named. Start by reproducing the duplicate-Document flow on Windows with Insomnia 8.5.1, then trace the cloud-side deletion path for duplicated Documents; done means each duplicated Document can be deleted without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.