-
Notifications
You must be signed in to change notification settings - Fork 102
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
fix: Allow system administrators to suppress telemetry by policy #1204
Changes from all commits
99e24e2
fbbb913
e2dbdca
257bc60
dec7423
ea777fc
7bb3027
1327ecc
1a9385f
41ca635
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,9 +55,9 @@ private void btnExit_Click(object sender, RoutedEventArgs e) | |
DialogResult = ckbxAgreeToHelp.IsChecked ?? false; | ||
|
||
if (DialogResult) | ||
TelemetryController.EnableTelemetry(); | ||
TelemetryController.OptIntoTelemetry(); | ||
else | ||
TelemetryController.DisableTelemetry(); | ||
TelemetryController.OptOutOfTelemetry(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just a rename to better distinguish which level of enabling we are setting |
||
|
||
WaitHandle.Set(); | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -631,7 +631,7 @@ public static ConfigurationModel GetDefaultConfigurationModel(FixedConfigSetting | |
FontSize = FontSize.Standard, | ||
HighlighterMode = HighlighterMode.HighlighterBeakerTooltip, | ||
ShowAncestry = true, | ||
EnableTelemetry = true, | ||
EnableTelemetry = false, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't strictly necessary but better reflects what the default value should be |
||
ShowTelemetryDialog = true, | ||
|
||
IsUnderElementScope = true, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,15 @@ namespace AccessibilityInsights.SharedUx.Telemetry | |
{ | ||
internal interface ITelemetrySink | ||
{ | ||
/// <summary> | ||
/// We allow group policy to disable telemetry. This takes precedence over user opt-in | ||
/// </summary> | ||
bool DoesGroupPolicyAllowTelemetry { get; } | ||
|
||
/// <summary> | ||
/// Whether or not telemetry toggle button is enabled in the settings. | ||
/// </summary> | ||
bool IsTelemetryAllowed { get; set; } | ||
bool HasUserOptedIntoTelemetry { get; set; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just a rename to better distinguish which level of enabling we are setting |
||
|
||
/// <summary> | ||
/// Whether or not telemetry is enabled. Exposed to allow callers who do lots of | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a rename to better distinguish which level of enabling we are setting