[PR #516] [MERGED] Remove redundant query in collaborator API #15427

Closed
opened 2025-11-02 11:46:18 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/516
Author: @ethantkoenig
Created: 12/27/2016
Status: Merged
Merged: 12/28/2016
Merged by: @lunny

Base: masterHead: enhance/collaborators


📝 Commits (1)

  • a2f1d90 Remove redundant query in collaborator API

📊 Changes

1 file changed (+4 additions, -24 deletions)

View changed files

📝 routers/api/v1/repo/collaborators.go (+4 -24)

📄 Description

Eliminate unnecessary calls to models.AccessLevel(..), since ctx.Repo.AccessMode has already been populated.


🔄 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/516 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 12/27/2016 **Status:** ✅ Merged **Merged:** 12/28/2016 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `enhance/collaborators` --- ### 📝 Commits (1) - [`a2f1d90`](https://github.com/go-gitea/gitea/commit/a2f1d906054148f26002aa7ee80993e086bfbab0) Remove redundant query in collaborator API ### 📊 Changes **1 file changed** (+4 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `routers/api/v1/repo/collaborators.go` (+4 -24) </details> ### 📄 Description Eliminate unnecessary calls to `models.AccessLevel(..)`, since `ctx.Repo.AccessMode` has already been populated. --- <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:46:18 -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#15427