Skip to content

Conversation

@erezrokah
Copy link
Member

@erezrokah erezrokah commented Jun 21, 2023

Summary

Similar to #11696. Still need to test this

FIxes #11756

BEGIN_COMMIT_OVERRIDE
feat!: Upgrades the firestore source plugin to use plugin-sdk v4. This version does not contain any user-facing breaking changes, but because it is now using CloudQuery gRPC protocol v3, it does require use of a destination plugin that also supports protocol v3. All recent destination plugin versions support this.
END_COMMIT_OVERRIDE

@erezrokah erezrokah requested review from a team and hermanschaaf and removed request for a team June 21, 2023 15:24
@erezrokah erezrokah changed the title feat(mysql): Update to SDK V4 feat(firestore): Update to SDK V4 Jun 21, 2023
@erezrokah erezrokah force-pushed the fix/update_firestore_source_sdk_v4 branch from 6e980a6 to cbfa97a Compare June 21, 2023 15:27

func (c *Client) syncTables(ctx context.Context, res chan<- *schema.Resource) error {
eg, ctx := errgroup.WithContext(ctx)
eg.SetLimit(len(c.Tables))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No point of setting the limit to the number of tables as that's exactly the number of Go Routines that are created in the loop below

"github.com/stretchr/testify/require"
)

func TestDynamicTables(t *testing.T) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add a full Sync test instead of this one

@erezrokah erezrokah force-pushed the fix/update_firestore_source_sdk_v4 branch 3 times, most recently from 9e2d9b8 to 4b019ff Compare June 26, 2023 13:44
@erezrokah erezrokah changed the title feat(firestore): Update to SDK V4 feat(firestore)!: Update to SDK V4 Jun 26, 2023
@erezrokah erezrokah force-pushed the fix/update_firestore_source_sdk_v4 branch 2 times, most recently from e7bef08 to d0c638a Compare July 13, 2023 14:20
@erezrokah erezrokah force-pushed the fix/update_firestore_source_sdk_v4 branch from 45a5823 to db32291 Compare July 14, 2023 14:24
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jul 17, 2023
@kodiakhq kodiakhq bot merged commit 56aba8b into cloudquery:main Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate plugins/source/firestore to github.com/cloudquery/plugin-sdk/v4

3 participants