-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remove Today card from Insights if Traffic feature flag is enabled #22675
Remove Today card from Insights if Traffic feature flag is enabled #22675
Conversation
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr22675-e19a6fa | |
Version | 24.3 | |
Bundle ID | org.wordpress.alpha | |
Commit | e19a6fa | |
App Center Build | WPiOS - One-Offs #8918 |
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr22675-e19a6fa | |
Version | 24.3 | |
Bundle ID | com.jetpack.alpha | |
Commit | e19a6fa | |
App Center Build | jetpack-installable-builds #7948 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great, thanks!
Maybe something like this would be more readable:
RemoteFeatureFlag.statsTrafficTab.enabled() ? nil : .insightsTodaysStats,`
to avoid the hardcoded "8", but I think it's still fine as-is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍🏻 It's not working until the app is restarted. But configs should already be fetched only after restarting the app, so it's fine.
Thanks for testing! It should be working without restarting the app but it requires rebuilding the Stats view. |
@guarani yes, I agree! I made the improvement. |
Fixes #22662
To test:
Regression Notes
None
None
None
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: