Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: firebase/firebase-admin-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.6.0
Choose a base ref
...
head repository: firebase/firebase-admin-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 16 commits
  • 32 files changed
  • 6 contributors

Commits on Dec 19, 2024

  1. chore: Skip integration test for deprecated FCM API and bump pypy CI …

    …to 3.9 (#840)
    
    * chore: Skip integration test for deprecated FCM API
    
    * chore: Bump pypy test version to 3.9
    jonathanedey authored Dec 19, 2024
    Configuration menu
    Copy the full SHA
    43ab91e View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2024

  1. chore: Adding delayed response message for holidays (#842)

    * Adding delayed response message for holidays
    
    * fix date
    jonathanedey authored Dec 20, 2024
    Configuration menu
    Copy the full SHA
    8ba819a View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2025

  1. Configuration menu
    Copy the full SHA
    0ce187f View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2025

  1. Configuration menu
    Copy the full SHA
    e5618c0 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2025

  1. chore: Add tests for Reference.listen() (#851)

    * chore: Add unit tests for `Reference.listen()`
    
    * Integration test for rtdb listeners
    
    * fix lint
    jonathanedey authored Jan 22, 2025
    Configuration menu
    Copy the full SHA
    e6c95e7 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2025

  1. Configuration menu
    Copy the full SHA
    cc9a069 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2025

  1. Configuration menu
    Copy the full SHA
    3c86208 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2025

  1. feat(fcm): Support proxy field in FCM AndroidNotification (#868)

    * feat(fcm): Support `proxy` field in FCM `AndroidNotification`
    
    * fix lint
    
    * fix: Update `proxy` and `visibility` doc string with TW suggestion
    jonathanedey authored Mar 19, 2025
    Configuration menu
    Copy the full SHA
    387f11a View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2025

  1. 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>
    lahirumaramba and google-labs-jules[bot] authored Apr 22, 2025
    Configuration menu
    Copy the full SHA
    ffeb939 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2025

  1. Configuration menu
    Copy the full SHA
    bde3fb0 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2025

  1. Configuration menu
    Copy the full SHA
    70013c8 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2025

  1. 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>
    jonathanedey and google-labs-jules[bot] authored May 27, 2025
    Configuration menu
    Copy the full SHA
    2d9b18c View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2025

  1. feat(fcm): Add live_activity_token to APNSConfig (#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>
    jonathanedey and google-labs-jules[bot] authored Jun 3, 2025
    Configuration menu
    Copy the full SHA
    f7546f5 View commit details
    Browse the repository at this point in the history
  2. refactor: Optimize success count calculation in BatchResponse (#837)

    Co-authored-by: Lahiru Maramba <[email protected]>
    Co-authored-by: Jonathan Edey <[email protected]>
    3 people authored Jun 3, 2025
    Configuration menu
    Copy the full SHA
    e0599f9 View commit details
    Browse the repository at this point in the history
  3. feat(fcm) Add send_each_async and send_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
    jonathanedey authored Jun 3, 2025
    Configuration menu
    Copy the full SHA
    99b6020 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2025

  1. Configuration menu
    Copy the full SHA
    e4aff7e View commit details
    Browse the repository at this point in the history
Loading