yamankatby / firebase-extensions Goto Github PK
View Code? Open in Web Editor NEWA collection of Firebase Extensions designed to help you build better apps faster.
License: Apache License 2.0
A collection of Firebase Extensions designed to help you build better apps faster.
License: Apache License 2.0
When installing the extension using the default configuration in region europe-west3 (or europe-west2, or us-central1), I get the following error:
; RESOURCE_ERROR at /deployments/firebase-ext-generate-og-image-1/resources/onInstall: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Build failed: npm ERR! Cannot read property 'chrome-aws-lambda' of undefined\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /www-data-home/.npm/_logs/2023-05-11T06_25_39_232Z-debug.log; Error ID: beaf8772"}; RESOURCE_ERROR at /deployments/firebase-ext-generate-og-image-1/resources/api: {"ResourceType":"gcp-types/cloudfunctions-v1:projects.locations.functions","ResourceErrorCode":"400","ResourceErrorMessage":"Build failed: npm ERR! Cannot read property 'chrome-aws-lambda' of undefined\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /www-data-home/.npm/_logs/2023-05-11T06_25_39_916Z-debug.log; Error ID: beaf8772"}
Tapping "retry installation" completes without another error, however the functions have "Error in Deployment" against them, so the install isn't actually successful.
Can this app be updated to support array fields as a source, too?
PREINSTALL
and POSTINSTALL
docs.README.md
to mirror the new changes.Basically, whenever an event (specified by the user) is logged in Firebase Analytics (Google Analytics for Firebase) the extension will be triggered to send a message (notification) to the slack channel (specified by the user).
The trigger function:
functions.analytics.event('in_app_purchase').onLog((event) => {
// Send the notification message to the user-specified channel in Slack.
});
Note The example from https://firebase.google.com/docs/analytics/extend-with-functions
Here's an example of using slack API in cloud functions, which might be helpful π https://github.com/firebase/functions-samples/tree/main/github-to-slack
An extension to get the power of ChatGPT to your Firebase project.
The Backfill function is an onInstall
lifecycle event handler, which will run after installation is completed and handle the sync process for the existing documents.
onInstall
or onConfigure
?
onConfigure
what should happen to the previous documents?Submitted extensions will require the following header in all source code files, to be covered by the Apache 2.0 license:
/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
EDIT: let me double check this and get back to you :)
It's faster and also Lerna is built on top of it ??!! why not?
Right now if the src document changes, it updates all the target documents with a batch transaction.
What if I have more than 500 target documents?
A batched write can contain up to 500 operations.
From docs: https://firebase.google.com/docs/firestore/manage-data/transactions#batched-writes
Implements the one-to-many relationship between Firestore collections.
The path to the collation containing the documents represents the first side of the relation, the "one" side.
Example: authors
The path to the collation containing the documents represents the second side of the relation, the "many" side.
Example: books
The name of the field in the destination collection that contains the reference of the document in the target collection.
Example: authorId
The name of the field in the target collection where the id of the destination document will be stored.
Example: bookId
Default: id
The name of the field in the target document where the list of the destination documents will be stored.
Example: books
The name of the field in the destination document where the data from the target document will be stored.
Example: author
A comma-separated list of field names to copy from the target collection to the destination collection.
Example: name,biography
A comma-separated list of field names to copy from the destination collection to the target collection.
Example: title,summary
What should happen to the documents in the destination collection when a related target collection is deleted?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.