Skip to content

feat: track setup completed#272

Merged
dbolson merged 2 commits into
mainfrom
sc-243302/track-setup-completed
May 13, 2024
Merged

feat: track setup completed#272
dbolson merged 2 commits into
mainfrom
sc-243302/track-setup-completed

Conversation

@dbolson
Copy link
Copy Markdown
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.

func (m ContainerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
var cmd tea.Cmd
var sendEvent bool
var shouldSendTrackingEvent bool
Copy link
Copy Markdown
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.

}

if sendEvent {
cmd = tea.Batch(cmd, trackSetupStepStartedEvent(m.analyticsTracker, m.currentStep.String()))
Copy link
Copy Markdown
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
@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