Repository navigation
feat(functions): improve parameter prompting clarity for multi-codebase deploys - #10897
Conversation
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio. |
There was a problem hiding this comment.
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.
fb48829 to
96c722a
Compare
| - 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) |
There was a problem hiding this comment.
Nit: consistent style with the other
There was a problem hiding this comment.
lines in this file might be good
…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
96c722a to
1754917
Compare
…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
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:
.envfiles in log messages (e.g. functions/.env.ajp-testing instead of /absolute/path/to/functions/.env.ajp-testing).Before
After
Scenarios Tested
npm run test)Sample Commands
firebase deploy --only functionsfirebase emulators:startTAG=agy
CONV=4eeb75b0-e6d0-4611-9e3a-9737a017a802