-
Notifications
You must be signed in to change notification settings - Fork 123
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
Bug 1649926 - Always enqueue an async task to change upload and deprecate getUploadEnabled
#1046
Merged
Commits on Jul 22, 2020
-
Always enqueue an async task to change upload
That way it follows what a user expect when calling it inbetween other calls: It executes in the right order. Because the dispatch queue is halted until Glean is fully initialized we can safely enqueue here and it will execute after initialization.
Configuration menu - View commit details
-
Copy full SHA for 482a2b7 - Browse repository at this point
Copy the full SHA 482a2b7View commit details -
Deprecate
getUploadEnabled()
across all implementationsDue to Glean's asynchronous initialization the return value can be incorrect. Applications should not rely on Glean's internal state. Upload enabled status should be tracked by the application and communicated to Glean if it changes. Note: The method was removed from the C# implementation.
Configuration menu - View commit details
-
Copy full SHA for 93c17be - Browse repository at this point
Copy the full SHA 93c17beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b3b5de - Browse repository at this point
Copy the full SHA 5b3b5deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 887c3f0 - Browse repository at this point
Copy the full SHA 887c3f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d9ed97 - Browse repository at this point
Copy the full SHA 5d9ed97View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0268a3 - Browse repository at this point
Copy the full SHA c0268a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f0ea21 - Browse repository at this point
Copy the full SHA 8f0ea21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 758b284 - Browse repository at this point
Copy the full SHA 758b284View commit details -
Configuration menu - View commit details
-
Copy full SHA for d165822 - Browse repository at this point
Copy the full SHA d165822View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47e7865 - Browse repository at this point
Copy the full SHA 47e7865View commit details -
Reset all global state when destroying the Glean handle
After we destroy the Glean handle we should be conceptually in a clean state, just as if the app is just starting and loading Glean. And for Glean that means tasks should get queued up. Some tests explicitly toggle this already, but resetting it here does not seem to affect them.
Configuration menu - View commit details
-
Copy full SHA for 2971286 - Browse repository at this point
Copy the full SHA 2971286View commit details -
Co-authored-by: Alessio Placitelli <alessio.placitelli@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2717a62 - Browse repository at this point
Copy the full SHA 2717a62View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.