Webhook event: entitlements.active_entitlement_summary.updated with more than 10 entitlements does not process after entitlement 10.

Open
#280 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
postgresql, typescript

Research direction

No source file or test is identified in the issue. Reproduce the webhook flow with a product containing more than 10 features, then trace the entitlements.active_entitlement_summary.updated handling and sync path. Done means every active entitlement appears in the active entitlements table, not only the first 10.

Written by the indexing model from the issue text.

Description

bug

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Customers select a plan in our application, which creates them a Stripe subscription, and upon checkout complete activates their entitlements.

If there are more than 10 entitlements activated, then the first 10 get synced, but the rest do not.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Setup a product with more than 10 features, create a customer, and checkout a subscription to that product. Active entitlements sync the first 10.

Expected behavior

All active entitlements to be synced into the active entitlements table

Dominant language
TypeScript
Stars
1.1k
Forks
117
Avg merge
12m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stripe/sync-engine

All issues in stripe/sync-engine

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.