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

Publish a Blog: Add feature flag and pass it to site creation endpoint #99484

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

zaguiini
Copy link
Contributor

@zaguiini zaguiini commented Feb 7, 2025

Closes #99453.

Testing Instructions

Checkout 172681-ghe-Automattic/wpcom in your sandbox and proxy yourself.

  1. Ensure you're in the cumulative cohort of 22180-explat-experiment
  2. Enable the onboarding/enable-write-goal-features feature flag and go to /setup/onboarding
  3. Pick the "Publish a Blog" goal (which will set the write intent on the site)
  4. Create the site (you can leave after the processing screen, don't need to go through the Launchpad)
  5. Enter /settings/newsletter/%s and verify that the "Add the Subscribe Block at the end of each post." toggle is ON.

Create a site in a different flow or by picking different goals and verify that the the toggle is OFF in the Newsletter settings.

@zaguiini zaguiini requested a review from a team February 7, 2025 14:25
@zaguiini zaguiini self-assigned this Feb 7, 2025
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Feb 7, 2025
@matticbot
Copy link
Contributor

matticbot commented Feb 7, 2025

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

Sections (~1119 bytes added 📈 [gzipped])

name                     parsed_size           gzip_size
import-hosted-site-flow      +1139 B  (+0.1%)     +375 B  (+0.1%)
copy-site-flow               +1139 B  (+0.1%)     +499 B  (+0.2%)
link-in-bio-tld-flow          +289 B  (+0.0%)     +129 B  (+0.0%)
write-flow                     +47 B  (+0.0%)      +25 B  (+0.0%)
update-design-flow             +47 B  (+0.0%)      +21 B  (+0.0%)
site-settings                  +47 B  (+0.0%)      +23 B  (+0.0%)
settings                       +47 B  (+0.0%)      +23 B  (+0.0%)
hundred-year-plan              +47 B  (+0.0%)      +23 B  (+0.0%)
hundred-year-domain            +47 B  (+0.0%)      +24 B  (+0.0%)
hosting                        +47 B  (+0.0%)      +23 B  (+0.0%)
home                           +47 B  (+0.0%)      +25 B  (+0.0%)
build-flow                     +47 B  (+0.0%)      +25 B  (+0.0%)

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

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.

@matticbot
Copy link
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug onboarding/write-features-ff on your sandbox.

@@ -234,7 +237,8 @@ const CreateSite: Step = function CreateSite( { navigation, flow, data } ) {
domainItem,
sourceSlug,
siteIntent,
shouldSaveSiteGoals ? siteGoals : undefined
shouldSaveSiteGoals ? siteGoals : undefined,
config.isEnabled( 'onboarding/write-goal' )
Copy link
Member

Choose a reason for hiding this comment

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

Should we also do a treatment_cumulative check here?

@zaguiini zaguiini force-pushed the onboarding/write-features-ff branch from 489a460 to c4cc2c7 Compare February 12, 2025 20:57
@zaguiini zaguiini requested a review from p-jackson February 12, 2025 21:01
@@ -234,7 +239,9 @@ const CreateSite: Step = function CreateSite( { navigation, flow, data } ) {
domainItem,
sourceSlug,
siteIntent,
shouldSaveSiteGoals ? siteGoals : undefined
shouldSaveSiteGoals ? siteGoals : undefined,
isGoalsFirstCumulativeExperience &&
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm wondering if we should include the treatment_cumulative checks right now. It's under a feature flag, so it will only work for explicitly-enabled people. I wonder if we should only check for the experiment when it's time to remove the flag.

Copy link
Member

@p-jackson p-jackson Feb 13, 2025

Choose a reason for hiding this comment

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

🤷 Either options's fine. Putting it in now means at least we know we've remembered to add that logic.

Copy link
Member

Choose a reason for hiding this comment

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

I say we leave the isGoalsFirstCumulativeExperience check in there.

@zaguiini zaguiini force-pushed the onboarding/write-features-ff branch from c4cc2c7 to 67a362f Compare February 13, 2025 00:19
@zaguiini zaguiini force-pushed the onboarding/write-features-ff branch from 67a362f to 6c8c580 Compare February 13, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task: Set up feature flag and enable on wpcalyso
3 participants