-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Suppress analytics flag pass through to analysis server #123235
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
Suppress analytics flag pass through to analysis server #123235
Conversation
@@ -179,6 +182,44 @@ void main() { | |||
await server.dispose(); | |||
}); | |||
|
|||
testUsingContext('Can run AnalysisService without suppressing analytics', () async { |
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 largely a cut and paste from a different test. I'm not happy about how complicated it is, but my attempts to simplify it resulted in puzzling errors and hangs. Suggestions welcome.
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.
LGTM; but, if this change can wait, I'd consider getting a review from @eliasyishak or @christopherfujino since they are likely more familiar with the context of this change
@jcollins-g is this part of the unified analytics project? That is, relying on https://pub.dev/packages/unified_analytics. I thought that the idea was that the analyzer would have direct access to whether or not the user has opted in to analytics? |
Yes, and you are correct in the common case. This change is for the edge case when a flutter user is opted in to analytics generally, but has passed in |
Ahh, ok, TIL the flutter tool implements that flag :) SGTM |
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.
LGTM
@jcollins-g any time you're ready to merge this, you can add the "autosubmit" label to this PR, and a bot will merge it once the tree is green. |
auto label is removed for flutter/flutter, pr: 123235, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
auto label is removed for flutter/flutter, pr: 123235, due to - The status or check suite Linux firebase_abstract_method_smoke_test has failed. Please fix the issues identified (or deflake) before re-applying this label. |
This allows
flutter analyze
to pass through the new--suppress-analytics
flag in analysis server when--suppress-analytics
is on theflutter
command line.Issue: dart-lang/sdk#49445
Pre-launch Checklist
///
).