[PR #1016] [MERGED] Bug fixes and unit tests for org_team #15711

Closed
opened 2025-11-02 11:52:51 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1016
Author: @ethantkoenig
Created: 2/22/2017
Status: Merged
Merged: 2/23/2017
Merged by: @lunny

Base: masterHead: org_team_test


📝 Commits (1)

  • e0153fb Bug fixes and unit tests for org_team

📊 Changes

4 files changed (+362 additions, -24 deletions)

View changed files

📝 models/fixtures/repository.yml (+1 -0)
📝 models/fixtures/team.yml (+3 -3)
📝 models/org_team.go (+15 -21)
models/org_team_test.go (+343 -0)

📄 Description

  • Unit tests for models/org_team.go
  • Fix a bug in DeleteTeam(..) where stale entries in the team_repo table were not deleted.
  • Some minor cleanups in models/org_team.go (remove unused functions, fix misformated error message, etc.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1016 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 2/22/2017 **Status:** ✅ Merged **Merged:** 2/23/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `org_team_test` --- ### 📝 Commits (1) - [`e0153fb`](https://github.com/go-gitea/gitea/commit/e0153fbd8bf9a820021446caaef0a4df08afcdcd) Bug fixes and unit tests for org_team ### 📊 Changes **4 files changed** (+362 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `models/fixtures/repository.yml` (+1 -0) 📝 `models/fixtures/team.yml` (+3 -3) 📝 `models/org_team.go` (+15 -21) ➕ `models/org_team_test.go` (+343 -0) </details> ### 📄 Description - Unit tests for `models/org_team.go` - Fix a bug in `DeleteTeam(..)` where stale entries in the `team_repo` table were not deleted. - Some minor cleanups in `models/org_team.go` (remove unused functions, fix misformated error message, etc.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:52:51 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15711