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

Don't ask about sentry if DDEV_NO_SENTRY #1392

Merged
merged 2 commits into from Jan 22, 2019

Conversation

rfay
Copy link
Member

@rfay rfay commented Jan 20, 2019

The Problem/Issue/Bug:

It's just annoying to be asked about sentry when you're developing and you do a new build. No reason to ask if DDEV_NO_SENTRY.

How this PR Solves The Problem:

Manual Testing Instructions:

Automated Testing Overview:

Related Issue Link(s):

Release/Deployment notes:

@rfay rfay self-assigned this Jan 20, 2019
@@ -151,7 +151,7 @@ func sentryNotSetupWarning() {
// from the last saved version. If it is, prompt to request anon ddev usage stats
// and update the info.
func checkDdevVersionAndOptInSentry() error {
if !output.JSONOutput && version.COMMIT != globalconfig.DdevGlobalConfig.LastUsedVersion && globalconfig.DdevGlobalConfig.InstrumentationOptIn == false {
if !output.JSONOutput && version.COMMIT != globalconfig.DdevGlobalConfig.LastUsedVersion && globalconfig.DdevGlobalConfig.InstrumentationOptIn == false && os.Getenv("DDEV_NO_SENTRY") == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it'd be a good idea to define the environment variable name as a constant in values.go because it's hard-coded in several places, but that's a small point.

@rfay rfay force-pushed the 20190120_dont_ask_beam_up_if_ddev_no_sentry branch from 406d8e5 to 021d9f9 Compare January 21, 2019 20:40
@rfay
Copy link
Member Author

rfay commented Jan 21, 2019

Good idea @andrewfrench - please see how this looks.

@rfay rfay merged commit 67125da into ddev:master Jan 22, 2019
@rfay rfay deleted the 20190120_dont_ask_beam_up_if_ddev_no_sentry branch January 22, 2019 01:01
@rfay rfay mentioned this pull request Feb 8, 2019
8 tasks
@dclear dclear added this to the v1.6.0 milestone Feb 14, 2019
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.

None yet

3 participants