Make searches paginated#474
Conversation
11332ed to
4d8d44a
Compare
|
Excellent! |
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
4d8d44a to
d41edba
Compare
andreasabel
left a comment
There was a problem hiding this comment.
Please supply a testcase or a demo in samples/.
|
@andreasabel I've fixed up the existing samples, will this do? |
andreasabel
left a comment
There was a problem hiding this comment.
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
- #478.
samples/Search/SearchCode.hs
Outdated
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Maybe don't use the DuplicateRecordFields extension. Are there strong reasons to use it?
There was a problem hiding this comment.
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.