spacedriveapp / spacedrive

Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.
https://spacedrive.com
GNU Affero General Public License v3.0
29.33k stars 835 forks source link

No Duplicating Tags #2505

Closed Rocky43007 closed 1 month ago

Rocky43007 commented 1 month ago

This PR makes it so tags cannot be created with the same name, stopping duplicate tags from existing. The front-end doesn't exist and this PR adds backend functionality.

This is the error now from the backend when trying to create a duplicate tag:

Error executing operation: ErrResolverError(Error { code: Conflict, message: "Tag with the same name already exists", cause: None })
vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **spacedrive-landing** | ⬜️ Ignored ([Inspect](https://vercel.com/spacedrive/spacedrive-landing/HYx7FnMRUVMUvE8kPq4jwGdpPk3i)) | [Visit Preview](https://spacedrive-landing-git-rocky-no-dup-tags-spacedrive.vercel.app) | | May 24, 2024 6:17pm | | **spacedrive-web** | ⬜️ Ignored ([Inspect](https://vercel.com/spacedrive/spacedrive-web/B7znWe9Y1gkZLgBVxUxA2gxqu4rY)) | [Visit Preview](https://spacedrive-web-git-rocky-no-dup-tags-spacedrive.vercel.app) | | May 24, 2024 6:17pm |