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

(PDK-1588) Increase granularity of pdk bundle analytics #827

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Jan 16, 2020

Up until now, when a user ran a pdk bundle command we would only
report a bundle screen view to our analytics. This resulted in us
finding out that a lot of users use pdk bundle but provided no insight
into why.

When a user runs pdk bundle, we will now capture the bundler
subcommand (but not any of the other arguments). The only exception to
this is if the user runs pdk bundle exec in which case we will also
capture the name of the command that is being executed (but again, none
of the arguments).

e.g.

  • pdk bundle show some_gem will now be reported as a bundle_show
    screen view.
  • pdk bundle exec rspec path/to/some/ruby_spec.rb will now be
    reported as a bundle_exec_rspec screen view.

@rodjek rodjek added the feature label Jan 16, 2020
@rodjek rodjek added this to the January 2020 milestone Jan 16, 2020
@coveralls
Copy link

coveralls commented Jan 16, 2020

Coverage Status

Coverage increased (+0.3%) to 91.684% when pulling 773027e on rodjek:pdk-1588 into 89917ad on puppetlabs:master.

Up until now, when a user ran a `pdk bundle` command we would only
report a `bundle` screen view to our analytics. This resulted in us
finding out that a lot of users use `pdk bundle` but provided no insight
into why.

When a user runs `pdk bundle`, we will now capture the bundler
subcommand (but not any of the other arguments). The only exception to
this is if the user runs `pdk bundle exec` in which case we will also
capture the name of the command that is being executed (but again, none
of the arguments).

e.g.

 * `pdk bundle show some_gem` will now be reported as a `bundle_show`
    screen view.
 * `pdk bundle exec rspec path/to/some/ruby_spec.rb` will now be
    reported as a `bundle_exec_rspec` screen view.
@rodjek rodjek marked this pull request as ready for review January 16, 2020 07:35
@rodjek rodjek requested a review from a team as a code owner January 16, 2020 07:35
end

before(:each) do
mock_command = instance_double(
Copy link
Contributor

Choose a reason for hiding this comment

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

All this mocking is a bit of a smell, but that's not for this PR.

Copy link
Contributor

@glennsarti glennsarti left a comment

Choose a reason for hiding this comment

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

This will probably need a docs ticket to cross-reference seem as though this changes the list of analytics collected.

@rodjek rodjek merged commit 4c83ef8 into puppetlabs:master Jan 16, 2020
@rodjek rodjek deleted the pdk-1588 branch January 16, 2020 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants