Skip to content

Commit bac00df

Browse files
fix: Stop producing intent for surveys on settings page (#42540)
Everytime someone loads the Settings page we're triggering intent for surveys which isn't right. This happens because we load all surveys there, and simply loading surveys is enough to trigger intent. Intent should only be triggered when someone is *actively* using the product, so let's remove this completely.
1 parent 329eea3 commit bac00df

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

frontend/src/queries/schema/schema-general.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4914,7 +4914,7 @@ export enum ProductIntentContext {
49144914
DATA_WAREHOUSE_STRIPE_SOURCE_CREATED = 'data_warehouse_stripe_source_created',
49154915

49164916
// Surveys
4917-
SURVEYS_VIEWED = 'surveys_viewed', // accessed surveys page
4917+
SURVEYS_VIEWED = 'surveys_viewed', // deprecated, not used anymore
49184918
SURVEY_CREATED = 'survey_created',
49194919
SURVEY_LAUNCHED = 'survey_launched',
49204920
SURVEY_VIEWED = 'survey_viewed',

frontend/src/scenes/surveys/surveysLogic.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,6 @@ export const surveysLogic = kea<surveysLogicType>([
312312
loadSurveysSuccess: () => {
313313
actions.loadCurrentTeam()
314314

315-
actions.addProductIntent({
316-
product_type: ProductKey.SURVEYS,
317-
intent_context: ProductIntentContext.SURVEYS_VIEWED,
318-
metadata: {
319-
surveys_count: values.data.surveysCount,
320-
},
321-
})
322-
323315
if (values.data.surveys.some((survey) => survey.start_date)) {
324316
activationLogic.findMounted()?.actions.markTaskAsCompleted(ActivationTask.LaunchSurvey)
325317
}

0 commit comments

Comments
 (0)