Allow empty string to be used for the source and destination database#3645
Allow empty string to be used for the source and destination database#3645ninjaAB-5 merged 9 commits intoGoogleCloudPlatform:mainfrom
Conversation
An INVALID_ARGUMENT is thrown when `(default)` is used as the source or destination database. ``` com.google.datastore.v1.client.DatastoreException: (default) is not a valid databaseId. Please use the empty string to denote the (default) database ```
Summary of ChangesHello, 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 updates the Firestore-to-Firestore template to align with API requirements regarding the default database. By allowing empty strings as valid inputs for database identifiers and updating the associated documentation, the change resolves an issue where using '(default)' caused an invalid argument error. Highlights
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. Footnotes
|
pacoavila808
left a comment
There was a problem hiding this comment.
Could you add a test case using default databases to v2/firestore-to-firestore/src/test/java/com/google/cloud/teleport/v2/templates/FirestoreToFirestoreIT.java ?
Done. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3645 +/- ##
=============================================
+ Coverage 33.32% 52.47% +19.14%
- Complexity 481 5791 +5310
=============================================
Files 215 1057 +842
Lines 12862 63983 +51121
Branches 1262 7052 +5790
=============================================
+ Hits 4286 33573 +29287
- Misses 8236 28134 +19898
- Partials 340 2276 +1936
🚀 New features to boost your workflow:
|
|
Note for debugging tomorrow |
An INVALID_ARGUMENT is thrown when
(default)is used as the source or destination database.Response message: