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.7.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
  • 71 files changed
  • 7 contributors

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
    1 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 <llahiru@gmail.com>
    Co-authored-by: Jonathan Edey <145066863+jonathanedey@users.noreply.github.com>
    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

Commits on Jun 13, 2025

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

Commits on Jul 2, 2025

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

Commits on Jul 14, 2025

  1. Merge v7 Feature Branch (#900)

    * change(fcm): Remove deprecated FCM APIs (#890)
    
    * chore(deps): Bump minimum supported Python version to 3.9 and add 3.13 to CIs (#892)
    
    * chore(deps): Bump minimum supported Python version to 3.9 and add 3.13 to CIs
    
    * fix deprecation warnings
    
    * fix GHA build status svg
    
    * fix: Correctly scope async eventloop
    
    * fix: Bump pylint to v2.7.4 and astroid to v2.5.8 to fix lint issues
    
    * fix ml tests
    
    * fix lint
    
    * fix: remove commented code
    
    * change(ml): Drop AutoML model support (#894)
    
    * chore: Bump `pylint` to v3.3.7 and `astroid` to v3.3.10 (#895)
    
    * chore: Bump pylint to v3
    
    * chore: fix src lint
    
    * chore: fix unit test lint
    
    * chore: fix integration test lint
    
    * chore: fix snippets lint
    
    * chore: 2nd pass for errors
    
    * fix: corrected use of the `bad-functions` config
    
    * fix: add EoF newline
    
    * chore: Upgraded Google API Core, Cloud Firestore, and Cloud Storage dependencies (#897)
    
    * chore: Bump dependencies
    
    * fix: Also update setup.py
    
    * fix(functions): Remove usage of deprecated `datetime.utcnow() and fix flaky unit test` (#896)
    jonathanedey authored Jul 14, 2025
    Configuration menu
    Copy the full SHA
    8d8439f View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2025

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

Commits on Jul 17, 2025

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

Commits on Jul 23, 2025

  1. feat(auth) Update ActionCodeSettings to support link_domain and d…

    …eprecate `dynamic_link_domain` (#884)
    
    * Add link_domain to ActionCodeSettings; update encode_action_code_settings to handle link_domain
    
    * Add handling for InvalidHostingLinkDomainError
    
    * Add deprecation warning for dynamic_link_domain
    
    * Update error message for InvalidHostingLinkDomainError
    
    * Fix lint
    
    * Add type hints to ActionCodeSettings
    
    * Fix f-string lint
    huwmartin authored Jul 23, 2025
    Configuration menu
    Copy the full SHA
    4fa2918 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2025

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