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

fix: policies page pagination not working #523

Merged

Conversation

Junjiequan
Copy link
Member

@Junjiequan Junjiequan commented May 26, 2023

Description

Fixed page pagination for policies page.

Did not include API test for the fix. As in the DatasetLifecycle already included filter test for policies query and it works fine. Considering we are sending filter values in a mixed way of query & header, I think we should keep the test as it is now.
The testing for filter was passing with pagination bug, because in the test it expects to receive filter from query, but the actual filter was sent through header, whereas query filter by default is set to {}.

Tests included/Docs Updated?

  • Included for each change/fix?
  • Passing? (Merge will not be approved unless this is checked)
  • Docs updated?
  • New packages used/requires npm install?
  • Toggle added for new features?

@Junjiequan Junjiequan changed the title [WIP]fix: policies page pagination not working fix: policies page pagination not working May 26, 2023
Copy link
Collaborator

@martin-trajanovski martin-trajanovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@nitrosx nitrosx merged commit 18ab733 into master May 26, 2023
@nitrosx nitrosx deleted the SWAP-3300-scicat-be-items-per-page-function-doesn-t-work-pr branch May 26, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants