Skip to content

Preserve Privacy Settings on Production when Syncing Staging to Production #94077

Open

Description

What

Privacy Settings should be preserved on Production when syncing the Staging database to Production.

Why

When syncing the Staging database to Production, Privacy Settings are overwritten due to not offering any selective database sync and how this option is stored. The following change purposefully sets blog_public to 0 in wp_options on Staging sites: https://github.com/Automattic/dotcom-forge/issues/2105

When a Staging database is synced back to Production, Production is then set to noindex and nofollow, potentially damaging SEO if a user does not realize. There is currently no way to change the setting on Staging and SEO could be equally damaged if users allowed indexing their Staging site.

A user requested this feature here: 8670964-zd-a8c

How

I do not know an easy fix for this unless we allowed selective syncs to exclude the wp_options table, preserved the option during syncing, or changed the Privacy Settings to not store data in the database and rely on a constant instead.

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

Metadata

Assignees

No one assigned

    Labels

    Customer ReportIssues or PRs that were reported via Happiness. Previously known as "Happiness Request".Issues or PRs that were reported via Happiness. Previously known as "Happiness Request".[Feature Group] Developer & Contractor ToolsFeatures and tools designed for developers and contractors working on WordPress.com sites.Features and tools designed for developers and contractors working on WordPress.com sites.[Feature] Staging SitesAll tools and settings that allow you to create staging sites for Atomic sites.All tools and settings that allow you to create staging sites for Atomic sites.[Product] WordPress.comAll features accessible on and related to WordPress.com.All features accessible on and related to WordPress.com.[Type] Feature RequestFeature requestsFeature requests

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions