Search on gitlab

Ben Gamari ben at smart-cactus.org
Tue Mar 12 18:09:42 UTC 2019


Simon Peyton Jones via ghc-devs <ghc-devs at haskell.org> writes:

> I typed the query into the search box on the top black menu bar.  The box has the encouraging text "search or jump to".
> https://gitlab.haskell.org/search?group_id=&project_id=&repository_ref=&scope=projects&search=capturetopconstraints
>
> Ah.... now I see that it's displaying a "projects" tab.  
>
> In BOLD LETTERS the page says "We couldn't find any results matching capturetopconstraints".   
>
> But there is a quiet grey "merge requests" tab that indeed shows the MR.   Ha!  That's subtle!
>
Indeed. GitLab really should be more clever about which tab it shows by
default.

I opened this related ticket [1] a few weeks ago.

> Even more oddly, when I did the same thing again (from somewhere else) I got this
> https://gitlab.haskell.org/search?utf8=%E2%9C%93&search=captureTopConstraints&group_id=&project_id=1&scope=wiki_blobs&repository_ref=
>  Note it displays "Code", "Commits" and "Comments" tabs which it did not before.
>
The search box is somewhat context-sensitive. When you are looking at a
particular project the search results will contain things code, commits,
and comments from the current project, in addition to the usual
projects, issues, merge requests, and milestones that global queries
return.

> In that second page it looks as if the "project" filter is set to GHC.
> But if actually pick GHC from the project-filter menu I get no
> results. Well, I picked "Project: Glasgow Haskell Compiler/ci-images"
> whatever that is? But there /is/ no plain GHC project in the list!

I can reproduce this. This is truly strange; seems like a bug. I'll
investigate. I've opened [2] to track this.

> When I get more results like this:
> https://gitlab.haskell.org/search?project_id=1&scope=notes&search=stub+binding
> how are the results sorted?  Can I sort them most-recent first?

That is a good question. I was hoping that the answer was that they are
sorted by relevance, since search is not terribly useful otherwise.
However, to my surprise it actually seems [3] that they are ordered by
creation date with no option to change this.

On the staging instance I had enabled Elasticsearch support, which
promised "better" search results (although it's slightly unclear what
that means; there is still no option to choose an ordering). Doing the
same on gitlab.haskell.org is on my list.

Cheers,

- Ben


[1] https://gitlab.com/gitlab-org/gitlab-ce/issues/56967#note_137118450
[2] https://gitlab.haskell.org/bgamari/gitlab-migration/issues/30
[3] https://gitlab.com/gitlab-org/gitlab-ce/issues/51991
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190312/47402bce/attachment.sig>


More information about the ghc-devs mailing list