[PR #2614] [MERGED] Remove redudant issue LoadAttributes() calls #16506

Closed
opened 2025-11-02 12:12:13 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2614
Author: @Morlinest
Created: 9/27/2017
Status: Merged
Merged: 9/27/2017
Merged by: @andreynering

Base: masterHead: fix/reduce-redudant-load-calls


📝 Commits (1)

  • 64f036e Remove redudant issue LoadAttributes() calls

📊 Changes

2 files changed (+1 additions, -12 deletions)

View changed files

📝 models/issue.go (+1 -6)
📝 routers/api/v1/repo/issue.go (+0 -6)

📄 Description

This should reduce duplicated LoadAttributes() calls. Functions models.Issues and models.GetIssueByIndex are already doing it. This should speed up Gitea a little bit when working with issues.


🔄 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/2614 **Author:** [@Morlinest](https://github.com/Morlinest) **Created:** 9/27/2017 **Status:** ✅ Merged **Merged:** 9/27/2017 **Merged by:** [@andreynering](https://github.com/andreynering) **Base:** `master` ← **Head:** `fix/reduce-redudant-load-calls` --- ### 📝 Commits (1) - [`64f036e`](https://github.com/go-gitea/gitea/commit/64f036e51181689d0a070a82a2f90883fb199d3d) Remove redudant issue LoadAttributes() calls ### 📊 Changes **2 files changed** (+1 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `models/issue.go` (+1 -6) 📝 `routers/api/v1/repo/issue.go` (+0 -6) </details> ### 📄 Description This should reduce duplicated `LoadAttributes()` calls. Functions `models.Issues` and `models.GetIssueByIndex` are already doing it. This should speed up Gitea a little bit when working with issues. --- <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 12:12:13 -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#16506