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

feat: track setup completed #272

Merged
merged 2 commits into from
May 13, 2024
Merged

feat: track setup completed #272

merged 2 commits into from
May 13, 2024

Conversation

dbolson
Copy link
Contributor

@dbolson dbolson commented May 10, 2024

Track "CLI Command Completed" event when user gets to toggle flag setup view.

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

Provide links to any issues in this repository or elsewhere relating to this pull request.

Describe the solution you've provided

Provide a clear and concise description of what you expect to happen.

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.

@@ -91,7 +91,7 @@ func (m ContainerModel) Init() tea.Cmd {

func (m ContainerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
var cmd tea.Cmd
var sendEvent bool
var shouldSendTrackingEvent bool
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed this for clarity.

default:
// ignore other messages
}

if sendEvent {
cmd = tea.Batch(cmd, trackSetupStepStartedEvent(m.analyticsTracker, m.currentStep.String()))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't send this every time since toggling the flag will send it each time, not just when user gets to toggle flag page.

@dbolson dbolson requested a review from k3llymariee May 10, 2024 23:19
@dbolson dbolson merged commit 6554b7d into main May 13, 2024
2 checks passed
@dbolson dbolson deleted the sc-243302/track-setup-completed branch May 13, 2024 15:01
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