Skip to content

Error Tracking: Disable next button when next pagination is empty

Peter Leitzen requested to merge pl-fix-error-tracking-next-pagination into master

What does this MR do and why?

Prior this commit the Next button of the pagination was able visible even if next page was not available (via API). Clicking on this button raised TypeError: this.pagination.next is undefined in the JS console.

Screenshot_from_2022-06-29_13-24-08

Screenshots or screen recordings

Before After
pagination-next-before pagination-next-after

How to set up and validate locally

  1. Enable Error Tracking with Sentry backend pointing to https://sentry.gitlab.net/
  2. Use GitLab Inc. | tanuki-inc because it has only 2 pages of errors
  3. Pagination errors to the last page
  4. Watch Next being disabled 🎉

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Leitzen

Merge request reports