Skip to content

Conversation

@jerome-quere
Copy link
Contributor

No description provided.

loicbourgois
loicbourgois previously approved these changes Feb 10, 2020
Copy link
Contributor

@loicbourgois loicbourgois left a comment

Choose a reason for hiding this comment

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

LGTM

if (!matomo.ForceTelemetry && !config.BuildInfo.IsRelease()) ||
(meta.command == nil || meta.command.DisableTelemetry) ||
!matomo.IsTelemetryEnabled() {
// - no valid command was executed
Copy link
Contributor

Choose a reason for hiding this comment

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

no command was executed*

// - no valid command was executed
// - telemetry is disabled on the ran command
// - telemetry is explicitly disable in bootstrap config
if !matomo.IsTelemetryEnabled() ||
Copy link
Contributor

Choose a reason for hiding this comment

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

this check should happen at the end because it will read the config file

// If not a client will be automatically created by the CLI using Config, Env and flags see createClient().
Client *scw.Client

// DisableTelemetry, if set to true this will disable telemetry report no matter what the config sent_telemetry is set to.
Copy link
Contributor

Choose a reason for hiding this comment

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

send_telemetry (typo)

Copy link
Contributor

@kindermoumoute kindermoumoute left a comment

Choose a reason for hiding this comment

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

LGTM

@jerome-quere jerome-quere merged commit 9ff532a into scaleway:v2 Feb 10, 2020
@jerome-quere jerome-quere deleted the APIGW-1862 branch February 10, 2020 18:39
clement-gilbert pushed a commit to clement-gilbert/scaleway-cli that referenced this pull request Mar 3, 2022
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.

3 participants