-
Notifications
You must be signed in to change notification settings - Fork 194
Make searches paginated #474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make searches paginated #474
Conversation
11332ed
to
4d8d44a
Compare
Excellent! |
@Mergifyio rebase |
✅ Branch has been successfully rebased |
4d8d44a
to
d41edba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please supply a testcase or a demo in samples/
.
@andreasabel I've fixed up the existing samples, will this do? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
Could you please add the samples to the executables in samples/github-samples.cabal
so that they get built by the CI.
Concerning the tests you added, unfortunately they do not run at the moment on CI, see https://github.com/haskell-github/github/runs/6098329674?check_suite_focus=true#step:20:144 and issue
samples/Search/SearchCode.hs
Outdated
import Control.Monad (forM,forM_) | ||
import Data.Maybe (fromMaybe) | ||
import qualified Github as Github | ||
import qualified Github as Github |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you doubled this line by accident.
change needed: |
98d4b9a
to
73b301e
Compare
@andreasabel Looks like code search is broken in I've fixed it in this branch, by adding a new |
73b301e
to
3512972
Compare
Weird error message by GHC 8 and 9 in CI failure (https://github.com/haskell-github/github/runs/6228048459?check_suite_focus=true#step:18:153):
GHC 7.8 / 7.10 fail with (https://github.com/haskell-github/github/runs/6228049019?check_suite_focus=true#step:18:46):
|
src/GitHub/Data/Repos.hs
Outdated
@@ -1,5 +1,6 @@ | |||
{-# LANGUAGE CPP #-} | |||
{-# LANGUAGE FlexibleInstances #-} | |||
{-# LANGUAGE DuplicateRecordFields #-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe don't use the DuplicateRecordFields
extension. Are there strong reasons to use it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, I used DuplicateRecordFields
so I could copy-paste Repo
fields into CodeSearchRepo
fields. I'll remove it now.
Ugh, GHC-7 semigroup issue -_- |
Thanks, @414owen , looks like everything is ready. Squashing is ok? (Since there are fixup commits...) |
Sure thing! |
Previously, searches only returned the first thirty results, and there was no way to access page two.
Note that this is a breaking API change.