Skip to content

Add remote flags for Woo PN project#15313

Merged
irfano merged 8 commits intotrunkfrom
issue/WOOMOB-2099-add-remote-flags-for-woo-pn-project
Mar 30, 2026
Merged

Add remote flags for Woo PN project#15313
irfano merged 8 commits intotrunkfrom
issue/WOOMOB-2099-add-remote-flags-for-woo-pn-project

Conversation

@irfano
Copy link
Copy Markdown
Contributor

@irfano irfano commented Feb 9, 2026

Description

We added a feature flag to the backend with the key woo_self_driven_push_notifications_m1. This PR renames our local flags and adds keys for the remote flags.
Backend PR: 202198-ghe-Automattic/wpcom
The default value (false) will be used until the backend returns a value for woo_self_driven_push_notifications_m1.

Test Steps

For now, it’s not testable because the remote flag PR hasn’t been merged on the backend yet.

Images/gif

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

@irfano irfano added this to the 24.2 milestone Feb 9, 2026
@irfano irfano added status: do not merge Dependent on another PR, ready for review but not ready for merge. feature: notifications Related to notifications or notifs. Task (new) labels Feb 9, 2026
@wpmobilebot
Copy link
Copy Markdown
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App NameWooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit95ffea3
Direct Downloadwoocommerce-wear-prototype-build-pr15313-95ffea3.apk

@wpmobilebot
Copy link
Copy Markdown
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App NameWooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit95ffea3
Direct Downloadwoocommerce-prototype-build-pr15313-95ffea3.apk

@irfano irfano changed the title Issue/woomob 2099 add remote flags for woo pn project Add remote flags for Woo PN project Feb 9, 2026
@wpmobilebot
Copy link
Copy Markdown
Collaborator

🤖 Build Failure Analysis

This build has failures. Claude has analyzed them - check the build annotations for details.

@JorgeMucientes JorgeMucientes self-assigned this Feb 9, 2026
WOO_POS_LOCAL_CATALOG_FILE_APPROACH("woo_pos_local_catalog_file_approach"),
WOO_PUSH_NOTIFICATIONS_SYSTEM("woo_push_notifications_system", default = false),
WOO_PUSH_NOTIFICATIONS_SYSTEM_M2("woo_push_notifications_system_m2", default = false),
WOO_SELF_DRIVEN_PUSH_NOTIFICATIONS_M1("woo_self_driven_push_notifications_m1", default = false),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What about using the local feature flag value as default value when not being able to retrieve the remote FF? I thought that was the idea from what we discussed over Slack

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

default = false does that. If you want to use true when the remote flag isn't available, just update the default value to true.

I added the feature in #15299

Note: If no remote value exists, the default is used.

Copy link
Copy Markdown
Contributor

@JorgeMucientes JorgeMucientes left a comment

Choose a reason for hiding this comment

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

Changes look good @irfano 👍🏼

@irfano irfano modified the milestones: 24.2, 24.3 Feb 26, 2026
@wpmobilebot
Copy link
Copy Markdown
Collaborator

wpmobilebot commented Mar 3, 2026

App Icon📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App NameWooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Build Number734
Version24.3-rc-3
Application IDcom.woocommerce.android.prealpha
Commite6e19fd
Installation URL5lue0l85i7fao
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@irfano irfano modified the milestones: 24.3, 24.4 Mar 6, 2026
irfano added 2 commits March 16, 2026 02:04
…to issue/WOOMOB-2099-add-remote-flags-for-woo-pn-project

# Conflicts:
#	WooCommerce/src/main/kotlin/com/woocommerce/android/notifications/push/ShouldShowEnablePushNotificationsUi.kt
#	WooCommerce/src/main/kotlin/com/woocommerce/android/util/FeatureFlag.kt
#	WooCommerce/src/test/kotlin/com/woocommerce/android/util/FeatureFlagRepositoryTest.kt
…to issue/WOOMOB-2099-add-remote-flags-for-woo-pn-project

# Conflicts:
#	WooCommerce/src/main/kotlin/com/woocommerce/android/notifications/push/ShouldShowEnablePushNotificationsUi.kt
#	WooCommerce/src/main/kotlin/com/woocommerce/android/ui/jetpack/benefits/JetpackBenefitsViewModel.kt
#	WooCommerce/src/main/kotlin/com/woocommerce/android/util/FeatureFlag.kt
#	WooCommerce/src/test/kotlin/com/woocommerce/android/ui/jetpack/benefits/JetpackBenefitsViewModelTest.kt
@wpmobilebot wpmobilebot modified the milestones: 24.4, 24.5 Mar 20, 2026
@wpmobilebot
Copy link
Copy Markdown
Collaborator

Version 24.4 has now entered code-freeze, so the milestone of this PR has been updated to 24.5.

Base automatically changed from issue/WOOMOB-2129-improve-remote-local-feature-flag to trunk March 30, 2026 10:17
@irfano irfano removed the status: do not merge Dependent on another PR, ready for review but not ready for merge. label Mar 30, 2026
@irfano irfano enabled auto-merge March 30, 2026 10:18
@irfano irfano merged commit 76d8b2b into trunk Mar 30, 2026
19 of 20 checks passed
@irfano irfano deleted the issue/WOOMOB-2099-add-remote-flags-for-woo-pn-project branch March 30, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: notifications Related to notifications or notifs. Task (new)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants