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

Revamp Articles API #3543

Merged
merged 5 commits into from
Jun 26, 2024
Merged

Revamp Articles API #3543

merged 5 commits into from
Jun 26, 2024

Conversation

frankie567
Copy link
Member

No description provided.

Copy link

vercel bot commented Jun 26, 2024

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

Name Status Preview Comments Updated (UTC)
polar ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 8:36am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
polar-next-js-example ⬜️ Ignored (Inspect) Jun 26, 2024 8:36am

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 224.09 KB (-2 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!

One Hundred Ten 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)
/layout 53.81 KB 277.89 KB 79.40% (🟢 -0.04%)
/maintainer/page 448.61 KB 672.69 KB 192.20% (🟢 -0.03%)
/login/page 69.42 KB 293.51 KB 83.86% (🟢 -0.03%)
/signup/maintainer/page 38.29 KB 262.37 KB 74.96% (🟢 -0.03%)
/(installation)/github/installation/page 65.1 KB 289.18 KB 82.62% (🟢 -0.03%)
/(topbar)/checkout/success/page 96.2 KB 320.29 KB 91.51% (🟢 -0.03%)
/(topbar)/layout 184.54 KB 408.62 KB 116.75% (🟢 -0.03%)
/(topbar)/unsubscribe/page 32.78 KB 256.87 KB 73.39% (🟢 -0.03%)
/[organization]/(sidebar)/donate/status/page 41.24 KB 265.32 KB 75.81% (🟢 -0.04%)
/[organization]/(sidebar)/layout 192.68 KB 416.76 KB 119.07% (🟢 -0.07%)
/[organization]/(sidebar)/donate/page 197.04 KB 421.13 KB 120.32% (🟢 -0.07%)
/[organization]/(sidebar)/issues/page 129.28 KB 353.37 KB 100.96% (🟢 -0.03%)
/[organization]/(sidebar)/page 228.59 KB 452.68 KB 129.34% (🟢 -0.08%)
/[organization]/(sidebar)/posts/[postSlug]/page 198.78 KB 422.87 KB 120.82% (🟢 -0.03%)
/[organization]/(sidebar)/posts/page 140.61 KB 364.7 KB 104.20% (🟡 +0.01%)
/[organization]/(sidebar)/products/[productId]/page 137.76 KB 361.85 KB 103.39% (🟢 -0.03%)
/[organization]/(sidebar)/products/page 105.37 KB 329.45 KB 94.13% (🟢 -0.03%)
/[organization]/(sidebar)/repositories/page 68.94 KB 293.02 KB 83.72% (🟢 -0.04%)
/[organization]/(sidebar)/subscriptions/page 159.55 KB 383.64 KB 109.61% (🟢 -0.03%)
/[organization]/[repo]/issues/[number]/status/page 182.38 KB 406.47 KB 116.13% (🟢 -0.02%)
/[organization]/[repo]/layout 133.26 KB 357.35 KB 102.10% (🟢 -0.03%)
/[organization]/subscribe/page 146.44 KB 370.53 KB 105.87% (🟢 -0.03%)
/[organization]/[repo]/issues/[number]/(create)/page 152.94 KB 377.03 KB 107.72% (🟢 -0.03%)
/backoffice/badge/page 54.59 KB 278.67 KB 79.62% (🟢 -0.03%)
/backoffice/layout 455.66 KB 679.75 KB 194.21% (🟢 -0.02%)
/backoffice/issue/[id]/page 64.17 KB 288.26 KB 82.36% (🟢 -0.03%)
/[organization]/[repo]/page 223.16 KB 447.25 KB 127.78% (🟢 -0.07%)
/backoffice/rebadge/page 41 KB 265.08 KB 75.74% (🟢 -0.04%)
/backoffice/rewards_pending/page 67.8 KB 291.88 KB 83.40% (🟢 -0.03%)
/backoffice/pledges/page 66.3 KB 290.39 KB 82.97% (🟢 -0.03%)
/maintainer/(onboarding)/[organization]/onboarding/page 124.75 KB 348.84 KB 99.67% (🟢 -0.03%)
/maintainer/new/page 448.34 KB 672.42 KB 192.12% (🟢 -0.03%)
/(landing)/(features)/donations/page 152.58 KB 376.67 KB 107.62% (🟢 -0.03%)
/(landing)/(features)/newsletters/page 159.11 KB 383.2 KB 109.48% (🟢 -0.02%)
/(landing)/page 152.46 KB 376.55 KB 107.59% (🟢 -0.03%)
/(landing)/(features)/products/page 152.59 KB 376.68 KB 107.62% (🟢 -0.03%)
/(landing)/(features)/issue-funding/page 152.58 KB 376.67 KB 107.62% (🟢 -0.03%)
/docs/layout 430.1 KB 654.18 KB 186.91% (🟢 -0.03%)
/(topbar)/(backer)/layout 55.31 KB 279.4 KB 79.83% (🟢 -0.03%)
/(topbar)/(backer)/purchases/products/[id]/page 206.07 KB 430.15 KB 122.90% (🟢 -0.03%)
/(topbar)/(backer)/purchases/products/page 105.56 KB 329.65 KB 94.19% (🟢 -0.03%)
/(topbar)/(backer)/purchases/subscriptions/[id]/page 207.97 KB 432.06 KB 123.44% (🟢 -0.02%)
/(topbar)/(backer)/purchases/subscriptions/page 99.04 KB 323.12 KB 92.32% (🟢 -0.03%)
/(topbar)/(backer)/settings/page 211.4 KB 435.48 KB 124.42% (🟢 -0.02%)
/docs/(mdx)/api-reference/authentication/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/layout 202.83 KB 426.91 KB 121.97% (🟡 +0.01%)
/docs/(mdx)/api-reference/github-actions/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/api-reference/introduction/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/api-reference/polar-sdk/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/api-reference/webhooks/events/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/guides/overview/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/api-reference/webhooks/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/ads/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/benefits/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/donations/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/faq/for-backers/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/faq/for-contributors/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/faq/for-maintainers/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/overview/faq/overview/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/getting-started/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/overview/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/promote/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/reward-contributors/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/newsletters/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/issue-funding/workflow/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/docs/(mdx)/overview/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/subscriptions/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/support/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/docs/(mdx)/overview/payments-taxes/page 198.22 KB 422.31 KB 120.66% (+/- <0.01%)
/maintainer/[organization]/(topbar)/layout 455.66 KB 679.75 KB 194.21% (🟢 -0.02%)
/maintainer/[organization]/(topbar)/donations/overview/page 568.41 KB 792.49 KB 226.43% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/funding/page 477.23 KB 701.32 KB 200.38% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/initialize/page 153.13 KB 377.22 KB 107.78% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/issues/overview/page 484.29 KB 708.37 KB 202.39% (🟢 -0.02%)
/maintainer/[organization]/(topbar)/issues/badge/page 469.23 KB 693.32 KB 198.09% (🟢 -0.02%)
/maintainer/[organization]/(topbar)/overview/page 467.65 KB 691.73 KB 197.64% (🟢 -0.04%)
/maintainer/[organization]/(topbar)/members/page 445.54 KB 669.63 KB 191.32% (🟢 -0.02%)
/maintainer/[organization]/(topbar)/posts/analytics/page 560.81 KB 784.9 KB 224.26% (🟢 -0.04%)
/maintainer/[organization]/(topbar)/posts/page 557.21 KB 781.3 KB 223.23% (🟡 +0.16%)
/maintainer/[organization]/(topbar)/products/overview/page 519.15 KB 743.24 KB 212.35% (🟢 -0.06%)
/maintainer/[organization]/(topbar)/sales/orders/page 473.99 KB 698.08 KB 199.45% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/products/benefits/page 532.38 KB 756.47 KB 216.13% (🟢 -0.02%)
/maintainer/[organization]/(topbar)/sales/overview/page 565.15 KB 789.24 KB 225.50% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/sales/subscriptions/page 486.55 KB 710.63 KB 203.04% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/settings/page 460.29 KB 684.38 KB 195.54% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/settings/webhooks/endpoints/[id]/page 482.1 KB 706.18 KB 201.77% (🟢 -0.03%)
/maintainer/[organization]/(white)/posts/[post]/page 547.15 KB 771.24 KB 220.35% (🟢 -0.07%)
/maintainer/[organization]/(white)/layout 440.9 KB 664.99 KB 190.00% (🟢 -0.03%)
/maintainer/[organization]/(white)/posts/new/page 544.81 KB 768.9 KB 219.68% (🟢 -0.04%)
/maintainer/[organization]/promote/page 461.78 KB 685.86 KB 195.96% (🟢 -0.03%)
/maintainer/[organization]/promote/layout 440.9 KB 664.99 KB 190.00% (🟢 -0.03%)
/(landing)/(mdx)/careers/page 173.14 KB 397.23 KB 113.49% (+/- <0.01%)
/(topbar)/(backer)/(sidebar)/funding/page 202.19 KB 426.28 KB 121.79% (🟢 -0.02%)
/(topbar)/(backer)/(sidebar)/layout 92.97 KB 317.06 KB 90.59% (🟢 -0.02%)
/(topbar)/(backer)/finance/account/page 168.97 KB 393.05 KB 112.30% (🟢 -0.03%)
/(topbar)/(backer)/finance/layout 155.34 KB 379.42 KB 108.41% (🟢 -0.03%)
/(topbar)/(backer)/(sidebar)/feed/page 137.82 KB 361.9 KB 103.40% (🟡 +0.01%)
/(topbar)/(backer)/finance/incoming/page 185.44 KB 409.53 KB 117.01% (🟢 -0.03%)
/(topbar)/(backer)/finance/issue-funding/contributors/page 72.64 KB 296.73 KB 84.78% (🟢 -0.03%)
/(topbar)/(backer)/finance/issue-funding/page 73.23 KB 297.31 KB 84.95% (🟢 -0.03%)
/(topbar)/(backer)/finance/rewards/page 72.72 KB 296.81 KB 84.80% (🟢 -0.02%)
/maintainer/[organization]/(topbar)/finance/account/page 169.99 KB 394.08 KB 112.59% (🟢 -0.02%)
/maintainer/[organization]/(topbar)/finance/layout 440.9 KB 664.99 KB 190.00% (🟢 -0.03%)
/(topbar)/(backer)/finance/outgoing/page 138.41 KB 362.49 KB 103.57% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/finance/incoming/page 186.66 KB 410.74 KB 117.36% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/finance/outgoing/page 139.77 KB 363.86 KB 103.96% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/finance/issue-funding/contributors/page 73.83 KB 297.92 KB 85.12% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/finance/issue-funding/layout 440.9 KB 664.99 KB 190.00% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/finance/issue-funding/page 74.64 KB 298.73 KB 85.35% (🟢 -0.03%)
/maintainer/[organization]/(topbar)/finance/issue-funding/rewarded/page 73.83 KB 297.91 KB 85.12% (🟢 -0.03%)
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 742ff08 into main Jun 26, 2024
9 checks passed
@frankie567 frankie567 deleted the feat/articles-api branch June 26, 2024 08:36
Copy link

sentry-io bot commented Jun 26, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ ConnectionRefusedError: [Errno 111] Connection refused polar.article.endpoints.get View Issue
  • ‼️ InterfaceError: (sqlalchemy.dialects.postgresql.asyncpg.InterfaceError) <class 'asyncpg.exceptions._base.Interfac... polar.article.endpoints.get View Issue

Did you find this useful? React with a 👍 or 👎

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.

None yet

1 participant