-
Notifications
You must be signed in to change notification settings - Fork 38
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
Updates needed to complete adoption to typesense github org #1
Comments
We should also mark |
Ah, didn't know that was a thing. Thanks @hi019. I've added it to the list. |
Also, do you want to take a stab at making these updates? :) |
Sure, I'll do that. I did a similar thing for https://github.com/hi019/laravel-scout-typesense :) |
I'll also implement my other changes from my fork here when I have time |
Awesome! Thank you. I'll assign this issue to you, so others know that you're working on it. |
@hi019 On a side note, I'd love to invite you to join our Slack community in case we need to chat in real-time. |
Guess the issue description at the top needs updating now that the PR is merged? Not sure what’s left now, or is the migration complete? |
@hi019 Mind updating the checklist in this PR's description? |
Yep, I'll update it later today. Forgot I had edit permissions :) |
I've updated the checklist. Everything is done on this repository's side 👍 |
Thank you @hi019! I was going to publish the package to packagist, but I wanted to confirm if the package/repo naming convention is ok. Looking at a couple of other Laravel Scout packages, they're all named laravel-scout-x-driver. Eg:
Should we also change this repo/package name to laravel-scout-typesense-driver? Is there a common convention? Also, is a Laravel Scout "engine" different from a Scout "driver"? |
From what I understand after reading the Scout docs, an engine is the search provider itself, like Algolia or in this case Typesense. And a driver is what interfaces between the engine and Laravel code. So, while I can't find any Scout naming conventions, it would make sense to name this repository & the package |
@jasonbosco Can you wait until tomorrow to publish the package? I forgot to integrate the bulk delete API route I mentioned earlier in this Issue. It would likely be a small breaking change, so it would be easier to just put that change in the migration notes rather than publish a new major version |
@hi019 Sounds good. I'll stand by. And thank you for the research on naming the repo & package. |
Unfortunately I won't have time to do this today, will complete it tomorrow or by monday |
@jasonbosco Ready for release |
@hi019 Thank you. I've published an RC version of the package here: https://packagist.org/packages/typesense/laravel-scout-typesense-driver Could you give it a shot and let me know if it works ok? |
I'm getting errors on the soft delete checks:
|
I've made PR #5 to fix it |
Bulk deleting isn't working for me either, I get an error like:
Where Since the table name leads to the collection, I'm guessing it maybe needs to be the unqualified name that we use? (without the table name?) |
The issue is solved if I specifically define the public function getScoutKeyName() {
return 'id';
} But it would be good if this worked without needing to explicitly define that! EDIT: Scrap that, it didn't work either! |
I'll look into it later today @manavo . Do your models use the trait |
Yep, it uses the trait, but the one in the trait does this: public function getScoutKeyName()
{
return $this->getQualifiedKeyName();
} And it makes me think that it is meant to be used in the Eloquent Query Builder, more than in the engines/drivers. Even when I forced it to be just
So I'm not sure why that is. I'm guessing Typesense should let us filter by |
I'm also running version |
@manavo Do you mind creating a new issue for the delete problem so that it's easier to track? |
Same issue after the upgrade. No problem, I'll create a separate issue. |
Thank you @hi019 and @AbdullahFaqeir for making this happen, and thank you to everyone who helped beta test this change! |
This repo was adopted from @AbdullahFaqeir's work here: https://github.com/devloopsnet/laravel-scout-typesense-engine.
The following tasks need to be done to complete the adoption:
Devloops
in class names toTypesense
TypesenseServiceProvider.php
has references tomaster_node
andread_replica_nodes
, which are old configuration parameters no longer supported in the latest version of Typesense Server. Needs to be switched tonodes
andnearest_node
devloopsnet/laravel-typesense
as abandoned in Packagist and list this package as its replacementdevloopsnet/laravel-scout-typesense-engine
repo to point people to this repo: Adopting this repo into the typesense github org devloopsnet/laravel-scout-typesense-engine#17The text was updated successfully, but these errors were encountered: