FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(project_management): Added app_store_id parameter to create_ios_… by rishabshukla-code · Pull Request #999 · firebase/firebase-admin-python · GitHub

Repository navigation

feat(project_management): Added app_store_id parameter to create_ios_… - #999

Open
rishabshukla-code wants to merge 2 commits into
firebase:mainfrom
rishabshukla-code:ios-app-store-id
Open

rishabshukla-code wants to merge 2 commits into
firebase:mainfrom
rishabshukla-code:ios-app-store-id

Conversation

Copy link
Copy Markdown

Fixes #619

Problem

The Project Management REST API accepts an appStoreId when creating an iOS app, but create_ios_app() only exposed bundle_id and display_name.

Change

  • Added an optional app_store_id parameter to project_management.create_ios_app() and the internal service method.
  • It is placed after app so existing positional calls are unaffected.
  • Validated with the existing _check_is_string_or_none helper and sent as appStoreId in the request body only when provided.
  • Android app creation is unchanged.

Testing

  • Added test_create_ios_app_with_app_store_id to verify appStoreId is included in the request body.
  • Added test_create_ios_app_invalid_app_store_id (parametrized) to verify non-string values raise ValueError before any request is made.
  • pytest tests passes (4139 passed), and ./lint.sh reports 10.00/10.

API change

This adds an optional parameter to a public function. As noted by @lahirumaramba in #619, public API changes need internal approval. Happy to adjust naming or approach based on that review.

…app()

Added an optional app_store_id argument to create_ios_app() that is validated as a string and sent as appStoreId in the create request body. Added unit tests for valid and invalid values.
rishabshukla-code requested a review from a team October 21, 2026 22:59

gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Code Review

This pull request adds support for an optional app_store_id parameter when creating iOS apps, updating both the API implementation and adding corresponding unit tests. The feedback suggests using _check_is_nonempty_string_or_none instead of _check_is_string_or_none to prevent empty strings from passing validation and being silently ignored.

Comment thread firebase_admin/project_management.py Resolved
Used _check_is_nonempty_string_or_none so an empty app_store_id raises ValueError instead of being silently dropped from the request.

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AppStoreId property missing

1 participant


Back | FazBrowse Home | New Git URL