Skip to content

Trigger parser can create callable triggers - #4310

Merged
taeold merged 5 commits into
masterfrom
inlined.callable-trigger-fix
Mar 16, 2022
Merged

taeold merged 5 commits into
masterfrom
inlined.callable-trigger-fix

Conversation

@inlined

@inlined inlined commented Mar 16, 2022

Copy link
Copy Markdown
Member

Fixes #4307 and #4302.

endpointFromFunction was correctly identifying that labels["deployment-callable"] gives an endpoint a callableTrigger but parseTriggers.ts had no codepath that gave them a callableTrigger (instead falling back to an httpsTriggerr and labels).

@inlined
inlined requested a review from colerogers March 16, 2022 17:00
@taeold
taeold force-pushed the inlined.callable-trigger-fix branch from ac760c6 to 563e91a Compare March 16, 2022 18:05
@taeold
taeold force-pushed the inlined.callable-trigger-fix branch from 563e91a to 8ca3d43 Compare March 16, 2022 18:10
@taeold
taeold self-requested a review March 16, 2022 18:17
@taeold
taeold enabled auto-merge (squash) March 16, 2022 18:51
@taeold
taeold merged commit c8337ee into master Mar 16, 2022
taeold added a commit that referenced this pull request Mar 17, 2022
Fixes #4313

In #4310, we started to support new type of triggers `callableTrigger` (distinct from `httpTrigger`).

Functions Emulator does not support `callableTrigger`. We fix this by converting `callbleTrigger` to `httpTrigger`. This is tech debt - at some point, we should use `endpoint` definitions throughout the emulator (cc @joehan).

Also adds integration tests for emulating callable triggers to prevent this kind of breakages in the future.
@bkendall
bkendall deleted the inlined.callable-trigger-fix branch March 18, 2022 23:18
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.

Cannot redeploy functions after CLI upgrade from 10.2.2→10.3.0

3 participants