Open guenth39 opened 1 year ago
Hi, Any chance to merge that MR ?
Hey, any Chance to get this merged soon? This feature is really needed and the PR looks good for me. This is blocking my migration from Algolia to typesense.
I am also being blocked by this. The sooner this can get merged the better.
@guenth39 Could you add test cases for this PR?
In case you don't want to wait this MR to be merged. You can directly modify the cloud function via the google console. https://console.cloud.google.com/functions/list
And replace the backfill function with : https://github.com/Bobbele-Ideas/firestore-typesense-search/blob/Fix-backfill-for-subcollections/functions/src/backfillToTypesenseFromFirestore.js
@jasonbosco
Any update on this issue ? In multi tenants application this features is mandatory.
+1 on this one, would be great to be able to backfill sub-collections.
Hey, any update on this issue? I'd be glad to help if needed.
Thanks @Jad31. We're essentially missing tests for this PR, and now branch conflicts. Feel free to branch off of this branch and submit a new PR
Change Summary
With these changes, the backfill will now work also for subcollections, not only for "root" collection. If the collection path is something like users/{userId}/items the sync has already worked, but the backfill did not as the documents were queried with this collection path, but that did not work. Instead, we use the collectionGroup feature now with only the last part of the path.
Closes #17
PR Checklist