Skip to content

feat(fdc): Data Connect Bulk Import #2905

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 11 commits into from
May 9, 2025

Conversation

lahirumaramba
Copy link
Member

@lahirumaramba lahirumaramba commented Apr 24, 2025

Add new API interfaces for insert, insertMany, upsert, upsertMany operations.

google-labs-jules bot and others added 5 commits April 24, 2025 18:39
Refactors the previously added DataConnect CRUD helper methods (`insert`, `insertMany`, `upsert`, `upsertMany`) based on feedback.

The core implementation logic (input validation, data serialization using `objectToString`, GraphQL mutation string construction, and calling `executeGraphql`) has been moved from the `DataConnect` class (`data-connect.ts`) to the `DataConnectApiClient` class (`data-connect-api-client-internal.ts`).

The methods in the `DataConnect` class now act as simple pass-through delegates to the corresponding methods on the internal client instance.

Unit tests have been updated accordingly:
- Tests in `index.spec.ts` now verify the delegation from `DataConnect` to `DataConnectApiClient`.
- New tests have been added to `data-connect-api-client-internal.spec.ts` to cover the implementation details within `DataConnectApiClient`.

This change improves separation of concerns, keeping the public API surface (`DataConnect`) clean and concentrating the implementation details within the internal client.
@lahirumaramba lahirumaramba marked this pull request as ready for review May 6, 2025 01:14
@lahirumaramba lahirumaramba changed the title WIP: Data Connect Bulk Import feat(dc): Data Connect Bulk Import May 6, 2025
@lahirumaramba lahirumaramba changed the title feat(dc): Data Connect Bulk Import feat(fdc): Data Connect Bulk Import May 6, 2025
@lahirumaramba lahirumaramba requested a review from maneesht May 6, 2025 01:15
@lahirumaramba lahirumaramba force-pushed the refactor-data-connect-crud-impl branch from fe5f681 to ecd2915 Compare May 8, 2025 17:34
@lahirumaramba lahirumaramba merged commit 8e3290e into master May 9, 2025
8 checks passed
@lahirumaramba lahirumaramba deleted the refactor-data-connect-crud-impl branch May 9, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants