Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container contract updates #4388

Merged
merged 7 commits into from
Apr 1, 2022
Merged

Container contract updates #4388

merged 7 commits into from
Apr 1, 2022

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Mar 31, 2022

Partial revert of #4240 where we transformed EventFilters to list of arrays. We now prefer to keep the object structure.

To support path-pattern operator on event filters, we add new eventFilterPathPattern property. While we are at it, we also adds channel property to event trigger definition.

Note that most of the affected changes are in test files :/

Relevant SDK change: firebase/firebase-functions#1070

Partial revert of #4240 where we transformed EventFilters to list of arrays. We now prefer to keep the object structure.

To support path-pattern operator on event filters, we add new eventFilterPathPattern property.

Also adds channel property to event trigger definition.
Copy link
Contributor

@colerogers colerogers left a comment

Choose a reason for hiding this comment

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

couple things, then we're g2g

src/deploy/functions/release/planner.ts Outdated Show resolved Hide resolved
src/deploy/functions/backend.ts Outdated Show resolved Hide resolved
@taeold taeold requested a review from colerogers March 31, 2022 23:51
@taeold taeold enabled auto-merge (squash) April 1, 2022 05:53
@taeold taeold merged commit 95a246b into master Apr 1, 2022
Copy link
Member

@inlined inlined left a comment

Choose a reason for hiding this comment

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

Woof. Lots of work all over again. TY for this.

@@ -48,7 +48,7 @@ export interface CallableTriggered {
callableTrigger: CallableTrigger;
}

type EventFilterKey = "resource" | "topic" | "bucket" | string;
type EventFilterKey = "resource" | "topic" | "bucket" | "alerttype" | string;
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it's silly to keep this type.

@@ -485,6 +477,9 @@ export function functionFromEndpoint(endpoint: backend.Endpoint, source: Storage
return gcfFunction;
}

/**
*
Copy link
Member

Choose a reason for hiding this comment

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

wat

@kaibolay kaibolay deleted the dl-cf3-event-filters-revert branch September 15, 2022 15:32
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.

None yet

3 participants