[PR #2741] [MERGED] Hide unactive on explore users and some refactors #16566

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2741
Author: @lunny
Created: 10/19/2017
Status: Merged
Merged: 10/24/2017
Merged by: @lafriks

Base: masterHead: lunny/hide_unactive_user_explore


📝 Commits (10+)

  • 4ee313a hide unactive on explore users and some refactors
  • 03cd6e5 fix test for removed Organizations
  • 1dacbcd fix test for removed Organizations
  • 7fc4792 fix imports
  • 623f897 fix logic bug
  • c849eab refactor the toConds
  • 8302855 Rename TestOrganizations to TestSearchUsers and add tests for users
  • 97d7d6d fix other tests
  • b6f81f8 fix other tests
  • f7db974 fix watchers tests

📊 Changes

15 files changed (+142 additions, -150 deletions)

View changed files

📝 models/fixtures/issue_watch.yml (+1 -1)
📝 models/fixtures/user.yml (+2 -0)
📝 models/fixtures/watch.yml (+1 -1)
📝 models/issue_watch_test.go (+1 -1)
📝 models/notification_test.go (+5 -2)
📝 models/org.go (+0 -17)
📝 models/org_test.go (+0 -21)
📝 models/repo_watch_test.go (+11 -5)
📝 models/user.go (+32 -42)
📝 models/user_test.go (+51 -0)
📝 modules/util/util.go (+15 -0)
📝 routers/admin/orgs.go (+2 -5)
📝 routers/admin/users.go (+2 -5)
📝 routers/api/v1/user/user.go (+1 -1)
📝 routers/home.go (+18 -49)

📄 Description

Unactive user should not displayed on explore UI. This PR also reafctors SearchUserName to SearchUsers.


🔄 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/2741 **Author:** [@lunny](https://github.com/lunny) **Created:** 10/19/2017 **Status:** ✅ Merged **Merged:** 10/24/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `lunny/hide_unactive_user_explore` --- ### 📝 Commits (10+) - [`4ee313a`](https://github.com/go-gitea/gitea/commit/4ee313ada910d5fd5bbb6535dc081cb142a4550e) hide unactive on explore users and some refactors - [`03cd6e5`](https://github.com/go-gitea/gitea/commit/03cd6e525ac4888d8e15383976e0520ea1ba9964) fix test for removed Organizations - [`1dacbcd`](https://github.com/go-gitea/gitea/commit/1dacbcd99d0d015ebbe6126bda5e16b03d7f65d2) fix test for removed Organizations - [`7fc4792`](https://github.com/go-gitea/gitea/commit/7fc4792aaf39659800cbc1aac769eb3457b5724f) fix imports - [`623f897`](https://github.com/go-gitea/gitea/commit/623f897bbe580dd9ee8b0c9e5c00ffbd44857ed8) fix logic bug - [`c849eab`](https://github.com/go-gitea/gitea/commit/c849eabd92111fe7861e2b3124b2751960b0e83e) refactor the toConds - [`8302855`](https://github.com/go-gitea/gitea/commit/83028555cb931542e570e5ad32194f792e9b4631) Rename TestOrganizations to TestSearchUsers and add tests for users - [`97d7d6d`](https://github.com/go-gitea/gitea/commit/97d7d6d19f5f08e739f53354a39279de47e0c103) fix other tests - [`b6f81f8`](https://github.com/go-gitea/gitea/commit/b6f81f8efa6fff8e527b021252f926f6902794bb) fix other tests - [`f7db974`](https://github.com/go-gitea/gitea/commit/f7db974ec573c206ef73a3f0fcdb2e8d4143411c) fix watchers tests ### 📊 Changes **15 files changed** (+142 additions, -150 deletions) <details> <summary>View changed files</summary> 📝 `models/fixtures/issue_watch.yml` (+1 -1) 📝 `models/fixtures/user.yml` (+2 -0) 📝 `models/fixtures/watch.yml` (+1 -1) 📝 `models/issue_watch_test.go` (+1 -1) 📝 `models/notification_test.go` (+5 -2) 📝 `models/org.go` (+0 -17) 📝 `models/org_test.go` (+0 -21) 📝 `models/repo_watch_test.go` (+11 -5) 📝 `models/user.go` (+32 -42) 📝 `models/user_test.go` (+51 -0) 📝 `modules/util/util.go` (+15 -0) 📝 `routers/admin/orgs.go` (+2 -5) 📝 `routers/admin/users.go` (+2 -5) 📝 `routers/api/v1/user/user.go` (+1 -1) 📝 `routers/home.go` (+18 -49) </details> ### 📄 Description Unactive user should not displayed on explore UI. This PR also reafctors `SearchUserName` to `SearchUsers`. --- <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:13:35 -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#16566