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

server: fix backward incompatibility with previous schema around legacy user #4658

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

frankie567
Copy link
Member

No description provided.

@frankie567 frankie567 enabled auto-merge (rebase) December 17, 2024 09:01
Copy link

vercel bot commented Dec 17, 2024

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
polar ⬜️ Ignored (Inspect) Visit Preview Dec 17, 2024 9:02am
polar-sandbox ⬜️ Ignored (Inspect) Visit Preview Dec 17, 2024 9:02am

Copy link
Contributor

📦 Next.js Bundle Analysis for web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 154.46 KB (-1 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Ninety-four Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/checkout/[clientSecret]/confirmation/page 269.17 KB 423.62 KB 121.04% (+/- <0.01%)
/(main)/(installation)/github/layout 361 B 154.81 KB 44.23% (+/- <0.01%)
/(main)/(topbar)/layout 240.74 KB 395.2 KB 112.92% (🟢 -0.01%)
/(main)/[organization]/(header)/issues/page 122.2 KB 276.66 KB 79.05% (+/- <0.01%)
/(main)/[organization]/(header)/layout 265.4 KB 419.85 KB 119.96% (+/- <0.01%)
/(main)/[organization]/(header)/page 134.83 KB 289.29 KB 82.65% (+/- <0.01%)
/(main)/[organization]/(header)/subscriptions/page 360 B 154.81 KB 44.23% (+/- <0.01%)
/(main)/[organization]/portal/orders/[id]/page 195.19 KB 349.65 KB 99.90% (+/- <0.01%)
/(main)/[organization]/[repo]/page 205.06 KB 359.52 KB 102.72% (+/- <0.01%)
/(main)/[organization]/[repo]/layout 232.18 KB 386.64 KB 110.47% (+/- <0.01%)
/(main)/[organization]/portal/authenticate/page 70.9 KB 225.36 KB 64.39% (+/- <0.01%)
/(main)/[organization]/portal/request/page 67.18 KB 221.64 KB 63.33% (+/- <0.01%)
/(main)/[organization]/portal/subscriptions/[id]/page 199.55 KB 354.01 KB 101.15% (🟢 -0.01%)
/(main)/[organization]/[repo]/issues/[number]/(create)/page 194.91 KB 349.37 KB 99.82% (+/- <0.01%)
/(main)/[organization]/[repo]/issues/[number]/status/page 228.43 KB 382.89 KB 109.40% (+/- <0.01%)
/(main)/backoffice/pledges/page 55.38 KB 209.84 KB 59.95% (+/- <0.01%)
/(main)/backoffice/layout 565.79 KB 720.25 KB 205.78% (+/- <0.01%)
/(main)/backoffice/rewards_pending/page 57.14 KB 211.6 KB 60.46% (+/- <0.01%)
/(main)/backoffice/issue/[id]/page 53.12 KB 207.58 KB 59.31% (+/- <0.01%)
/(main)/dashboard/layout 361 B 154.81 KB 44.23% (+/- <0.01%)
/(main)/docs/layout 361 B 154.81 KB 44.23% (+/- <0.01%)
/(main)/(landing)/page 491.77 KB 646.23 KB 184.64% (+/- <0.01%)
/(main)/backoffice/badge/page 43.18 KB 197.64 KB 56.47% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/page 361 B 154.81 KB 44.23% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/products/[id]/page 195.43 KB 349.89 KB 99.97% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/subscriptions/[id]/page 199.78 KB 354.24 KB 101.21% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/file-downloads/page 174.6 KB 329.06 KB 94.02% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/products/page 88.72 KB 243.18 KB 69.48% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/subscriptions/page 88.55 KB 243.01 KB 69.43% (+/- <0.01%)
/(main)/(topbar)/(backer)/purchases/license-keys/page 88.59 KB 243.05 KB 69.44% (+/- <0.01%)
/(main)/(topbar)/(backer)/settings/page 251.87 KB 406.33 KB 116.09% (+/- <0.01%)
/(main)/dashboard/(create)/create/page 151.37 KB 305.82 KB 87.38% (+/- <0.01%)
/(main)/dashboard/[organization]/storefront/page 374.25 KB 528.71 KB 151.06% (+/- <0.01%)
/(main)/dashboard/[organization]/layout 45.67 KB 200.12 KB 57.18% (+/- <0.01%)
/(main)/(landing)/(mdx)/blog/(header)/better-pricing/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/(landing)/(mdx)/layout 360 B 154.81 KB 44.23% (+/- <0.01%)
/(main)/(landing)/(mdx)/careers/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/(landing)/(mdx)/legal/privacy/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/(landing)/(mdx)/legal/terms/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/(mdx)/finance/payouts/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/(mdx)/github/funding-yaml/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/(mdx)/merchant-of-record/compliance/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/(mdx)/subscriptions/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/api/(mdx)/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/developers/guides/nextjs/page 33.58 KB 188.04 KB 53.73% (+/- <0.01%)
/(main)/docs/developers/guides/node/page 33.58 KB 188.04 KB 53.73% (+/- <0.01%)
/(main)/docs/developers/open-source/page 33.58 KB 188.04 KB 53.73% (+/- <0.01%)
/(main)/docs/developers/sdk/polar-for-framer/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/developers/sdk/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/developers/sdk/typescript/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/support/(mdx)/faq/page 33.58 KB 188.04 KB 53.73% (+/- <0.01%)
/(main)/docs/support/(mdx)/page 33.09 KB 187.55 KB 53.59% (+/- <0.01%)
/(main)/docs/developers/webhooks/events/page 361 B 154.81 KB 44.23% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/rewards/page 113.61 KB 268.07 KB 76.59% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/layout 213.44 KB 367.9 KB 105.11% (+/- <0.01%)
/(main)/(topbar)/(backer)/(sidebar)/funding/page 247.15 KB 401.6 KB 114.74% (+/- <0.01%)
/(main)/(topbar)/(backer)/(sidebar)/layout 135.09 KB 289.55 KB 82.73% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/incoming/page 234.57 KB 389.02 KB 111.15% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/account/page 201.28 KB 355.74 KB 101.64% (+/- <0.01%)
/(main)/(topbar)/(backer)/finance/outgoing/page 183.82 KB 338.28 KB 96.65% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/benefits/page 658.98 KB 813.43 KB 232.41% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/layout 565.78 KB 720.24 KB 205.78% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/analytics/page 696.19 KB 850.65 KB 243.04% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/benefits/license-keys/page 592.74 KB 747.19 KB 213.48% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/(home)/page 655.2 KB 809.66 KB 231.33% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/page 360 B 154.81 KB 44.23% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/customers/page 595.24 KB 749.7 KB 214.20% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/initialize/page 145.6 KB 300.06 KB 85.73% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/issues/badge/page 593.39 KB 747.85 KB 213.67% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/issues/embed/page 568.24 KB 722.7 KB 206.49% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/issues/overview/page 608.75 KB 763.21 KB 218.06% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/members/page 566.65 KB 721.11 KB 206.03% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/[id]/page 655.01 KB 809.47 KB 231.28% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/issues/organizations/page 568.15 KB 722.61 KB 206.46% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/discounts/page 626.48 KB 780.94 KB 223.12% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/benefits/page 658.5 KB 812.96 KB 232.27% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/new/page 647.22 KB 801.67 KB 229.05% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/sales/[id]/page 578.98 KB 733.44 KB 209.55% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/sales/page 607.33 KB 761.79 KB 217.65% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/sales/subscriptions/page 595.45 KB 749.91 KB 214.26% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/@breadcrumb/products/page 362 B 154.81 KB 44.23% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/products/page 594.94 KB 749.4 KB 214.11% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/endpoints/[id]/page 596.7 KB 751.16 KB 214.62% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/settings/custom-fields/page 598.05 KB 752.5 KB 215.00% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/settings/page 585.26 KB 739.72 KB 211.35% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/settings/webhooks/page 579.63 KB 734.09 KB 209.74% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/incoming/page 184.52 KB 338.98 KB 96.85% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/layout 565.79 KB 720.25 KB 205.78% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/outgoing/page 133.77 KB 288.23 KB 82.35% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/account/page 151.37 KB 305.83 KB 87.38% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/rewarded/page 63.41 KB 217.87 KB 62.25% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/layout 565.79 KB 720.25 KB 205.78% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/contributors/page 63.42 KB 217.88 KB 62.25% (+/- <0.01%)
/(main)/dashboard/[organization]/(header)/finance/issue-funding/page 64.13 KB 218.59 KB 62.45% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@frankie567 frankie567 merged commit 2b54017 into main Dec 17, 2024
11 checks passed
@frankie567 frankie567 deleted the fix/schema-backward-compat branch December 17, 2024 09:04
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.

1 participant