Skip to content

Error occurs after changing the import search query after paginating #4813

@bjester

Description

@bjester

Observed behavior

After performing a search in the Import search modal which produces more than 1 page of results, navigating to subsequent page(s) and then revising the search term with something that would produce less resources, causes the search to fail.
Image

Expected behavior

When the user updates the search term, it should reset the pagination back to page 1.

User-facing consequences

Revising search terms to be more specific after browsing through at least one page should be a well supported feature

Errors and logs

Without resetting the page index, it passes it along to the backend which returns a 404 because the results are unlikely enough to fill up to that page Image

Steps to reproduce the issue

  1. Open the Import search modal
  2. Search for a fairly basic term, e.g. 'dog'
  3. Navigate to page 2
  4. Revise the search term to 'dog drop'
  5. Observe the error

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions