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

Re-prompt for telemetry opt-in at each minor version upgrade, if not opted in #49519

Closed
bmcconaghy opened this issue Oct 28, 2019 · 4 comments · Fixed by #49644
Closed

Re-prompt for telemetry opt-in at each minor version upgrade, if not opted in #49519

bmcconaghy opened this issue Oct 28, 2019 · 4 comments · Fixed by #49644
Assignees

Comments

@bmcconaghy
Copy link
Contributor

Many products do this, including things like IOS updates, so it will not be unusual to users. It’s worth noting that customer upgrades happen at most once every 2 months, and the message would only be shown once per upgrade, so should be very little fatigue. This will also fit in with the Guides concept.

@pmuellr
Copy link
Member

pmuellr commented Oct 28, 2019

starting to poke around, seems like it was mentioned on the call discussing the issue that the current behavior is to check every major release, but we want to check every minor release. Not seeing any specific major release check, but this may have something to do with there being things like a "v2" /api/telemetry/v2/optIn, perhaps that "v" gets updated every major.

Also on the call was a mention of working with older versions of ES (and maybe Kibana), but it also sounded like this was just going to be for 7.5, so ... not sure if there are "old versions of ES or Kibana" aspects relevant to this issue or not.

@pmuellr
Copy link
Member

pmuellr commented Oct 28, 2019

Looking at the .kibana* index, I can see an SO for telemetry:

{
    "telemetry": {
      "enabled": false
    },
    "type": "telemetry",
    "updated_at": "2019-10-28T21:39:48.219Z"
  }

So seems like we will need to extend this to include the version of Kibana in use when the SO is updated. Eg, kibana_version. Then the determination of whether to display with the banner would be:

(so == null) || (!so.telemetry.enabled && so.kibana_version < current kibana version)

Kinda thing.

We'll need to define how to compare Kibana versions - I'm guessing there's a semver-happy version of the kibana version, in which case we can use the semver package to do the comparison.

@pmuellr
Copy link
Member

pmuellr commented Oct 28, 2019

The relevant mappings for telemetry appear to be here:

{
"telemetry": {
"properties": {
"enabled": {
"type": "boolean"
}
}
}
}

Seems fine to allow null values for previous versions of Kibana, couldn't be the latest version if it was null, right? (well hopefully). So, no migration required? Or is a migration required to even get the mappings updated? Guessing that might be the case.

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-services (Team:Stack Services)

pmuellr added a commit to pmuellr/kibana that referenced this issue Oct 29, 2019
resolves elastic#49519

If a user has previously opted out of telemetry, we are making a
change to re-prompt them when the version of Kibana they are
running changes.  Previously, once opted out, they would never
get prompted again.
pmuellr added a commit that referenced this issue Nov 5, 2019
resolves #49519

If a user has previously opted out of telemetry, this PR will
cause them to be prompted again, when the major or minor version
of Kibana changes. Previously, once opted out, they would never
get prompted again.
pmuellr added a commit to pmuellr/kibana that referenced this issue Nov 5, 2019
…ic#49644)

resolves elastic#49519

If a user has previously opted out of telemetry, this PR will
cause them to be prompted again, when the major or minor version
of Kibana changes. Previously, once opted out, they would never
get prompted again.
pmuellr added a commit to pmuellr/kibana that referenced this issue Nov 5, 2019
…ic#49644)

resolves elastic#49519

If a user has previously opted out of telemetry, this PR will
cause them to be prompted again, when the major or minor version
of Kibana changes. Previously, once opted out, they would never
get prompted again.
pmuellr added a commit that referenced this issue Nov 5, 2019
… (#50026)

resolves #49519

If a user has previously opted out of telemetry, this PR will
cause them to be prompted again, when the major or minor version
of Kibana changes. Previously, once opted out, they would never
get prompted again.
pmuellr added a commit that referenced this issue Nov 5, 2019
… (#50025)

resolves #49519

If a user has previously opted out of telemetry, this PR will
cause them to be prompted again, when the major or minor version
of Kibana changes. Previously, once opted out, they would never
get prompted again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants