Skip to content

feat(functions): improve parameter prompting clarity for multi-codebase deploys - #10897

Merged
ajperel merged 1 commit into
mainfrom
ajp/wizard-with-context-wins
Aug 8, 2026
Merged

ajperel merged 1 commit into
mainfrom
ajp/wizard-with-context-wins

Conversation

@ajperel

@ajperel ajperel commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Description

Improve parameter prompting clarity for multi-codebase deployments. When deploying functions with multiple codebases, it was previously unclear which codebase a parameter was being prompted for. This change:

  • Prints a header before prompting for parameters for a codebase: "Prompting for parameters for codebase :" (with bolded codebase name).
  • Uses relative paths (from project root) for .env files in log messages (e.g. functions/.env.ajp-testing instead of /absolute/path/to/functions/.env.ajp-testing).
  • Updates unit tests to verify the new logging format.

Before

Screenshot 2026-08-06 at 10 45 43 AM

After

Screenshot 2026-08-06 at 10 43 24 AM

Scenarios Tested

  • Ran all tests (npm run test)
  • Tested functions deployment in prod and emulator

Sample Commands

  • firebase deploy --only functions
  • firebase emulators:start

TAG=agy
CONV=4eeb75b0-e6d0-4611-9e3a-9737a017a802

@wiz-9635d3485b

wiz-9635d3485b Bot commented Aug 6, 2026 •

Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings 4 Medium 1 Low
Software Management Finding Software Management Findings -
Total 4 Medium 1 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request improves parameter prompting clarity for multi-codebase deploys by displaying the codebase name in the prompt header, and updates environment variable logging to use relative paths instead of absolute paths. The review feedback suggests making the newly introduced projectDir property optional in UserEnvsOpts and providing a fallback to process.cwd() to prevent potential runtime crashes and ensure backward compatibility with un-migrated callers.

Comment thread src/functions/env.ts Resolved
Comment thread src/functions/env.ts Resolved
Comment thread src/functions/env.ts Resolved
@ajperel
ajperel requested review from Berlioz and joehan August 6, 2026 22:32
@ajperel
ajperel force-pushed the ajp/wizard-with-context-wins branch 2 times, most recently from fb48829 to 96c722a Compare August 7, 2026 21:33
Comment thread src/functions/env.ts Resolved
Comment thread src/deploy/functions/params.ts Resolved
Comment thread CHANGELOG.md Outdated
- Added `appcheck:apps:list` to show every app with its configured App Check providers.
- Added web app support for Crashlytics MCP tools and prompts.
- Added support for forwarding custom HTTP headers (`Mcp-Param-*`) to remote MCP tools when defined in tool parameter input schemas (`x-mcp-header`), per [SEP-2243](https://modelcontextprotocol.io/seps/2243-http-standardization).
- feat(functions): improve parameter prompting clarity for multi-codebase deploys (#10897)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: consistent style with the other

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lines in this file might be good

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

…se deploys

Improve parameter prompting clarity for multi-codebase deployments.
When deploying functions with multiple codebases, it was previously unclear which codebase a parameter was being prompted for. This change:
- Prints a header before prompting for parameters for a codebase: "Prompting for parameters for codebase <codebase>:" (with bolded codebase name).
- Uses relative paths (from project root) for `.env` files in log messages (e.g. functions/.env.ajp-testing instead of /absolute/path/to/functions/.env.ajp-testing).
- Updates unit tests to verify the new logging format.

* Ran all tests (`npm run test`)
* Tested functions deployment in prod and emulator

* `firebase deploy --only functions`
* `firebase emulators:start`

TAG=agy
CONV=4eeb75b0-e6d0-4611-9e3a-9737a017a802
@ajperel
ajperel force-pushed the ajp/wizard-with-context-wins branch from 96c722a to 1754917 Compare August 7, 2026 23:49
@ajperel
ajperel merged commit bc6e97f into main Aug 8, 2026
131 of 134 checks passed
@ajperel
ajperel deleted the ajp/wizard-with-context-wins branch August 8, 2026 15:52
yuichi0301 pushed a commit to yuichi0301/firebase-tools that referenced this pull request Aug 16, 2026
…se deploys (firebase#10897)

Improve parameter prompting clarity for multi-codebase deployments.
When deploying functions with multiple codebases, it was previously unclear which codebase a parameter was being prompted for. This change:
- Prints a header before prompting for parameters for a codebase: "Prompting for parameters for codebase <codebase>:" (with bolded codebase name).
- Uses relative paths (from project root) for `.env` files in log messages (e.g. functions/.env.ajp-testing instead of /absolute/path/to/functions/.env.ajp-testing).
- Updates unit tests to verify the new logging format.

* Ran all tests (`npm run test`)
* Tested functions deployment in prod and emulator

* `firebase deploy --only functions`
* `firebase emulators:start`

TAG=agy
CONV=4eeb75b0-e6d0-4611-9e3a-9737a017a802
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.

3 participants