Skip to content

fix(clerk-js): Incorrect result counters in data tables - #2056

Merged
panteliselef merged 2 commits into
mainfrom
elef/SDK-893-incorrect-counts
Nov 7, 2023
Merged

fix(clerk-js): Incorrect result counters in data tables#2056
panteliselef merged 2 commits into
mainfrom
elef/SDK-893-incorrect-counts

Conversation

@panteliselef

@panteliselefpanteliselef commented Nov 6, 2023

Copy link
Copy Markdown
Contributor

Description

This PR fixes issues with incorrect values in table pagination as users select pages

Before

Page 2
image

After

Page 2
image

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Packages affected

  • @clerk/backend
  • @clerk/chrome-extension
  • @clerk/clerk-js
  • @clerk/clerk-expo
  • @clerk/fastify
  • gatsby-plugin-clerk
  • @clerk/localizations
  • @clerk/nextjs
  • @clerk/clerk-react
  • @clerk/remix
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/themes
  • @clerk/types
  • build/tooling/chore

@panteliselefpanteliselef self-assigned this Nov 6, 2023
@changeset-bot

changeset-botBot commented Nov 6, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fb2df9d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
NameType
@clerk/clerk-jsPatch
@clerk/sharedPatch
@clerk/chrome-extensionPatch
@clerk/clerk-expoPatch
@clerk/backendPatch
@clerk/fastifyPatch
@clerk/nextjsPatch
@clerk/clerk-reactPatch
@clerk/remixPatch
@clerk/clerk-sdk-nodePatch
gatsby-plugin-clerkPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@panteliselef
panteliselef marked this pull request as ready for review November 6, 2023 18:14
@panteliselef
panteliselef requested a review from a team as a code ownerNovember 6, 2023 18:14

@tmilewskitmilewski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

@dimkldimkl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❓ Is it possible to add one test for each component?

@nikosdouvlisnikosdouvlis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great job @panteliselef - can we please add at least one unit test covering these?

Comment thread.changeset/chatty-boats-tease.md Outdated
@panteliselef
panteliselefforce-pushed the elef/SDK-893-incorrect-counts branch from eb04b8d to fb2df9dCompareNovember 7, 2023 09:42
@panteliselef
panteliselef added this pull request to the merge queue Nov 7, 2023
Merged via the queue into main with commit 64d3763Nov 7, 2023
@panteliselef
panteliselef deleted the elef/SDK-893-incorrect-counts branch November 7, 2023 09:55
panteliselef added a commit that referenced this pull request Nov 7, 2023
* fix(clerk-js): Incorrect result counters in data tables
* test(clerk-js): Unit test for pagination counts
(cherry picked from commit 64d3763)
github-merge-queueBot pushed a commit that referenced this pull request Nov 7, 2023
* fix(clerk-js): Incorrect result counters in data tables (#2056)
* fix(clerk-js): Incorrect result counters in data tables
* test(clerk-js): Unit test for pagination counts
(cherry picked from commit 64d3763)
* chore(clerk-js): Import missing act
This was caused by missing commit that was not backported
---------
Co-authored-by: panteliselef <panteliselef@outlook.com>
@panteliselef

Copy link
Copy Markdown
ContributorAuthor

!snapshot

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@panteliselef@tmilewski@nikosdouvlis@dimkl@clerk-cookie