Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.x - Clear url parameters for entity search tabs #2735

Open
wants to merge 5 commits into
base: dspace-7_x
Choose a base branch
from

Conversation

Atmire-Kristof
Copy link
Contributor

@Atmire-Kristof Atmire-Kristof commented Jan 10, 2024

References

Description

Clears all url parameters when switching search tabs on entity pages to avoid using non-existent filters/sort/configurations/pages etc. on the new search tab.
Clears url parameters and component properties when applying startsWith or value on browse-by pages, avoiding a conflict between the two described in #2739

Instructions for Reviewers

How to test entity pages:

  • Visit an entity item page containing more than one search tab, with one search tab containing a filter or sort option not available on the other tab
  • Select a value for that filter/sort option
  • Click the other tab
  • All parameters except the tab identifier should be cleared and search is still functional
  • Perform the same test, but one tab containing more pages of results than the other, selecting the last page and clicking the other tab, you should end up on the first page of the new search tab

How to test browse-by pages:

  • Visit a browse-by metadata page (e.g. subject)
  • Select a value
  • Search for a different value. It should clear the previous value and ONLY display the "startsWith" value you just entered, as well as any results matching it
  • Selecting a value after a search should also clear the "startsWith" parameter, in order for only the clicked value to be visible

Checklist

This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!

  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using yarn lint
  • My PR doesn't introduce circular dependencies (verified via yarn check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

@tdonohue tdonohue added bug 1 APPROVAL pull request only requires a single approval to merge labels Jan 10, 2024
@tdonohue tdonohue added this to the 7.6.2 milestone Jan 10, 2024
@Atmire-Kristof
Copy link
Contributor Author

Applied an additional fix for #2739, since it's related to the same issue of clearing url parameters.

@alanorth alanorth changed the title Clear url parameters for entity search tabs 7.x - Clear url parameters for entity search tabs Mar 9, 2024
@tdonohue tdonohue added the affects: 7.x Issue impacts 7.x releases label Jun 18, 2024
@tdonohue tdonohue removed this from the 7.6.2 milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 APPROVAL pull request only requires a single approval to merge affects: 7.x Issue impacts 7.x releases bug
Projects
Status: 🙋 Needs Reviewers Assigned
Development

Successfully merging this pull request may close these issues.

2 participants