mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 20:34:19 +00:00
fix(server): scope registry prune to tracked entries only
Group-based filter now requires entry.Tracked to avoid removing unrelated agent entries that happen to share the same group name.
This commit is contained in:
@@ -270,8 +270,8 @@ func (s *Server) handleUninstallRepo(w http.ResponseWriter, r *http.Request) {
|
||||
if fullName == repoName {
|
||||
continue
|
||||
}
|
||||
// Match skills grouped under this repo (group="team-skills" for repo "_team-skills")
|
||||
if entry.Group == trimmedGroup {
|
||||
// Match tracked skills grouped under this repo (group="team-skills" for repo "_team-skills")
|
||||
if entry.Tracked && entry.Group == trimmedGroup {
|
||||
continue
|
||||
}
|
||||
// Match nested members (e.g., "org/_team-skills/sub-skill")
|
||||
|
||||
Reference in New Issue
Block a user