Add Search feature to an organization's Members page #14811

Open
opened 2025-11-02 11:23:34 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @karthikbhandary2 on GitHub (Jul 27, 2025).

Feature Description

Currently when ever I want to search for a user in an organization I have to manually search through the entire list of members in the organization. I think adding a search bar in the members page would be a good enhancement in terms of ease of search.

How to Add Search for Organization Members

  1. There’s already a search function for users.
    ⦁ The codebase has a function called SearchUsers that can find users by name, username, etc.
    ⦁ We want to use this for searching members in an organization.
    ⦁ Right now, the members list just shows everyone in the org, with no search.
  2. How can we add search?
    ⦁ When you show the members page, let the user type a search word (like a name).
    ⦁ Pass that search word to the backend (the Go code).
  3. How do we filter the members?
    There are two main ways:
    ⦁ Option 1: Get all the member IDs for the org, then use SearchUsers to find which of those members match the search word.
    ⦁ Option 2: Change the database query so it only returns users who are both members of the org and match the search word, all in one go.
  4. What’s the benefit?
    ⦁ You don’t have to write a whole new search system for org members. You just connect the existing user search to the org members list.

If there are better ways to do this please do suggest.

Screenshots

No response

Originally created by @karthikbhandary2 on GitHub (Jul 27, 2025). ### Feature Description Currently when ever I want to search for a user in an organization I have to manually search through the entire list of members in the organization. I think adding a search bar in the members page would be a good enhancement in terms of ease of search. How to Add Search for Organization Members 1. There’s already a search function for users. ⦁ The codebase has a function called SearchUsers that can find users by name, username, etc. ⦁ We want to use this for searching members in an organization. ⦁ Right now, the members list just shows everyone in the org, with no search. 2. How can we add search? ⦁ When you show the members page, let the user type a search word (like a name). ⦁ Pass that search word to the backend (the Go code). 3. How do we filter the members? There are two main ways: ⦁ Option 1: Get all the member IDs for the org, then use SearchUsers to find which of those members match the search word. ⦁ Option 2: Change the database query so it only returns users who are both members of the org and match the search word, all in one go. 4. What’s the benefit? ⦁ You don’t have to write a whole new search system for org members. You just connect the existing user search to the org members list. If there are better ways to do this please do suggest. ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 11:23:34 -06:00
Author
Owner

@karthikbhandary2 commented on GitHub (Jul 29, 2025):

Pardon me for the mention but @techknowlogick Can you please take a look at this and let me know if I can proceed working on this?

@karthikbhandary2 commented on GitHub (Jul 29, 2025): Pardon me for the mention but @techknowlogick Can you please take a look at this and let me know if I can proceed working on this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14811