1. 06 Sep, 2021 1 commit
  2. 25 Aug, 2021 3 commits
  3. 20 Jul, 2021 2 commits
  4. 10 Jul, 2021 1 commit
  5. 06 Jul, 2021 1 commit
  6. 05 Jul, 2021 14 commits
  7. 28 Jun, 2021 1 commit
  8. 26 Jun, 2021 2 commits
  9. 14 Jun, 2021 13 commits
  10. 07 Jun, 2021 2 commits
    • Gautier de Saint Martin Lacaze's avatar
      Merge pull request #713 from gitlab4j/issue-658 · 69c15a39
      Gautier de Saint Martin Lacaze authored
      Fix #658 : Pager not working properly
      69c15a39
    • Gautier de Saint Martin Lacaze's avatar
      Fix #658 : Pager not working properly · 4e9f7a6c
      Gautier de Saint Martin Lacaze authored
      Since the removal of "X-Total-Pages" and "X-Total" headers, all paginations use the kaminari counter.
      In this mode, kaminari counter is reset to -1 during the call of the last page. This part is correct.
      Then when we call the `current()` method of the pager to get the current page. This method call the same `page` method than the `next` method. In this method the pager check if there is element before checking if we call for the current page. It throws NoSuchElementException erroneously.
      
      To fix, I change the check sequence. First I check ifthe user call the current page. If so, we return the corresponding items. If not we check if there is such elements and call the API.
      4e9f7a6c