Skip to content

Posthog event for onboarding questionnaire submit#28328

Merged
michellescripts merged 2 commits intomasterfrom
michelle/prehog-questionnaire-submit
Jul 3, 2023
Merged

Posthog event for onboarding questionnaire submit#28328
michellescripts merged 2 commits intomasterfrom
michelle/prehog-questionnaire-submit

Conversation

@michellescripts
Copy link
Copy Markdown
Contributor

@michellescripts michellescripts force-pushed the michelle/prehog-questionnaire-submit branch from 321e023 to e05c2a7 Compare June 27, 2023 21:51
@michellescripts michellescripts marked this pull request as ready for review June 27, 2023 21:59
@michellescripts michellescripts force-pushed the michelle/prehog-questionnaire-submit branch from e05c2a7 to 3531fd0 Compare June 28, 2023 16:18
Comment thread api/proto/teleport/usageevents/v1/usageevents.proto Outdated
Comment thread api/proto/teleport/usageevents/v1/usageevents.proto Outdated
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from ravicious June 28, 2023 17:55
@michellescripts michellescripts force-pushed the michelle/prehog-questionnaire-submit branch 4 times, most recently from bd6be7d to 39afba4 Compare June 29, 2023 23:24
@michellescripts michellescripts added this pull request to the merge queue Jun 29, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Jun 29, 2023
@michellescripts michellescripts force-pushed the michelle/prehog-questionnaire-submit branch 2 times, most recently from dca620d to 3af4b8c Compare June 30, 2023 20:44
@michellescripts michellescripts force-pushed the michelle/prehog-questionnaire-submit branch from 3af4b8c to b299e1f Compare June 30, 2023 20:51
@michellescripts michellescripts force-pushed the michelle/prehog-questionnaire-submit branch from b299e1f to 5c8a54c Compare July 3, 2023 14:55
@michellescripts michellescripts added this pull request to the merge queue Jul 3, 2023
Merged via the queue into master with commit 010076f Jul 3, 2023
@michellescripts michellescripts deleted the michelle/prehog-questionnaire-submit branch July 3, 2023 15:47
michellescripts added a commit that referenced this pull request Jul 21, 2023
* update protos

* create Posthog event for onboarding questionnaire submit
github-merge-queue Bot pushed a commit that referenced this pull request Jul 21, 2023
* Add onboarding questionnaire components (#27977)

* Posthog event for onboarding questionnaire submit (#28328)

* update protos

* create Posthog event for onboarding questionnaire submit

* set onboarding survey on user preferences (#28530)

* Fix panic when fetching user preferences (#28751)

* Fix panic when fetching user preferences

Closes #28740

* Prevent overwriting mismatched types in user preferences

* Add error handling to user preferences service

* GCI imports

* Refactor user preferences test and logic

This commit updates the approach for comparing equality in user preferences test. It introduces the use of the "go-cmp" library which provides more flexibility in handling comparison of struct elements, thus helping to catch any unexpected changes that could be overlooked with the standard equality checking. We also revised the logic to handle default preferences by overwriting values for better efficiency and readability, also removing unnecessary checking and merging of values.

* Add comments to overwriteValues method in userpreferences.go

Added detailed comments to better explain the overwriteValues function in userpreferences.go file. The comments clarify how the function uses proto.Ranges to iterate over fields and only overwrite non-nil/empty fields.

* Apply some magic to preferences test

* Change the import to avoid go.mod changed and match our other imports

* Onboarding changes to support e survey (#28981)

* Display a survey during onboarding

- Adds user context wrapper to the Welcome flow in order to update preferences
- Sets selected resources on user preferences

* imports & describes

* named enums

* remove onboard survey from oss

- will be moved to /e
- export shared types

* refactor welcome

- move new credential to welcome prop

* refactor new credentails

- container passes questionnaire to component

* remove survey ls dispatch

* pr feedback

* Revert "pr feedback"

This reverts commit 060f34fb60242856f233df6a1006c5192ea321fb.

---------

Co-authored-by: Jakub Nyckowski <jakub.nyckowski@goteleport.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants