From 55b8933d5eed76718ae04fe0831991199f8e47d4 Mon Sep 17 00:00:00 2001 From: Stefanie Gevaert <> Date: Fri, 14 Apr 2023 14:04:44 +0200 Subject: [PATCH 1/8] chore: updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0a94ab..7b2c1e8 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## 5.0.0 - 2023-03-13 / Official release ### Added - Docs for the official release +- Seperate typesense logging ### Changed - Move the deletion of the collection into the sync if it's a flush #7 From 783063b2ca16fadf7d6feafcb5b3120db2efe839 Mon Sep 17 00:00:00 2001 From: Stefanie Gevaert Date: Tue, 18 Apr 2023 09:19:25 +0200 Subject: [PATCH 2/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 524a723..11e63b7 100755 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ To install the plugin, follow these instructions. 2. Then tell Composer to load the plugin: - composer require percipioglobal/typesense + composer require percipiolondon/typesense 3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Typesense. From 1c3b045e4b658d081f7e48f535a08ac64867df88 Mon Sep 17 00:00:00 2001 From: Stefanie Gevaert Date: Tue, 18 Apr 2023 09:35:36 +0200 Subject: [PATCH 3/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 11e63b7..749734b 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Typesense plugin for Craft CMS 4.x -Craft Plugin that synchronises with Typesense +Craft Plugin that synchronises with Typesense. Visit our [Demo](https://typesense.percipio.london/demo) to see the Craft Typesense plugin in action. You can read our [docs](https://typesense.percipio.london/docs/about) to setup your project. Need more help with the setup? Follow our blogpost "[Setup the Typsesense plugin with Typesense Cloud with javascript](https://percipio.london/blog/craftcms-plugin-typsesense)" ![Screenshot](resources/img/plugin-logo.png) From 2f2e052f6adcfa2a3b98a1d3b8dd181b110bb4d9 Mon Sep 17 00:00:00 2001 From: Stefanie Gevaert Date: Tue, 21 Nov 2023 10:51:02 +0100 Subject: [PATCH 4/8] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 262570a..4654ead 100755 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "percipiolondon/craft-typesense", + "name": "craftpulse/craft-typesense", "description": "Craft Plugin that synchronises with Typesense", "type": "craft-plugin", "version": "5.0.0", From 8129fcbe640f3fe9b0127bbdfc55349f24139bb7 Mon Sep 17 00:00:00 2001 From: Stefanie Gevaert Date: Wed, 22 Nov 2023 20:55:24 +0100 Subject: [PATCH 5/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 749734b..f0cb66c 100755 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ To install the plugin, follow these instructions. 2. Then tell Composer to load the plugin: - composer require percipiolondon/typesense + composer require craftpulse/craft-typesense 3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Typesense. From 202fd2a7dbf08516506c22b1e36e8b70744d9ce5 Mon Sep 17 00:00:00 2001 From: Stefanie Gevaert Date: Wed, 22 Nov 2023 20:57:05 +0100 Subject: [PATCH 6/8] Update SyncDocumentsJob.php from entry-> to doc->id --- src/jobs/SyncDocumentsJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jobs/SyncDocumentsJob.php b/src/jobs/SyncDocumentsJob.php index cc59ffc..cc70789 100755 --- a/src/jobs/SyncDocumentsJob.php +++ b/src/jobs/SyncDocumentsJob.php @@ -74,11 +74,11 @@ public function execute($queue) :void //fetch each document of entry to update foreach ($entries as $i => $entry) { - $client->collections[$this->criteria['index']] + $doc = $client->collections[$this->criteria['index']] ->documents ->upsert($collection->schema['resolver']($entry)); - $upsertIds[] = $entry->id; + $upsertIds[] = $doc['id']; $this->setProgress( $queue, From 76210476bfcb499a367684fd1b7b91835d100c7e Mon Sep 17 00:00:00 2001 From: Stefanie Gevaert Date: Wed, 22 Nov 2023 20:58:01 +0100 Subject: [PATCH 7/8] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4654ead..2be80d3 100755 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "craftpulse/craft-typesense", "description": "Craft Plugin that synchronises with Typesense", "type": "craft-plugin", - "version": "5.0.0", + "version": "5.0.1", "keywords": [ "craft", "cms", From fa8d205420cc28c8429bf1a967e69624a5fed755 Mon Sep 17 00:00:00 2001 From: Stefanie Gevaert Date: Wed, 22 Nov 2023 20:58:53 +0100 Subject: [PATCH 8/8] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b2c1e8..1d31299 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 5.0.1 - 2023-11-22 +### Changed +- Changed the handling of the document deletion for mutli sites + ## 5.0.0 - 2023-03-13 / Official release ### Added - Docs for the official release