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

Add support for deploying new blocking triggers #6384

Merged
merged 18 commits into from
Oct 21, 2024

Conversation

blidd-google
Copy link
Contributor

@blidd-google blidd-google commented Sep 20, 2023

GCIP now supports two new event types beforeSendEmail and beforeSendSms. This PR adds support for deploying the new auth blocking function types that are triggered on beforeSendEmail and beforeSendSms events.

@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2023

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (6e9f56e) 54.73% compared to head (5a1f286) 54.60%.
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6384      +/-   ##
==========================================
- Coverage   54.73%   54.60%   -0.13%     
==========================================
  Files         346      346              
  Lines       23694    23870     +176     
  Branches     4872     4932      +60     
==========================================
+ Hits        12968    13035      +67     
- Misses       9533     9628      +95     
- Partials     1193     1207      +14     
Files Coverage Δ
src/deploy/functions/release/fabricator.ts 80.00% <100.00%> (+0.05%) ⬆️
src/deploy/functions/services/index.ts 96.15% <ø> (ø)
src/functions/constants.ts 100.00% <ø> (ø)
src/functions/events/v1.ts 100.00% <100.00%> (ø)
src/gcp/identityPlatform.ts 39.13% <ø> (ø)
src/deploy/functions/services/auth.ts 56.16% <25.00%> (-6.55%) ⬇️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@Xiaoshouzi-gh Xiaoshouzi-gh left a comment

Choose a reason for hiding this comment

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

LGTM. Should CI be all passed for this repo?

};
} else {
throw new FirebaseError(
`Received invalid blocking trigger event type ${endpoint.blockingTrigger.eventType}`

Choose a reason for hiding this comment

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

quick question - seems like the error msg will be thrown to customers using firebase CLI, would new error codes and msg needs some sort of approval?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The error message will be wrapped in an error object that will have a code related to a failed deployment.

@blidd-google blidd-google marked this pull request as ready for review November 28, 2023 21:37
CHANGELOG.md Outdated Show resolved Hide resolved
@pragatimodi
Copy link

pragatimodi commented Aug 20, 2024

Can you update this branch with a master rebase? @blidd-google

@blidd-google blidd-google changed the title Add support for deploying beforeEmailSent blocking function Add support for deploying new blocking triggers Oct 17, 2024
@blidd-google blidd-google enabled auto-merge (squash) October 17, 2024 19:45
@blidd-google blidd-google merged commit 5649862 into master Oct 21, 2024
40 of 41 checks passed
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.

5 participants