GithubHelp home page GithubHelp logo

Comments (5)

jasonbosco avatar jasonbosco commented on July 2, 2024 6

Sorry about the breakage and all the time-wasted :(

I've now rolled back the 5.2.0 release, and set 5.1.0 as the latest one.

CC: @arayiksmbatyan @karakhanyans

from laravel-scout-typesense-driver.

karakhanyans avatar karakhanyans commented on July 2, 2024

Hi @eminos

We are currently investigating the problem, could you please give us more details about this problem, as we are not able to reproduce in our end.

We need your Laravel version, your PHP version.

Thanks.

from laravel-scout-typesense-driver.

ricardo-lobo avatar ricardo-lobo commented on July 2, 2024

The problem is the usage of getDirty instead of getChanges

See https://github.com/laravel/framework/blob/78eb4dabcc03e189620c16f436358d41d31ae11f/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php#L1126

After a model is updated, getDirty will always return empty and it will not be updated to Typesense.

Using latest Laravel version and PHP 8.1

from laravel-scout-typesense-driver.

eminos avatar eminos commented on July 2, 2024

The problem is the usage of getDirty instead of getChanges

How would that help when artisan scout:import?
getChanges would, AFAIK, also return empty and thus not letting the typesense document import happen.

The issue seems to be that artisan scout:import is using that update method in TypesenseEngine.php and the PR "Reduce unnecessary API calls" doesn't address that.

from laravel-scout-typesense-driver.

ricardo-lobo avatar ricardo-lobo commented on July 2, 2024

@eminos You are probably right. I haven't tested this to be sure. I noticed this yesterday because I have a test that checks if a product updated with certain fields is synced to Typesense.

from laravel-scout-typesense-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.