[go: nahoru, domu]

Skip to content

Commit

Permalink
feat(firestore-translate-text): temporarily disable backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel authored and cabljac committed Mar 27, 2024
1 parent cab5f4c commit fc23732
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 26 deletions.
4 changes: 4 additions & 0 deletions firestore-translate-text/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version 0.1.16

fix - temporarily disable backfill feature

## Version 0.1.15

fix - handle array values correctly in backfill
Expand Down
2 changes: 1 addition & 1 deletion firestore-translate-text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ 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.
<!-- * **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. -->



Expand Down
49 changes: 24 additions & 25 deletions firestore-translate-text/extension.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

name: firestore-translate-text
version: 0.1.15
version: 0.1.16
specVersion: v1beta

tags: [ai]
Expand Down Expand Up @@ -130,19 +130,19 @@ params:
default: languages
required: false

- param: DO_BACKFILL
label: Translate existing documents?
description: >
Should existing documents in the Firestore collection be translated as
well? If you've added new languages since a document was translated, this
will fill those in as well.
type: select
required: true
options:
- label: Yes
value: true
- label: No
value: false
# - param: DO_BACKFILL
# label: Translate existing documents?
# description: >
# Should existing documents in the Firestore collection be translated as
# well? If you've added new languages since a document was translated, this
# will fill those in as well.
# type: select
# required: true
# options:
# - label: Yes
# value: true
# - label: No
# value: false

events:
- type: firebase.extensions.firestore-translate-text.v1.onStart
Expand All @@ -164,14 +164,13 @@ events:
description:
Occurs when the function is settled. Provides no customized data other
than the context.

lifecycleEvents:
onInstall:
function: fstranslatebackfill
processingMessage: "Translating existing documents in ${COLLECTION_PATH}"
onUpdate:
function: fstranslatebackfill
processingMessage: "Translating existing documents in ${COLLECTION_PATH}"
onConfigure:
function: fstranslatebackfill
processingMessage: "Translating existing documents in ${COLLECTION_PATH}"
# lifecycleEvents:
# onInstall:
# function: fstranslatebackfill
# processingMessage: "Translating existing documents in ${COLLECTION_PATH}"
# onUpdate:
# function: fstranslatebackfill
# processingMessage: "Translating existing documents in ${COLLECTION_PATH}"
# onConfigure:
# function: fstranslatebackfill
# processingMessage: "Translating existing documents in ${COLLECTION_PATH}"

0 comments on commit fc23732

Please sign in to comment.