-
Notifications
You must be signed in to change notification settings - Fork 339
Comparing changes
Open a pull request
base repository: firebase/firebase-admin-python
base: v6.7.0
head repository: firebase/firebase-admin-python
compare: master
- 9 commits
- 27 files changed
- 4 contributors
Commits on Mar 19, 2025
-
feat(fcm): Support
proxy
field in FCMAndroidNotification
(#868)* feat(fcm): Support `proxy` field in FCM `AndroidNotification` * fix lint * fix: Update `proxy` and `visibility` doc string with TW suggestion
Configuration menu - View commit details
-
Copy full SHA for 387f11a - Browse repository at this point
Copy the full SHA 387f11aView commit details
Commits on Apr 22, 2025
-
Python 3.8 has EoL'ed. Update README to deprecate Python 3.8 support (#…
…873) Updated the 'Supported Python Versions' section in README.md to indicate that Python 3.7 and Python 3.8 support is deprecated, advising users to use Python 3.9 or higher. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ffeb939 - Browse repository at this point
Copy the full SHA ffeb939View commit details
Commits on Apr 24, 2025
-
Configuration menu - View commit details
-
Copy full SHA for bde3fb0 - Browse repository at this point
Copy the full SHA bde3fb0View commit details
Commits on May 8, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 70013c8 - Browse repository at this point
Copy the full SHA 70013c8View commit details
Commits on May 27, 2025
-
chore: Use mock time for consistent token generation and verification…
… tests (#881) * Fix(tests): Use mock time for consistent token generation and verification tests Patches time.time and google.auth.jwt._helpers.utcnow to use a fixed timestamp (MOCK_CURRENT_TIME) throughout tests/test_token_gen.py. This addresses test flakiness and inconsistencies by ensuring that: 1. Tokens and cookies are generated with predictable `iat` and `exp` claims based on MOCK_CURRENT_TIME. 2. The verification logic within the Firebase Admin SDK and the underlying google-auth library also uses MOCK_CURRENT_TIME. Helper functions _get_id_token and _get_session_cookie were updated to default to using MOCK_CURRENT_TIME for their internal time calculations, simplifying test code. Relevant fixtures and token definitions were updated to rely on these new defaults and the fixed timestamp. The setup_method in TestVerifyIdToken, TestVerifySessionCookie, TestCertificateCaching, and TestCertificateFetchTimeout now mock time.time and google.auth.jwt._helpers.utcnow to ensure that all time-sensitive operations during testing use the MOCK_CURRENT_TIME. * Fix(tests): Apply time mocking to test_tenant_mgt.py Extends the time mocking strategy (using a fixed MOCK_CURRENT_TIME) to tests in `tests/test_tenant_mgt.py` to ensure consistency with changes previously made in `tests/test_token_gen.py`. Specifically: - Imported `MOCK_CURRENT_TIME` from `tests.test_token_gen`. - Added `setup_method` (and `teardown_method`) to the `TestVerifyIdToken` and `TestCreateCustomToken` classes. - These setup methods patch `time.time` and `google.auth.jwt._helpers.utcnow` to return `MOCK_CURRENT_TIME` (or its datetime equivalent). This ensures that token generation (for custom tokens) and token verification within `test_tenant_mgt.py` align with the mocked timeline, preventing potential flakiness or failures due to time inconsistencies. All tests in `test_tenant_mgt.py` pass with these changes. * fix lint and refactor --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 2d9b18c - Browse repository at this point
Copy the full SHA 2d9b18cView commit details
Commits on Jun 3, 2025
-
feat(fcm): Add
live_activity_token
toAPNSConfig
(#880)* Add live_activity_token to `APNSConfig`, allowing you to specify this token for APNS messages. This change introduces: - Adding the `live_activity_token` field to the `APNSConfig` class - Updated unit test to verify that the `live_activity_token` is correctly included in the encoded message * Refactor and edit doc string --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for f7546f5 - Browse repository at this point
Copy the full SHA f7546f5View commit details -
refactor: Optimize success count calculation in BatchResponse (#837)
Co-authored-by: Lahiru Maramba <[email protected]> Co-authored-by: Jonathan Edey <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e0599f9 - Browse repository at this point
Copy the full SHA e0599f9View commit details -
feat(fcm) Add
send_each_async
andsend_each_for_multicast_async
f……or FCM async and HTTP/2 support (#882) * Added minimal support for sending FCM messages in async using HTTP/2 (#870) * httpx async_send_each prototype * Clean up code and lint * fix: Add extra dependancy for http2 * fix: reset message batch limit to 500 * fix: Add new import to `setup.py` * Refactored retry config into `_retry.py` and added support for exponential backoff and `Retry-After` header (#871) * Refactored retry config to `_retry.py` and added support for backoff and Retry-After * Added unit tests for `_retry.py` * Updated unit tests for HTTPX request errors * Address review comments * Added `HttpxAsyncClient` wrapper for `httpx.AsyncClient` and support for `send_each_for_multicast_async()` (#878) * Refactored retry config to `_retry.py` and added support for backoff and Retry-After * Added unit tests for `_retry.py` * Updated unit tests for HTTPX request errors * Add HttpxAsyncClient to wrap httpx.AsyncClient * Added forced refresh to google auth credential flow and fixed lint * Added unit tests for `GoogleAuthCredentialFlow` and `HttpxAsyncClient` * Removed duplicate export * Added support for `send_each_for_multicast_async()` and updated doc string and type hints * Remove duplicate auth class * Cover auth request error case when `requests` request fails in HTTPX auth flow * Update test for `send_each_for_multicast_async()` * Address review comments * fix lint and some types * Address review comments and removed unused code * Update metric header test logic for `TestHttpxAsyncClient` * Add `send_each_for_multicast_async` to `__all__` * Apply suggestions from TW review
Configuration menu - View commit details
-
Copy full SHA for 99b6020 - Browse repository at this point
Copy the full SHA 99b6020View commit details
Commits on Jun 5, 2025
-
Configuration menu - View commit details
-
Copy full SHA for e4aff7e - Browse repository at this point
Copy the full SHA e4aff7eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v6.7.0...master