-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update cloud functions to 2nd generation #301
Merged
Alona-Kirichenko
merged 16 commits into
main
from
update_cloud_functions_to_2nd_generation
Aug 27, 2024
Merged
Update cloud functions to 2nd generation #301
Alona-Kirichenko
merged 16 commits into
main
from
update_cloud_functions_to_2nd_generation
Aug 27, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…l with the whole path and not just name of the function
covetous
previously approved these changes
Aug 27, 2024
covetous
approved these changes
Aug 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updating Firebase cloud function from first generation to second generation.
Right now they are deployed only to dev. If you open cloud console you still can see both gen functions of function at dev. After this PR approved I will delete first gen functions from cloud.
Now we need to use 'dotenv' library to configure your environment
Here is more info https://firebase.google.com/docs/functions/config-env?gen=2nd
onCall
onCall, you need to path the whole url and not just a name of the function as we use to do with first gen functions
here is more info invertase/react-native-firebase#6622 (comment)
I deployd almost all functions to europe-north1 region
But
onSchedule
But onSchrdul function doesn't support all region firebase/firebase-functions#1293 (comment)
I didn't change deleteUser to second gen, because we don't use this function anywhere for now. I was commenting it away in case we want to start to use it. We can discuss it
downloadData I will update to second gen in another branch
assignAdminClaim I deleted. It was a function for developers to huck claims. To give to specific user role in clams. I don't think we need it