NPS Plugin should not be enabled if telemetry is disabled

Description

Repro: Disable telemetry and upgrade to v5.12

Observed: NPS plugin is enabled but fails to start up, printing a log error

Expected: Do not enable the NPS plugin at all if telemetry is disabled on the server

QA Test Steps

When first upgrading to 5.12.1 or higher, the NPS plugin should be automatically enabled as long as EnableDiagnostics is set to true. When doing a fresh install on either of those versions, the NPS plugin should also be enabled.

Status

Mana

None

Assignee

Harrison Healey

Reporter

Eric Sethna

Epic Link

None

Fix versions

Mattermost Team

Apps

Sprint

None

GitHub Issue

None

QA Assignee

Ogi Marusic

QA Testing Areas

Plugins