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

Pricing page rework | Remove Feature Flag and Clean up unused code #70428

Merged
merged 5 commits into from
Dec 22, 2022

Conversation

manzoorwanijk
Copy link
Member

@manzoorwanijk manzoorwanijk commented Nov 25, 2022

Since we have reached a point of stability for the Pricing Page Rework v1 project. It's the time to revisit and clean up the code and remove the feature flag and its usage.

Proposed Changes

  • Remove feature flag usage from the code
  • Remove feature flag from config JSON files
  • Remove unused code from old pricing page

Testing Instructions

  • Do any one of these
    • Click on Jetpack Cloud live link below and wait for the redirect to complete, then goto /pricing
    • or boot up this PR
  • Confirm that everything is the same as before
  • Confirm the same for Calypso Blue - /plans/:site

Pre-merge Checklist

  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-ajp-p2)?

Completes 1202858161751496-as-1202835600809438/f


@manzoorwanijk manzoorwanijk added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Type] Task labels Nov 25, 2022
@manzoorwanijk manzoorwanijk requested a review from a team November 25, 2022 12:06
@manzoorwanijk manzoorwanijk self-assigned this Nov 25, 2022
@github-actions
Copy link

github-actions bot commented Nov 25, 2022

@matticbot
Copy link
Contributor

matticbot commented Nov 25, 2022

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

App Entrypoints (~29 bytes removed 📉 [gzipped])

name           parsed_size           gzip_size
entry-stepper        -63 B  (-0.0%)      -29 B  (-0.0%)
entry-main           -63 B  (-0.0%)      -27 B  (-0.0%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~2959 bytes removed 📉 [gzipped])

name                   parsed_size           gzip_size
jetpack-cloud-pricing     -11700 B  (-2.2%)    -2918 B  (-1.9%)
plans                     -11660 B  (-1.2%)    -2914 B  (-1.1%)
jetpack-connect           -11543 B  (-1.1%)    -2873 B  (-1.1%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Async-loaded Components (~26 bytes removed 📉 [gzipped])

name                                           parsed_size           gzip_size
async-load-calypso-blocks-inline-help-popover        -63 B  (-0.0%)      -26 B  (-0.0%)

React components that are loaded lazily, when a certain part of UI is displayed for the first time.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@manzoorwanijk manzoorwanijk marked this pull request as draft November 25, 2022 13:14
Copy link
Contributor

@monsieur-z monsieur-z left a comment

Choose a reason for hiding this comment

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

Everything looks good so far, @manzoorwanijk. I haven't approved it yet since it's still a draft.

@manzoorwanijk
Copy link
Member Author

Everything looks good so far, @manzoorwanijk. I haven't approved it yet since it's still a draft.

Thank you @monsieur-z. I converted it to draft because we want to wait for it for sometime.
Slack conversation: p1665991141552419-slack-C03RCHNVC0H

@manzoorwanijk manzoorwanijk marked this pull request as ready for review December 22, 2022 04:50
@matticbot
Copy link
Contributor

This PR modifies the release build for odyssey-stats

To test your changes on WordPress.com, run install-plugin.sh odyssey-stats pricing-page-rework/clean-up on your sandbox.

To deploy your changes after merging, see the documentation: PejTkB-3N-p2

@manzoorwanijk manzoorwanijk merged commit 29104d4 into trunk Dec 22, 2022
@manzoorwanijk manzoorwanijk deleted the pricing-page-rework/clean-up branch December 22, 2022 05:03
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Dec 22, 2022
@tyxla
Copy link
Member

tyxla commented Jan 13, 2023

More follow-up cleanup opportunities are here: #72074.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants