[Statsig] Fix exposure logging for reduced onboarding (#4131)
* Add dangerouslyDisableExposureLogging option * Rename onboarding gate to v2 * Disable exposure logging for onboarding in PostFeed query
This commit is contained in:
@@ -83,7 +83,7 @@ export function StepFinished() {
|
||||
* selected in onboarding and therefore we don't need to run this
|
||||
* code (which would overwrite the other feeds already set).
|
||||
*/
|
||||
if (!gate('reduced_onboarding_and_home_algo')) {
|
||||
if (!gate('reduced_onboarding_and_home_algo_v2')) {
|
||||
const otherFeeds = selectedFeeds.length
|
||||
? selectedFeeds.map(f => ({
|
||||
type: 'feed',
|
||||
@@ -120,7 +120,7 @@ export function StepFinished() {
|
||||
})(),
|
||||
|
||||
(async () => {
|
||||
if (!gate('reduced_onboarding_and_home_algo')) return
|
||||
if (!gate('reduced_onboarding_and_home_algo_v2')) return
|
||||
|
||||
const {imageUri, imageMime} = profileStepResults
|
||||
if (imageUri && imageMime) {
|
||||
|
||||
@@ -134,7 +134,7 @@ export function StepInterests() {
|
||||
}, [track])
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!gate('reduced_onboarding_and_home_algo')) {
|
||||
if (!gate('reduced_onboarding_and_home_algo_v2')) {
|
||||
requestNotificationsPermission('StartOnboarding')
|
||||
}
|
||||
}, [gate, requestNotificationsPermission])
|
||||
|
||||
@@ -94,7 +94,7 @@ export function StepProfile() {
|
||||
React.useEffect(() => {
|
||||
// We have an experiment running for redueced onboarding, where this screen shows up as the first in onboarding.
|
||||
// We only want to request permissions when that gate is actually active to prevent pollution
|
||||
if (gate('reduced_onboarding_and_home_algo')) {
|
||||
if (gate('reduced_onboarding_and_home_algo_v2')) {
|
||||
requestNotificationsPermission('StartOnboarding')
|
||||
}
|
||||
}, [gate, requestNotificationsPermission])
|
||||
|
||||
@@ -24,7 +24,7 @@ import {Portal} from '#/components/Portal'
|
||||
export function Onboarding() {
|
||||
const {_} = useLingui()
|
||||
const gate = useGate()
|
||||
const isReducedOnboardingEnabled = gate('reduced_onboarding_and_home_algo')
|
||||
const isReducedOnboardingEnabled = gate('reduced_onboarding_and_home_algo_v2')
|
||||
const [state, dispatch] = React.useReducer(
|
||||
isReducedOnboardingEnabled ? reducerReduced : reducer,
|
||||
isReducedOnboardingEnabled ? {...initialStateReduced} : {...initialState},
|
||||
|
||||
Reference in New Issue
Block a user