[PR #2215] [MERGED] Fix counts on issues dashboard #16290

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2215
Author: @ethantkoenig
Created: 7/26/2017
Status: Merged
Merged: 8/3/2017
Merged by: @lunny

Base: masterHead: fix/issues_counts


📝 Commits (4)

📊 Changes

12 files changed (+329 additions, -90 deletions)

View changed files

📝 models/issue.go (+45 -12)
📝 models/issue_indexer.go (+0 -1)
📝 models/main_test.go (+1 -19)
📝 models/repo_list.go (+5 -0)
📝 models/unit_tests.go (+18 -0)
modules/test/context_tests.go (+150 -0)
📝 routers/api/v1/repo/issue.go (+1 -0)
📝 routers/repo/issue.go (+1 -0)
📝 routers/user/home.go (+41 -57)
routers/user/home_test.go (+33 -0)
routers/user/main_test.go (+33 -0)
📝 templates/user/dashboard/issues.tmpl (+1 -1)

📄 Description

Fixes #1325.

There is still a problem with the In your repositories/Assigned to you/Created by you counts, which always show the open counts, even if the user is looking at closed issues. I will fix this is a separate PR.


🔄 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/2215 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 7/26/2017 **Status:** ✅ Merged **Merged:** 8/3/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix/issues_counts` --- ### 📝 Commits (4) - [`4b8a454`](https://github.com/go-gitea/gitea/commit/4b8a454b50e260ee4d34f9aa9d6b6ec82dd1d89f) Fix counts on issues dashboard - [`1ed7e8d`](https://github.com/go-gitea/gitea/commit/1ed7e8d771e826d29c3029b78b71f4937180265f) setupSess -> setupSession - [`a86d736`](https://github.com/go-gitea/gitea/commit/a86d736f31b4986656dadb26f882a87b71833459) Unit test - [`9329324`](https://github.com/go-gitea/gitea/commit/93293247ac1069284f57eee86d9023ae40f218f7) Load repo owners for issues ### 📊 Changes **12 files changed** (+329 additions, -90 deletions) <details> <summary>View changed files</summary> 📝 `models/issue.go` (+45 -12) 📝 `models/issue_indexer.go` (+0 -1) 📝 `models/main_test.go` (+1 -19) 📝 `models/repo_list.go` (+5 -0) 📝 `models/unit_tests.go` (+18 -0) ➕ `modules/test/context_tests.go` (+150 -0) 📝 `routers/api/v1/repo/issue.go` (+1 -0) 📝 `routers/repo/issue.go` (+1 -0) 📝 `routers/user/home.go` (+41 -57) ➕ `routers/user/home_test.go` (+33 -0) ➕ `routers/user/main_test.go` (+33 -0) 📝 `templates/user/dashboard/issues.tmpl` (+1 -1) </details> ### 📄 Description Fixes #1325. There is still a problem with the `In your repositories`/`Assigned to you`/`Created by you` counts, which always show the open counts, even if the user is looking at closed issues. I will fix this is a separate PR. --- <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:06:50 -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#16290