Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search an organization's repos #3031

Closed
svarlamov opened this issue Nov 30, 2017 · 5 comments
Closed

Search an organization's repos #3031

svarlamov opened this issue Nov 30, 2017 · 5 comments
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Milestone

Comments

@svarlamov
Copy link
Contributor

Description

To date, I have not been able to find a way to search an organization's repositories (even if I am the owner and we have a ton of repos under the org). This is a bit annoying with a bunch of repos and it would be great to be able to search them (by name at least) same as on the user's profile page. What would this involve? I haven't looked to deep through the code on this, but I imagine it's probably just a front-end template fix?

@lunny lunny added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Nov 30, 2017
@techknowlogick
Copy link
Member

techknowlogick commented Nov 30, 2017

I feel your pain, I have a couple of orgs with >100 repos in them and I have to use the explore page to filter for the repos I need.

I'm looking into adding this now, but if I get sidetracked and someone wants to pick it up later I'll put my notes here.

It isn't just a front-end template fix, as I've added {{template "explore/search" .}} to right under where the "create new repo for org" button is on the org profile template (/templates/org/home.tmpl), and 1. it throws an error (<eq .SortType "newest...>: error calling eq: invalid type for comparison), and 2. if I remove the sort dropdown it shows the correct search box in the org home page, however when I enter anything and search it will just add what is needed to the URL, but won't filter the page.

So what is needed is: ensure the type of SortType is a string, has a default value of newest, and add the filtering ability to org home page route. Of course the search bar will also need to be added to the template.

@richmahn
Copy link
Contributor

@techknowlogick Looking into implementing this, both for my company and upstream Gitea. Are there any reasons you found this isn't doable, or just hasn't been interest?

@lafriks
Copy link
Member

lafriks commented Jan 22, 2019

@richmahn it was just that because of code refactoring that PRs had to be redo so it was closed but feel free to implement it in new PR

@richmahn
Copy link
Contributor

@lafriks Ok, thanks. Will do.

@richmahn
Copy link
Contributor

So, signaling intent to work on this issue as well. Will add any notes to this comment like @techknowlogick did above:

  • Currently reviewing the previous PR that was closed to make sure I'm not missing anything needed for this to work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants