Skip to content

chore(firestore-translate-text): fully remove backfill resources #2328

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

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions firestore-translate-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ To install an extension, your project must be on the [Blaze (pay as you go) plan

* **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.

* **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.



**APIs Used**:
Expand Down
23 changes: 12 additions & 11 deletions firestore-translate-text/extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,18 @@ resources:
eventType: providers/cloud.firestore/eventTypes/document.write
resource: projects/${param:PROJECT_ID}/databases/(default)/documents/${param:COLLECTION_PATH}/{messageId}

- name: fstranslatebackfill
type: firebaseextensions.v1beta.function
description:
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.
properties:
runtime: nodejs20
availableMemoryMb: 1024
timeout: 540s
taskQueueTrigger: {}
# ! DO NOT UNCOMMENT THIS PARAMETER, IT IS CURRENTLY PROBLEMATIC
# - name: fstranslatebackfill
# type: firebaseextensions.v1beta.function
# description:
# 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.
# properties:
# runtime: nodejs20
# availableMemoryMb: 1024
# timeout: 540s
# taskQueueTrigger: {}

params:
- param: LANGUAGES
Expand Down
2 changes: 1 addition & 1 deletion firestore-translate-text/functions/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

export default {
doBackfill: process.env.DO_BACKFILL === "true",
doBackfill: false,
languages: Array.from(new Set(process.env.LANGUAGES.split(","))),
location: process.env.LOCATION,
inputFieldName: process.env.INPUT_FIELD_NAME,
Expand Down
Loading