Last modified: 2014-02-17 14:22:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51674, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49674 - Restore full text search/grepping on the whole repository
Restore full text search/grepping on the whole repository
Status: REOPENED
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://git.wikimedia.org/
:
: 49702 (view as bug list)
Depends on: 49229 61463
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-17 07:32 UTC by Nemo
Modified: 2014-02-17 14:22 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2013-06-17 07:32:25 UTC
Gitweb had a grep feature, probably the only thing we miss of it.

Gitblit supports only lucene search, which doesn't seem to scale for our repository (but needs more testing, I hear). Also: "I have no interest in implementing a regex search because the Lucene search fits my needs.  If you would like to contribute a regex search I'd be happy to merge it." https://code.google.com/p/gitblit/issues/detail?id=87

https://blog.mozilla.org/webdev/2013/06/13/dxr-digests-the-firefox-codebase/ made me curious about DXR but the docs are too intricate (https://github.com/mozilla/dxr/issues/139).
Comment 1 p858snake 2013-06-17 13:26:18 UTC

*** This bug has been marked as a duplicate of bug 49229 ***
Comment 2 Nemo 2013-06-17 13:32:19 UTC
(In reply to comment #1)
> 
> *** This bug has been marked as a duplicate of bug 49229 ***

Doesn't look so to me, unless it's decided that Lucene is the only way of course.
Comment 3 Helder 2013-06-17 16:25:31 UTC
*** Bug 49702 has been marked as a duplicate of this bug. ***
Comment 4 Helder 2013-06-17 16:26:30 UTC
Copying from bug 49702:

After the migration to gitblit I miss the feature which allowed us to search
which files contain a given string, or match a given REGEX. I remmember I
linked to some of these searches on ptwiki. The links were like this:
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki%2Fcore.git&a=search&h=HEAD&st=grep&s=EXAMPLE

Would it be possible to setup something equivalent for git.wikimedia.org?

PS: Before git, there was also this tool:
https://wiki.toolserver.org/view/Wikimedia_SVN_Search
http://toolserver.org/~krinkle/wikimedia-svn-search/
Maybe Krinkle would be able to port it to git?
Comment 5 Nemo 2013-06-17 16:56:02 UTC
(In reply to comment #4)
> PS: Before git, there was also this tool:
> https://wiki.toolserver.org/view/Wikimedia_SVN_Search
> http://toolserver.org/~krinkle/wikimedia-svn-search/
> Maybe Krinkle would be able to port it to git?

FYI, before the gitweb grepping worked, I started keeping a clone of core and extensions on Toolserver at /mnt/user-store/git, so that someone could made such a tool if wanted.
Comment 6 Krinkle 2013-06-23 09:17:28 UTC
Note that GitHub has code search on both organization and repository level:

* https://github.com/search?l=&q=wgWellFormedXml+%40wikimedia&ref=advsearch&type=Code

* https://github.com/wikimedia/mediawiki-core/search?q=wgWellFormedXml

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links