searchcode-server icon indicating copy to clipboard operation
searchcode-server copied to clipboard

Add Sort in "Repository" menu

Open opt9 opened this issue 7 years ago • 5 comments

Sometimes, I want to sort "File Count" field with desc, asc.

_002

opt9 avatar Apr 06 '18 04:04 opt9

I wonder how hard this would be to implement considering that the interface is paged.

Are you using this on some dashboard interface somewhere?

boyter avatar Apr 06 '18 05:04 boyter

Are you using this on some dashboard interface somewhere?

No. :-(

FYI, My internal repository list : 30 pages, about 600 repos. I don't know how much this change would impact the performance decrease. IMHO, it would be small within 1,000 repos, and the most users/customers' repos will not exceed 1,000 repos.

I wonder how hard this would be to implement considering that the interface is paged.

IMHO, If you override getPagedRepo to get variable for 'order by' from repository list form, it would not be hard. (Yup, there is a possibility of sql injection, but you are already using prepared statement and variable binding, so that will not be the issue)

Thanks.

opt9 avatar Apr 06 '18 07:04 opt9

Just curious. There may be something I could have done in that case.

Are you just trying to keep an eye on which repositories are taking long to process? 600 repo's is quite a lot actually. How large is the index for that?

boyter avatar Apr 06 '18 07:04 boyter

600 repo's is quite a lot actually. How large is the index for that?

about 15GB

opt9 avatar Apr 06 '18 09:04 opt9

Via @sschuberth in #183

There currently seems to be no way to filter / search the list of repositories at repository/list/. I tried using a literal rn:name search, but that did not actually list anything, which is probably by design, as such a search is supposed to limit searches in repositories to the matching repository names, and not only list the repository names themselves. In a way this feature request might be related to #178 in the sense that the repository list should be more dynamic and less static.

boyter avatar May 03 '18 23:05 boyter