-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Migration for the sendTiming events for package:unified_analytics
#138896
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
Migration for the sendTiming events for package:unified_analytics
#138896
Conversation
This needs to be done on its own because we return before the `_sendPostUsage` method can send the command ran
packages/flutter_tools/test/general.shard/runner/flutter_command_runner_test.dart
Show resolved
Hide resolved
|
I believe this analysis error is unrelated to your change and fixed upstream: |
|
@christopherfujino ah i see, thanks, i was wondering why it kept coming up |
sendTiming events for package:unified_analyticssendTiming events for package:unified_analytics
packages/flutter_tools/test/general.shard/ios/ios_device_start_nonprebuilt_test.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/resident_web_runner_test.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/resident_web_runner_test.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/runner/flutter_command_runner_test.dart
Outdated
Show resolved
Hide resolved
| expect(timingEventCounts, 0, | ||
| reason: 'There should not be any timing events sent, ' | ||
| 'there may be other events'); |
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.
| expect(timingEventCounts, 0, | |
| reason: 'There should not be any timing events sent, ' | |
| 'there may be other events'); | |
| expect( | |
| timingEventCounts, | |
| 0, | |
| reason: 'There should not be any timing events sent, there may be other events', | |
| ); |
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.
why would there be other events?
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.
oh, this test was only ever testing that there weren't timing events?
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.
Correct, with package:usage, we had separate lists for timing, commands, and other events, but with the new approach they are stored in the same sentEvents list.
packages/flutter_tools/test/general.shard/runner/flutter_command_test.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/runner/flutter_command_test.dart
Outdated
Show resolved
Hide resolved
packages/flutter_tools/test/general.shard/web/compile_web_test.dart
Outdated
Show resolved
Hide resolved
christopherfujino
left a comment
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 LGTM modulo nits
…nalytics`" (#139278) Reverts #138896 Initiated by: CaseyHillers This change reverts the following previous change: Original Description: Related to tracker issue: - #128251 <img width="278" alt="image" src="https://github.com/flutter/flutter/assets/42216813/cee7b9be-48d6-48e5-8c39-de28d0a1f0de"> The image above shows all of the instances where we have `sendTiming`. All of the call sites have been updated to use the new `Event.timing` event from `package:unified_analytics`.
flutter/flutter@5e5b529...918e336 2023-11-30 [email protected] Move Impeller tests on Pixel 7 Pro from staging to prod (flutter/flutter#139280) 2023-11-30 [email protected] Introduce multi-touch drag strategies for `DragGestureRecognizer` (flutter/flutter#136708) 2023-11-30 [email protected] Use the correct recipe on fuchsia_precache. (flutter/flutter#139279) 2023-11-30 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Migration for the `sendTiming` events for `package:unified_analytics`" (flutter/flutter#139278) 2023-11-30 [email protected] Migrate fuchsia_precache to shard tests. (flutter/flutter#139202) 2023-11-29 [email protected] Fix chips `onDeleted` callback don't show the delete button when disabled (flutter/flutter#137685) 2023-11-29 [email protected] Roll Flutter Engine from 9a7e49d75411 to 35939ca8534f (5 revisions) (flutter/flutter#139259) 2023-11-29 [email protected] Refactor to use Apple system fonts (flutter/flutter#137275) 2023-11-29 [email protected] Dynamic view sizing (flutter/flutter#138648) 2023-11-29 [email protected] Roll dependencies (flutter/flutter#139203) 2023-11-29 [email protected] add sourceTimeStamp to ScaleUpdateDetails (flutter/flutter#135936) 2023-11-29 [email protected] Roll Flutter Engine from 222beb28a8eb to 9a7e49d75411 (1 revision) (flutter/flutter#139250) 2023-11-29 [email protected] Remove deprecated `PlatformMenuBar.body` (flutter/flutter#138509) 2023-11-29 [email protected] Migration for the `sendTiming` events for `package:unified_analytics` (flutter/flutter#138896) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
|
This PR was reverted due to Google3 updates that need to be made: |
…flutter#138896) Related to tracker issue: - flutter#128251 <img width="278" alt="image" src="https://github.com/flutter/flutter/assets/42216813/cee7b9be-48d6-48e5-8c39-de28d0a1f0de"> The image above shows all of the instances where we have `sendTiming`. All of the call sites have been updated to use the new `Event.timing` event from `package:unified_analytics`.
…nalytics`" (flutter#139278) Reverts flutter#138896 Initiated by: CaseyHillers This change reverts the following previous change: Original Description: Related to tracker issue: - flutter#128251 <img width="278" alt="image" src="https://github.com/flutter/flutter/assets/42216813/cee7b9be-48d6-48e5-8c39-de28d0a1f0de"> The image above shows all of the instances where we have `sendTiming`. All of the call sites have been updated to use the new `Event.timing` event from `package:unified_analytics`.
Related to tracker issue:
package:unified_analyticsimplementation in flutter tool #128251The image above shows all of the instances where we have
sendTiming. All of the call sites have been updated to use the newEvent.timingevent frompackage:unified_analytics.Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.