Skip to content

Add "all repositories" parameter - #935

Merged
gitblit merged 1 commit into
gitblit-org:developfrom
vitalif:search-all-repos
Oct 5, 2015
Merged

gitblit merged 1 commit into
gitblit-org:developfrom
vitalif:search-all-repos

Conversation

@vitalif

@vitalif vitalif commented Oct 1, 2015

Copy link
Copy Markdown

Currently in Gitblit you must explicitly list all repositories to search in them. This does not allow to conveniently link to search page, for example, from a bugtracker. This patch adds "in all repositories" parameter so you can link to /lucene/?allrepos=1&query=$q or select a checkbox in the UI :)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's tweak this to "All Repositories" so that it can be used elsewhere in the app, if needed.

@gitblit

gitblit commented Oct 1, 2015

Copy link
Copy Markdown
Collaborator

@vitalif This looks great. Make the small tweak and I'll merge.

@vitalif

vitalif commented Oct 1, 2015

Copy link
Copy Markdown
Author

There's an additional defect which should also be fixed: current implementation can duplicate the same repository multiple times in searchRepositories. In fact, you can even pass the same repository multiple times in the query parameter: /lucene/?query=xxx&repositories=repo+repo+repo, and it will lead to duplicate search results :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants