[PR #130] [MERGED] Ordering organizations and users by name #15169

Closed
opened 2025-11-02 11:40:26 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/130
Author: @thibaultmeyer
Created: 11/10/2016
Status: Merged
Merged: 11/10/2016
Merged by: @lunny

Base: masterHead: feature/ordering-org-user


📝 Commits (1)

  • 3a10a0c Ordering organizations and users by name

📊 Changes

4 files changed (+41 additions, -21 deletions)

View changed files

📝 models/org.go (+30 -17)
📝 models/user.go (+8 -1)
📝 routers/admin/repos.go (+1 -1)
📝 routers/home.go (+2 -2)

📄 Description

Relative to the issue #3845 and #49, this Pull Request add modifications to ordering by name Organizations and User Accounts.

It's more user friendly and make search more easy when organizations and user accounts are ordered by name rather than last update datetime.

I added new function GetUsersByIDs to decrease the number of SQL queries by using IN predicate rather than just running 1 SQL query per users.

Note: @lunny @DblK I have re-created PR because rebase operation do something strange and the previous 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/130 **Author:** [@thibaultmeyer](https://github.com/thibaultmeyer) **Created:** 11/10/2016 **Status:** ✅ Merged **Merged:** 11/10/2016 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `feature/ordering-org-user` --- ### 📝 Commits (1) - [`3a10a0c`](https://github.com/go-gitea/gitea/commit/3a10a0c1ca4915db6323836fcc47e92500232714) Ordering organizations and users by name ### 📊 Changes **4 files changed** (+41 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `models/org.go` (+30 -17) 📝 `models/user.go` (+8 -1) 📝 `routers/admin/repos.go` (+1 -1) 📝 `routers/home.go` (+2 -2) </details> ### 📄 Description Relative to the issue #3845 and #49, this Pull Request add modifications to ordering by name Organizations and User Accounts. It's more user friendly and make search more easy when organizations and user accounts are ordered by name rather than last update datetime. I added new function `GetUsersByIDs` to decrease the number of SQL queries by using IN predicate rather than just running 1 SQL query per users. **Note:** @lunny @DblK I have re-created PR because rebase operation do something strange and the previous 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 11:40:26 -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#15169