Skip to content
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

fix(surveys): Fix survey prop naming #18225

Merged
merged 3 commits into from
Oct 26, 2023
Merged

fix(surveys): Fix survey prop naming #18225

merged 3 commits into from
Oct 26, 2023

Conversation

liyiy
Copy link
Contributor

@liyiy liyiy commented Oct 26, 2023

Problem

dismiss -> dismissed

PostHog/posthog-js#861

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

@liyiy liyiy enabled auto-merge (squash) October 26, 2023 16:32
@@ -826,6 +826,14 @@ export function getKeyMapping(
description: `The response value for the ${index}${suffix} question in the survey.`,
}
}
} else if (value.startsWith('$survey_responded/')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this one's already on line 800, just edit that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

isn't that for the event property survey_response?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh no wait it has a slash in it. I assume survey_response_ handles survey_response from the event property?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think I added it a while ago LOL nvm

Copy link
Collaborator

Choose a reason for hiding this comment

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

There's a separate one in KEY_MAPPINGS for the response. These ones are needed only when it's a programmatic property, i.e some part changes, like the id

@liyiy liyiy disabled auto-merge October 26, 2023 16:36
@liyiy liyiy enabled auto-merge (squash) October 26, 2023 16:49
@liyiy liyiy merged commit 90b5066 into master Oct 26, 2023
71 of 72 checks passed
@liyiy liyiy deleted the fix-survey-prop-naming branch October 26, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants