Skip to content

feat(backend): Introduce a new getOrganizationInvitationList() method#1796

Merged
chanioxaris merged 1 commit intomainfrom
haris/org-221-support-status-filtering-in-bapi-list-org-invitations
Sep 29, 2023
Merged

feat(backend): Introduce a new getOrganizationInvitationList() method#1796
chanioxaris merged 1 commit intomainfrom
haris/org-221-support-status-filtering-in-bapi-list-org-invitations

Conversation

@chanioxaris
Copy link
Copy Markdown
Member

Description

Introduce a new getOrganizationInvitationList() method on the Organization resource, which you can use in order to list the invitations. The new method supports filtering by status and also the default paginated parameters, limit and offset
We also mark as deprecated the old getPendingOrganizationInvitationList, which was used to only list the pending organization invitations

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/clerk-js
  • @clerk/clerk-react
  • @clerk/nextjs
  • @clerk/remix
  • @clerk/types
  • @clerk/themes
  • @clerk/localizations
  • @clerk/clerk-expo
  • @clerk/backend
  • @clerk/clerk-sdk-node
  • @clerk/shared
  • @clerk/fastify
  • @clerk/chrome-extension
  • gatsby-plugin-clerk
  • build/tooling/chore

@chanioxaris chanioxaris requested a review from a team as a code owner September 28, 2023 14:43
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Sep 28, 2023

🦋 Changeset detected

Latest commit: d5279c5

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

This PR includes changesets to release 6 packages
Name Type
@clerk/backend Minor
@clerk/fastify Patch
gatsby-plugin-clerk Patch
@clerk/nextjs Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch

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

Comment on lines +254 to +257
/**
* @deprecated Use `getOrganizationInvitationList` instead along with the status parameter.
*/
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.

Let's use the deprecate utility function inside the method as well. That way devs using that function can see warnings at runtime

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added!

@chanioxaris chanioxaris force-pushed the haris/org-221-support-status-filtering-in-bapi-list-org-invitations branch from fecfe2a to a0e07ea Compare September 28, 2023 14:58
Introduce a new getOrganizationInvitationList() method on the Organization
resource, which you can use in order to list the invitations. The new method
supports filtering by status and also the default paginated parameters, limit
and offset
We also mark as deprecated the old getPendingOrganizationInvitationList, which
was used to only list the pending organization invitations
@chanioxaris chanioxaris force-pushed the haris/org-221-support-status-filtering-in-bapi-list-org-invitations branch from a0e07ea to d5279c5 Compare September 28, 2023 15:07
@panteliselef panteliselef self-requested a review September 29, 2023 08:31
@chanioxaris chanioxaris added this pull request to the merge queue Sep 29, 2023
Merged via the queue into main with commit 94c36c7 Sep 29, 2023
@chanioxaris chanioxaris deleted the haris/org-221-support-status-filtering-in-bapi-list-org-invitations branch September 29, 2023 08:40
@clerk-cookie clerk-cookie mentioned this pull request Sep 29, 2023
@clerk-cookie
Copy link
Copy Markdown
Collaborator

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@clerk clerk locked as resolved and limited conversation to collaborators Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants