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: analytics include org #888

Merged
merged 2 commits into from
Dec 2, 2019
Merged

Conversation

ivanstanev
Copy link
Contributor

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by Snyk internal team

What does this PR do?

Up until now the analytics payload that we send did not include the organisation specified as the --org parameter.
While normal calls to snyk test resulted in the right org, analytics was saving data to the user's default organisation.
This change now correctly collects the specified org so that the data is connected correctly.

How should this be manually tested?

Run a local backend and point your snyk CLI there.
Set a breakpoint in analytics.js line 8 (to capture the /cli API call).
Run snyk test --org=<some org other than your preferred or default org>

Notice the organisation is now the one specified by --org!

Any background context you want to provide?

Report in #boost-asks

What are the relevant tickets?

Jira ticket BST-425

@ivanstanev ivanstanev requested a review from a team as a code owner November 29, 2019 16:18
@ivanstanev ivanstanev self-assigned this Nov 29, 2019
@ghost ghost requested review from lili2311 and miiila November 29, 2019 16:18
Up until now the analytics payload that we send did not include the organisation specified as the --org parameter.
While normal calls to `snyk test` resulted in the right org, analytics was saving data to the user's default organisation.
This change now correctly collects the specified org so that the data is connected correctly.
Reported as warnings by ESLint, so clean them up.
@ivanstanev ivanstanev merged commit d69029c into master Dec 2, 2019
@ivanstanev ivanstanev deleted the feat/analytics-include-org branch December 2, 2019 10:11
@snyksec
Copy link

snyksec commented Dec 2, 2019

🎉 This PR is included in version 1.254.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants