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

PROD-2658 Fix pagination not being reset #5234

Conversation

lucanovera
Copy link
Contributor

@lucanovera lucanovera commented Aug 26, 2024

Description Of Changes

Fix D&D bug where table stays in current page (2,3, etc) even when you go to a different page, resulting in an empty table.

Note: The only thing missing here is resetting after hitting 'Show full schema', but I'm working on the PR to move away from that toggle to use Filter Tabs instead. I'll make sure the filter tabs do reset the paging state.

Code Changes

  • Call resetPageIndexToDefault in Data Detection and Data Discovery tables whenever the urn or search query changes
  • Call resetPageIndexToDefault whenever the pageSize is changed on EVERY table in fides (seems like a safe choice to reset after page size changes)

Steps to Confirm

  • Go to Data Detection or Data Discovery
  • Navigate down to a table with multiple pages or results
  • Go to the second page of the results using the pagination bar
  • Now, click on the previous page on the breadcrumbs
  • Check that the table has gone back to page 1

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Aug 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 28, 2024 0:46am

Copy link

cypress bot commented Aug 26, 2024

fides    Run #9695

Run Properties:  status check passed Passed #9695  •  git commit 55c330d971 ℹ️: Merge e02e136df59afad18234fb31097515033e720d96 into e64cf555ecf1bd16c1118809bb0f...
Project fides
Branch Review refs/pull/5234/merge
Run status status check passed Passed #9695
Run duration 00m 36s
Commit git commit 55c330d971 ℹ️: Merge e02e136df59afad18234fb31097515033e720d96 into e64cf555ecf1bd16c1118809bb0f...
Committer Lucano Vera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

@lucanovera lucanovera requested a review from jpople August 26, 2024 21:52
Copy link
Contributor

@jpople jpople left a comment

Choose a reason for hiding this comment

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

Tested locally, confirmed working as expected.

…able-after-going-back-using-Data-Detection-Discovery-Breadcrumbs
@lucanovera lucanovera merged commit 2f84155 into main Aug 28, 2024
4 of 5 checks passed
@lucanovera lucanovera deleted the PROD-2658-Blank-table-after-going-back-using-Data-Detection-Discovery-Breadcrumbs branch August 28, 2024 12:42
Copy link

cypress bot commented Aug 28, 2024

fides    Run #9696

Run Properties:  status check passed Passed #9696  •  git commit 2f84155878: PROD-2658 Fix pagination not being reset (#5234)
Project fides
Branch Review main
Run status status check passed Passed #9696
Run duration 00m 39s
Commit git commit 2f84155878: PROD-2658 Fix pagination not being reset (#5234)
Committer Lucano Vera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

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.

2 participants