Skip to content

CLOUDP-120923: [Atlas CLI] Telemetry - Add Feature Flag #1151

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

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

johansteyn
Copy link
Contributor

@johansteyn johansteyn commented Apr 27, 2022

Proposed changes

Jira ticket: CLOUDP-120923

Closes #[issue number]

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated e2e/E2E-TESTS.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

Further comments

A very simple way to allow telemetry in atlascli only if an environment variable is set, eg:

% export MONGODB_ATLAS_TELEMETRY_FEATURE_FLAG=true

Once development is complete and we are ready to roll out telemetry this will be removed (CLOUDP-121000)

@johansteyn johansteyn requested a review from a team April 27, 2022 08:48
Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a comment

Choose a reason for hiding this comment

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

LGTM

@johansteyn johansteyn merged commit 195fa11 into master Apr 27, 2022
@johansteyn johansteyn deleted the CLOUDP-120923 branch April 27, 2022 09:21
Comment on lines +474 to 477
func isTelemetryFeatureFlagSet() bool {
_, featureFlagSet := os.LookupEnv("MONGODB_ATLAS_TELEMETRY_FEATURE_FLAG")
return featureFlagSet
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is not how we do env vars, please use viper

Copy link
Collaborator

Choose a reason for hiding this comment

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

@johansteyn As this has already been merged, can you make a follow up ticket to do the cleanup? Thanks!

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.

4 participants