[GH-ISSUE #132] Organizations can repeat, and cannot be deleted. #65

Closed
opened 2026-02-27 15:54:54 +03:00 by kerem · 3 comments
Owner

Originally created by @mayankchetan on GitHub (Oct 25, 2025).
Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/132

Originally assigned to: @arunavo4 on GitHub.

Hey @arunavo4 thanks for all your great work on this project!!

I noticed that if in error i repeat adding an organization (this happened due to rate limiting timeout for the GitHub API), i do not get a warning or an error, and its added multiple times. Additionally, its not currently possible to delete an organization.

Image

ideally:

  1. Avoid duplication -> throw error to user
  2. Alert user of duplication, and ask if they want to go ahead with it (maybe some use case for folks).

But in both cases it might be useful to remove an organization and not just "ignore" it.

Thanks,
Mayank

Originally created by @mayankchetan on GitHub (Oct 25, 2025). Original GitHub issue: https://github.com/RayLabsHQ/gitea-mirror/issues/132 Originally assigned to: @arunavo4 on GitHub. Hey @arunavo4 thanks for all your great work on this project!! I noticed that if in error i repeat adding an organization (this happened due to rate limiting timeout for the GitHub API), i do not get a warning or an error, and its added multiple times. Additionally, its not currently possible to delete an organization. <img width="1634" height="518" alt="Image" src="https://github.com/user-attachments/assets/7f0ad139-221b-4415-99c7-c162a7f58ce9" /> ideally: 1. Avoid duplication -> throw error to user 2. Alert user of duplication, and ask if they want to go ahead with it (maybe some use case for folks). But in both cases it might be useful to remove an organization and not just "ignore" it. Thanks, Mayank
kerem 2026-02-27 15:54:54 +03:00
Author
Owner

@arunavo4 commented on GitHub (Oct 27, 2025):

Hi @mayankchetan check out docker pull ghcr.io/raylabshq/gitea-mirror:eb0f8f2 where duplicate adds now warn with a toast + confirmation, we enforce case-insensitive uniqueness in the DB, but if user still wants it they can add the repo/org and you can delete orgs/repos from Gitea Mirror but this strictly does not delete from Gitea rather only from Gitea Mirror. If you want to remove the repo or org you will have to do a permanent delete from gitea. This way we avoid future mishaps by not having any destructive functions on this app.

<!-- gh-comment-id:3449348342 --> @arunavo4 commented on GitHub (Oct 27, 2025): Hi @mayankchetan check out `docker pull ghcr.io/raylabshq/gitea-mirror:eb0f8f2` where duplicate adds now warn with a toast + confirmation, we enforce case-insensitive uniqueness in the DB, but if user still wants it they can add the repo/org and you can delete orgs/repos from Gitea Mirror but this strictly does not delete from Gitea rather only from Gitea Mirror. If you want to remove the repo or org you will have to do a permanent delete from gitea. This way we avoid future mishaps by not having any destructive functions on this app.
Author
Owner

@mayankchetan commented on GitHub (Oct 29, 2025):

Hey @arunavo4, was about to test this, but took a look at ghcr.io/raylabshq/gitea-mirror:pr-136 running in the background since a few days.

I can see that issues are repeating even if they exist. Creating a separate issue now.

Image
<!-- gh-comment-id:3465193139 --> @mayankchetan commented on GitHub (Oct 29, 2025): Hey @arunavo4, was about to test this, but took a look at `ghcr.io/raylabshq/gitea-mirror:pr-136` running in the background since a few days. I can see that issues are repeating even if they exist. Creating a separate issue now. <img width="1351" height="540" alt="Image" src="https://github.com/user-attachments/assets/9760f021-0282-4aa0-825d-92d75a8a7a3e" />
Author
Owner

@mayankchetan commented on GitHub (Oct 30, 2025):

Deleting orgs and warning works as intended https://github.com/RayLabsHQ/gitea-mirror/pull/136

<!-- gh-comment-id:3465329613 --> @mayankchetan commented on GitHub (Oct 30, 2025): Deleting orgs and warning works as intended https://github.com/RayLabsHQ/gitea-mirror/pull/136
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gitea-mirror#65
No description provided.