Dataflow Template for Firestore to Firestore Documents Copy (Clone of PR 3098)#3392
Dataflow Template for Firestore to Firestore Documents Copy (Clone of PR 3098)#3392jingqizz wants to merge 49 commits intoGoogleCloudPlatform:mainfrom
Conversation
Summary of ChangesHello @jingqizz, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a robust Dataflow template designed to efficiently copy documents from one Firestore database to another. This new capability streamlines data migration and replication workflows for Firestore users. Accompanying this template are new utility classes for managing Firestore resources during testing, ensuring the reliability and maintainability of the new pipeline. The changes also include updated project configurations and detailed documentation to facilitate adoption and deployment. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
… to fix the format issue
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Outdated
Show resolved
Hide resolved
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Outdated
Show resolved
Hide resolved
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Outdated
Show resolved
Hide resolved
...o-firestore/src/test/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestoreIT.java
Outdated
Show resolved
Hide resolved
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Show resolved
Hide resolved
… add a pipeline option to log errors to a given GCS path in the next commit.
…rom writes will be written into the gcs path.
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Outdated
Show resolved
Hide resolved
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Show resolved
Hide resolved
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Outdated
Show resolved
Hide resolved
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Show resolved
Hide resolved
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Show resolved
Hide resolved
...-to-firestore/src/main/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestore.java
Outdated
Show resolved
Hide resolved
…tract documents from the RunQueryResponse and step 6. write documents to destination db.
… Being consistent with DataStreamMongoDBToFirestore.java
| // 3. Execute each partitioned query | ||
| PCollection<RunQueryResponse> responses = | ||
| partitionedQueries.apply( | ||
| "QueryDocumentsInPartitions", |
There was a problem hiding this comment.
I can't remember, but do these step names have to exclude spaces and needs to be camel case? Or is it convention?
It might be better if they are human readable so they show up in the console better
There was a problem hiding this comment.
I don't think it's required, but UpperCamelCase is the casing that's general convention in other templates and documentation e.g. https://beam.apache.org/documentation/programming-guide/#applying-transforms.
With that said, I see other templates using spaces, and I agree that is more readable in the UI, so I've added spaces to make them more human readable.
… other resources even if one fails
…ing its own constant
Implements a basic Dataflow template for copying documents from one Firestore database to another. (Patched from #3098)
Co-authored-by: pacoavila808 pacoavila@google.com