Skip to content

[flutter_tools] Fix analytics opt out event#48585

Merged
zanderso merged 1 commit intoflutter:masterfrom
zanderso:fix-analytics-opt-out
Jan 10, 2020
Merged

[flutter_tools] Fix analytics opt out event#48585
zanderso merged 1 commit intoflutter:masterfrom
zanderso:fix-analytics-opt-out

Conversation

@zanderso
Copy link
Copy Markdown
Member

Description

Prior to this change, we toggled the flag before trying to send the event, which would lead to dropping events when toggling to false.

Tests

I added the following tests:

Fixed a test in config_test.dart, which didn't catch this due to the misuse of a mock.

Breaking Change

Did any tests fail when you ran them? Please read [Handling breaking changes].

  • No, no existing tests failed, so this is not a breaking change.

@zanderso zanderso added the tool Affects the "flutter" command-line tool. See also t: labels. label Jan 10, 2020
Copy link
Copy Markdown
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread packages/flutter_tools/lib/src/commands/config.dart Outdated
@zanderso zanderso merged commit 67a68e9 into flutter:master Jan 10, 2020
@zanderso zanderso deleted the fix-analytics-opt-out branch January 10, 2020 22:35
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants