Skip to content

feat: add warnings when using experimental triggers in Dart runtime#10332

Open
Lyokone wants to merge 2 commits intofirebase:mainfrom
invertase:feat/warning-dart
Open

feat: add warnings when using experimental triggers in Dart runtime#10332
Lyokone wants to merge 2 commits intofirebase:mainfrom
invertase:feat/warning-dart

Conversation

@Lyokone
Copy link
Copy Markdown
Contributor

@Lyokone Lyokone commented Apr 14, 2026

Description

Adding warnings when using experimental triggers in Dart runtime.
Fixes #10305

Scenarios Tested

running emulator:start and deploy

You can see the warning here for firestore triggers.

Screenshot 2026-04-14 at 09 32 43 Screenshot 2026-04-14 at 09 49 03

Copy link
Copy Markdown
Contributor

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

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 introduces a centralized classification system for Dart function triggers, categorizing them into production, emulator-only, and experimental support levels. It integrates warning logs into both the deployment preparation process and the functions emulator to inform users about limited trigger support. The review feedback suggests enhancing the detection and labeling of Eventarc triggers by explicitly checking for the presence of a channel and updating the service mapping logic to include Eventarc explicitly.

Comment thread src/deploy/functions/runtimes/dart/triggerSupport.ts
Comment thread src/deploy/functions/runtimes/dart/triggerSupport.ts
Comment thread src/deploy/functions/runtimes/dart/triggerSupport.ts
@jhuleatt jhuleatt requested review from ajperel and kevmoo April 14, 2026 13:09
Copy link
Copy Markdown
Contributor

@ajperel ajperel left a comment

Choose a reason for hiding this comment

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

This LGTM but let me see if I can get a more experienced developer of firebase-tools to take a look.

* Only non-production endpoints are returned — callers never need to
* enumerate production-ready functions.
*/
export function classifyEndpoints(endpoints: backend.Endpoint[]): {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: Naming is a bit unclear here, since it only classifies non-production endpoints. Maybe rename to classifyNonProductionEndpoints

Copy link
Copy Markdown
Member

@joehan joehan left a comment

Choose a reason for hiding this comment

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

LGTM, please add a CHANGELOG entry like:

- Improved warning messages when deploying or emulating Dart functions.

@ajperel
Copy link
Copy Markdown
Contributor

ajperel commented Apr 14, 2026

Can be abandoned as I merged #10338

Copy link
Copy Markdown
Contributor

@kevmoo kevmoo left a comment

Choose a reason for hiding this comment

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

Abandon this. We have the fix in already!

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.

Add emulator warning for unsupported deployment of Dart functions

5 participants