Skip to content

Commit 845f865

Browse files
author
Lauren Long
committed
Regenerate READMEs
1 parent 828713d commit 845f865

File tree

10 files changed

+40
-23
lines changed

10 files changed

+40
-23
lines changed

auth-mailchimp-sync/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
i extensions: reading extension from directory: .
12
# Sync with Mailchimp
23

34
**Description**: Adds new users from Firebase Authentication to a specified Mailchimp audience.
@@ -35,7 +36,7 @@ Usage of this extension also requires you to have a Mailchimp account. You are r
3536

3637
**Configuration Parameters:**
3738

38-
* Deployment location: Where should the extension be deployed? For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
39+
* Cloud Functions location: Where do you want to deploy the functions created for this extension?
3940

4041
* Mailchimp API key: What is your Mailchimp API key? To obtain a Mailchimp API key, go to your [Mailchimp account](https://admin.mailchimp.com/account/api/).
4142

delete-user-data/functions/lib/index.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
* limitations under the License.
1616
*/
1717
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1819
return new (P || (P = Promise))(function (resolve, reject) {
1920
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2021
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
21-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
22+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2223
step((generator = generator.apply(thisArg, _arguments || [])).next());
2324
});
2425
};
@@ -36,7 +37,7 @@ logs.init();
3637
* Storage, and Firestore. It waits for all deletions to complete, and then
3738
* returns a success message.
3839
*/
39-
exports.clearData = functions.auth.user().onDelete((user) => __awaiter(this, void 0, void 0, function* () {
40+
exports.clearData = functions.auth.user().onDelete((user) => __awaiter(void 0, void 0, void 0, function* () {
4041
logs.start();
4142
const { firestorePaths, rtdbPaths, storagePaths } = config_1.default;
4243
const { uid } = user;
@@ -62,10 +63,10 @@ exports.clearData = functions.auth.user().onDelete((user) => __awaiter(this, voi
6263
yield Promise.all(promises);
6364
logs.complete(uid);
6465
}));
65-
const clearDatabaseData = (databasePaths, uid) => __awaiter(this, void 0, void 0, function* () {
66+
const clearDatabaseData = (databasePaths, uid) => __awaiter(void 0, void 0, void 0, function* () {
6667
logs.rtdbDeleting();
6768
const paths = extractUserPaths(databasePaths, uid);
68-
const promises = paths.map((path) => __awaiter(this, void 0, void 0, function* () {
69+
const promises = paths.map((path) => __awaiter(void 0, void 0, void 0, function* () {
6970
try {
7071
logs.rtdbPathDeleting(path);
7172
yield admin
@@ -81,10 +82,10 @@ const clearDatabaseData = (databasePaths, uid) => __awaiter(this, void 0, void 0
8182
yield Promise.all(promises);
8283
logs.rtdbDeleted();
8384
});
84-
const clearStorageData = (storagePaths, uid) => __awaiter(this, void 0, void 0, function* () {
85+
const clearStorageData = (storagePaths, uid) => __awaiter(void 0, void 0, void 0, function* () {
8586
logs.storageDeleting();
8687
const paths = extractUserPaths(storagePaths, uid);
87-
const promises = paths.map((path) => __awaiter(this, void 0, void 0, function* () {
88+
const promises = paths.map((path) => __awaiter(void 0, void 0, void 0, function* () {
8889
const parts = path.split("/");
8990
const bucketName = parts[0];
9091
const bucket = bucketName === "{DEFAULT}"
@@ -110,10 +111,10 @@ const clearStorageData = (storagePaths, uid) => __awaiter(this, void 0, void 0,
110111
yield Promise.all(promises);
111112
logs.storageDeleted();
112113
});
113-
const clearFirestoreData = (firestorePaths, uid) => __awaiter(this, void 0, void 0, function* () {
114+
const clearFirestoreData = (firestorePaths, uid) => __awaiter(void 0, void 0, void 0, function* () {
114115
logs.firestoreDeleting();
115116
const paths = extractUserPaths(firestorePaths, uid);
116-
const promises = paths.map((path) => __awaiter(this, void 0, void 0, function* () {
117+
const promises = paths.map((path) => __awaiter(void 0, void 0, void 0, function* () {
117118
try {
118119
const isRecursive = config_1.default.firestoreDeleteMode === "recursive";
119120
if (!isRecursive) {

firestore-bigquery-export/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
i extensions: reading extension from directory: .
12
# Export Collections to BigQuery
23

34
**Description**: Sends realtime, incremental updates from a specified Cloud Firestore collection to BigQuery.
@@ -22,11 +23,15 @@ Before installing this extension, you'll need to:
2223
+ [Set up Cloud Firestore in your Firebase project.](https://firebase.google.com/docs/firestore/quickstart)
2324
+ [Link your Firebase project to BigQuery.](https://support.google.com/firebase/answer/6318765)
2425

25-
This extension only sends the content of documents that have been changed -- it does not export your full dataset of existing documents into BigQuery. So, to backfill your BigQuery dataset with all the documents in your collection, you can run the import script provided by this extension.
26+
##### Backfill your BigQuery dataset
2627

27-
**Important:** Run the script over the entire collection _after_ installing this extension, otherwise all writes to your database during the import might be lost.
28+
This extension only sends the content of documents that have been changed -- it does not export your full dataset of existing documents into BigQuery. So, to backfill your BigQuery dataset with all the documents in your collection, you can run the [import script](https://github.com/firebase/extensions/blob/master/firestore-bigquery-export/guides/IMPORT_EXISTING_DOCUMENTS.md) provided by this extension.
2829

29-
Learn more about using this script to [backfill your existing collection](https://github.com/firebase/extensions/blob/master/firestore-bigquery-export/guides/IMPORT_EXISTING_DOCUMENTS.md).
30+
**Important:** Run the import script over the entire collection _after_ installing this extension, otherwise all writes to your database during the import might be lost.
31+
32+
##### Generate schema views
33+
34+
After your data is in BigQuery, you can run the [schema-views script](https://github.com/firebase/extensions/blob/master/firestore-bigquery-export/guides/GENERATE_SCHEMA_VIEWS.md) (provided by this extension) to create views that make it easier to query relevant data. You only need to provide a JSON schema file that describes your data structure, and the schema-views script will create the views.
3035

3136
#### Billing
3237

@@ -43,7 +48,7 @@ When you use Firebase Extensions, you're only charged for the underlying resourc
4348

4449
**Configuration Parameters:**
4550

46-
* Deployment location: Where should the extension be deployed? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
51+
* Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations). Note that this extension locates your BigQuery dataset in `us-central1`.
4752

4853
* Collection path: What is the path of the collection that you would like to export? You may use `{wildcard}` notation to match a subcollection of all documents in a collection (for example: `chatrooms/{chatid}/posts`).
4954

firestore-counter/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
i extensions: reading extension from directory: .
12
# Distributed Counter
23

34
**Description**: Records event counters at scale to accommodate high-velocity writes to Cloud Firestore.
@@ -24,7 +25,7 @@ Before installing this extension, make sure that you've [set up a Cloud Firestor
2425
After installing this extension, you'll need to:
2526

2627
- Update your [database security rules](https://firebase.google.com/docs/rules).
27-
- Set up a [scheduled function](https://firebase.google.com/docs/functions/schedule-functions) to regularly call the controller function, which is created by this extension and monitors the extension's workload.
28+
- Set up a [Cloud Scheduler job](https://cloud.google.com/scheduler/docs/quickstart) to regularly call the controllerCore function, which is created by this extension. It works by either aggregating shards itself or scheduling and monitoring workers to aggregate shards.
2829
- Install the provided [Counter SDK](https://github.com/firebase/extensions/blob/master/firestore-counter/clients/web/src/index.ts) in your app. You can then use this library in your code to specify your document path and increment values.
2930

3031
Detailed information for these post-installation tasks are provided after you install this extension.
@@ -44,19 +45,21 @@ When you use Firebase Extensions, you're only charged for the underlying resourc
4445

4546
**Configuration Parameters:**
4647

47-
* Deployment location: Where should the extension be deployed? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
48+
* Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
4849

4950
* Document path for internal state: What is the path to the document where the extension can keep its internal state?
5051

5152

5253

5354
**Cloud Functions:**
5455

55-
* **controller:** Scheduled to run every minute. This function either aggregates shards itself, or it schedules and monitors workers to aggregate shards.
56+
* **controllerCore:** Scheduled to run every minute. This function either aggregates shards itself, or it schedules and monitors workers to aggregate shards.
57+
58+
* **controller:** Maintained for backwards compatibility. This function relays a message to the extension's Pub/Sub topic to trigger the controllerCore function.
5659

5760
* **onWrite:** Listens for changes on counter shards that may need aggregating. This function is limited to max 1 instance.
5861

59-
* **worker:** Monitors a range of shards and aggregates them, as needed. There may be 0 or more worker functions running at any point in time. The controller function is responsible for scheduling and monitoring these workers.
62+
* **worker:** Monitors a range of shards and aggregates them, as needed. There may be 0 or more worker functions running at any point in time. The controllerCore function is responsible for scheduling and monitoring these workers.
6063

6164

6265

@@ -67,3 +70,5 @@ When you use Firebase Extensions, you're only charged for the underlying resourc
6770
This extension will operate with the following project IAM roles:
6871

6972
* datastore.user (Reason: Allows the extension to aggregate Cloud Firestore counter shards.)
73+
74+
* pubsub.publisher (Reason: Allows the HTTPS controller function to publish a message to the extension's Pub/Sub topic, which triggers the controllerCore function.)

firestore-counter/functions/lib/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const planner_1 = require("./planner");
3030
const aggregator_1 = require("./aggregator");
3131
const firestore_1 = require("@google-cloud/firestore");
3232
const uuid = require("uuid");
33-
const SHARDS_LIMIT = 499;
33+
const SHARDS_LIMIT = 100;
3434
const WORKER_TIMEOUT_MS = 45000;
3535
/**
3636
* Worker is controlled by WorkerMetadata document stored at process.env.MODS_INTERNAL_COLLECTION

firestore-send-email/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
i extensions: reading extension from directory: .
12
# Trigger Email
23

34
**Description**: Composes and sends an email based on the contents of a document written to a specified Cloud Firestore collection.
@@ -44,7 +45,7 @@ Usage of this extension also requires you to have SMTP credentials for mail deli
4445

4546
**Configuration Parameters:**
4647

47-
* Deployment location: Where should the extension be deployed? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
48+
* Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
4849

4950
* SMTP connection URI: A URI representing an SMTP server that this extension can use to deliver email.
5051

firestore-shorten-urls-bitly/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
i extensions: reading extension from directory: .
12
# Shorten URLs
23

34
**Description**: Shortens URLs written to a specified Cloud Firestore collection (uses Bitly).
@@ -37,7 +38,7 @@ Usage of this extension also requires you to have a Bit.ly account. You are resp
3738

3839
**Configuration Parameters:**
3940

40-
* Deployment location: Where should the extension be deployed? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
41+
* Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
4142

4243
* Bitly access token: What is your Bitly access token? Generate this access token using [Bitly](https://bitly.com/a/oauth_apps).
4344

firestore-translate-text/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
i extensions: reading extension from directory: .
12
# Translate Text
23

34
**Description**: Translates strings written to a Cloud Firestore collection into multiple languages (uses Cloud Translation API).
@@ -34,7 +35,7 @@ When you use Firebase Extensions, you're only charged for the underlying resourc
3435

3536
**Configuration Parameters:**
3637

37-
* Deployment location: Where should the extension be deployed? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
38+
* Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your database. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
3839

3940
* Target languages for translations, as a comma-separated list: Into which target languages do you want to translate new strings? The languages are identified using ISO-639-1 codes in a comma-separated list, for example: en,es,de,fr. For these codes, visit the [supported languages list](https://cloud.google.com/translate/docs/languages).
4041

rtdb-limit-child-nodes/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
i extensions: reading extension from directory: .
12
# Limit Child Nodes
23

34
**Description**: Limits the number of nodes to a specified maximum count in a specified Realtime Database path.
@@ -26,7 +27,7 @@ When you use Firebase Extensions, you're only charged for the underlying resourc
2627

2728
**Configuration Parameters:**
2829

29-
* Deployment location: Where should the extension be deployed? You usually want a location close to your database. Realtime Database instances are located in us-central1. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
30+
* Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your database. Realtime Database instances are located in `us-central1`. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
3031

3132
* Realtime Database path: What is the Realtime Database path for which you want to limit the number of child nodes?
3233

storage-resize-images/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
i extensions: reading extension from directory: .
12
# Resize Images
23

34
**Description**: Resizes images uploaded to Cloud Storage to a specified size, and optionally keeps or deletes the original image.
@@ -40,7 +41,7 @@ When you use Firebase Extensions, you're only charged for the underlying resourc
4041

4142
**Configuration Parameters:**
4243

43-
* Deployment location: Where should the extension be deployed? You usually want a location close to your Storage bucket. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
44+
* Cloud Functions location: Where do you want to deploy the functions created for this extension? You usually want a location close to your Storage bucket. For help selecting a location, refer to the [location selection guide](https://firebase.google.com/docs/functions/locations).
4445

4546
* Cloud Storage bucket for images: To which Cloud Storage bucket will you upload images that you want to resize? Resized images will be stored in this bucket. Depending on your extension configuration, original images are either kept or deleted.
4647

0 commit comments

Comments
 (0)