Skip to content

Update URL with cursor to load a specific page of results

mo khan requested to merge mokhax/448916/pagination-bookmark into master

What does this MR do and why?

This change updates the Explore > Dependencies page to accept a ?cursor= query string parameter that can be used to load a specific page of results.

#448916 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Before After

How to set up and validate locally

  1. In rails console enable the experiment fully
    Feature.enable(:explore_dependencies)
  2. Visit http://127.0.0.1:3000/explore/dependencies
  3. Click the Next page of results.
  4. Check that the url has been updated to include the query string parameters for the next page of results.
  5. Reload the page with the ?cursor= query string parameter and verify that the page shows the correct page of results.
Edited by mo khan

Merge request reports