Skip to content

Commit

Permalink
Merge pull request #13 from craftpulse/develop-v4
Browse files Browse the repository at this point in the history
5.0.1
  • Loading branch information
cookie10codes authored Nov 22, 2023
2 parents 4881c32 + fa8d205 commit 3f6ef98
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ 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
- Seperate typesense logging

### Changed
- Move the deletion of the collection into the sync if it's a flush #7
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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 craftpulse/craft-typesense

3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Typesense.

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "percipiolondon/craft-typesense",
"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",
Expand Down
4 changes: 2 additions & 2 deletions src/jobs/SyncDocumentsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3f6ef98

Please sign in to comment.