
I searched for captureTopConstraints on GitLab, using the search box at the top. But it found nothing. And yet here it is https://gitlab.haskell.org/ghc/ghc/merge_requests/508 What am I doing wrong? Thanks Simon

Which search box did you use? It appears for me.
https://gitlab.haskell.org/search?utf8=%E2%9C%93&search=captureTopConstraints&group_id=&project_id=1&scope=merge_requests&repository_ref=
On Mon, Mar 11, 2019 at 10:17 AM Simon Peyton Jones via ghc-devs
I searched for captureTopConstraints on GitLab, using the search box at the top. But it found nothing.
And yet here it is https://gitlab.haskell.org/ghc/ghc/merge_requests/508
What am I doing wrong?
Thanks
Simon
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

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!
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.
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!
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?
Thanks
Simon
| -----Original Message-----
| From: Matthew Pickering

Simon Peyton Jones via ghc-devs
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
participants (3)
-
Ben Gamari
-
Matthew Pickering
-
Simon Peyton Jones