postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.82k stars 839 forks source link

Prevent accidental deletion of Collection #12988

Closed fabianrenner closed 1 month ago

fabianrenner commented 2 months ago

Is there an existing request for this feature?

Is your feature request related to a problem?

Currently you can delete collections in a workspace without any further confirmation and even with keyboard shortcut. Since there is no different role assignment possible, each of the team members could accidentally delete a collection.

Describe the solution you'd like

To prevent accidental deletions, either a delete confirmation (similar to the API deletion procedure, where you have to type the resource name in order to delete) or to introduce another role that does not allow deleting of collections

Describe alternatives you've considered

No response

Additional context

No response

DannyDainton commented 2 months ago

Hey @fabianrenner

There is a confirmation on deleting the Collection:

image

You would need to physically perform a delete action and then hit another Delete button in the modal, to delete the Collection.

Also depending on the plan that you're on, these deleted Collections will be stored in the Trash section for a period of time and can be fully restored back into the Workspace.

image

https://go.postman.co/trash

image

There as also Role Based Access Controls in place on certain plans with limit what actions can be taken against an element in the Workspace.

https://learning.postman.com/docs/collaborating-in-postman/roles-and-permissions/#team-roles