Skip to content

Commit f26b906

Browse files
authored
chore(firestore-translate-text): fully remove backfill resources (#2328)
1 parent 8b2c8ee commit f26b906

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

firestore-translate-text/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ To install an extension, your project must be on the [Blaze (pay as you go) plan
9595

9696
* **fstranslate:** Listens for writes of new strings to your specified Cloud Firestore collection, translates the strings, then writes the translated strings back to the same document.
9797

98-
* **fstranslatebackfill:** Searches your specified Cloud Firestore collection for existing documents, translates the strings into any missing languages, then writes the translated strings back to the same document.
99-
10098

10199

102100
**APIs Used**:

firestore-translate-text/extension.yaml

+12-11
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,18 @@ resources:
6565
eventType: providers/cloud.firestore/eventTypes/document.write
6666
resource: projects/${param:PROJECT_ID}/databases/(default)/documents/${param:COLLECTION_PATH}/{messageId}
6767

68-
- name: fstranslatebackfill
69-
type: firebaseextensions.v1beta.function
70-
description:
71-
Searches your specified Cloud Firestore collection for existing documents,
72-
translates the strings into any missing languages, then writes the
73-
translated strings back to the same document.
74-
properties:
75-
runtime: nodejs20
76-
availableMemoryMb: 1024
77-
timeout: 540s
78-
taskQueueTrigger: {}
68+
# ! DO NOT UNCOMMENT THIS PARAMETER, IT IS CURRENTLY PROBLEMATIC
69+
# - name: fstranslatebackfill
70+
# type: firebaseextensions.v1beta.function
71+
# description:
72+
# Searches your specified Cloud Firestore collection for existing documents,
73+
# translates the strings into any missing languages, then writes the
74+
# translated strings back to the same document.
75+
# properties:
76+
# runtime: nodejs20
77+
# availableMemoryMb: 1024
78+
# timeout: 540s
79+
# taskQueueTrigger: {}
7980

8081
params:
8182
- param: LANGUAGES

firestore-translate-text/functions/src/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
export default {
18-
doBackfill: process.env.DO_BACKFILL === "true",
18+
doBackfill: false,
1919
languages: Array.from(new Set(process.env.LANGUAGES.split(","))),
2020
location: process.env.LOCATION,
2121
inputFieldName: process.env.INPUT_FIELD_NAME,

0 commit comments

Comments
 (0)