-
Notifications
You must be signed in to change notification settings - Fork 23
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
[unified_analytics 5.8.8] Prevent FileSystemException
s from happening when logging outgoing events
#280
Conversation
…`Analytics.send` (#274)
* delete old log file if it exceeds kMaxLogFileSize of 25MiB * update changelog * bump version in pubspec.yaml * update constants.dart
FileSystemException
s from happening when logging outgoing payloadsFileSystemException
s from happening when logging outgoing events
@devoncarew My intention here is to create a patch for unified_analytics v5 (5.8.8+2). Here's what I've done so far/plan to do:
Let me know if you think this won't work. |
It looks like CI only watches the main branch, so I'm not sure what the workflow would be here. |
This broadly makes sense. A few notes:
|
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
Oops, I probably should have ran the tests before merging 😛. I'll probably just fix the new branch directly. |
The tests should have run for this PR automatically. Looking at the config, it looks like its set up to only run for PRs which target |
…8+1 to 5.8.8+2 (#151046) Resolves #150137 (the issue is already resolved in master with the use of package:unified_analytics:6.1.2). Patches the fixes from [unified_analytics:5.8.8+2](dart-lang/tools#280) to stable.
The goal of this is to patch unified_analytics v5 with the fixes from #274 and #277.
In summary, unified_analytics logs (the 2500 most-recent) outgoing analytics events. This is primarily to be read in the future for targeted surveys. However, due to some unknown edge case(s) (investigation pending), it's possible this file can reach a massive size. #277 fixed this for unified_analytics v6, but we need to port this to v5, because the stable branch of Flutter (which we want to hotfix) uses v5.
Contribution guidelines:
dart format
.Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.