Coder Social home page Coder Social logo

pimcore-elastica-bridge's People

Contributors

danrot avatar jdreesen avatar limenet avatar pryserv avatar rliebi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pimcore-elastica-bridge's Issues

Remove documents-to-elements helpers

E.g. \Valantic\ElasticaBridgeBundle\Index\AbstractIndex::getDocumentFromElement, \Valantic\ElasticaBridgeBundle\Index\AbstractIndex::searchForElements, and \Valantic\ElasticaBridgeBundle\Index\AbstractIndex::documentResultToElements as they encourage loading data from Elasticsearch and Pimcore which is often inefficient.

Sort other indices in status command

When running :status, the list of non-bundle indices is not sorted in any meaningful way. Since this command is primarily meant to be human-readable, alphabetical sort is probably the best way to go.

Handle auto-save

Currently, a Pimcore autosave triggers an element refresh. This can be seen as both a bug and a feature. Solutions:

  1. Introduce a Symfony Config option for assets / data objects / documents to disable that feature (default is enable for BC reasons)
  2. Offer tagged interfaces with a supports strategy to provide custom logic

For simplicity reasons, option 1 will be implemented. If advanced logic is needed, a project can define a listener with a higher priority than what's defined in \Valantic\ElasticaBridgeBundle\EventListener\Pimcore\ChangeListener::getSubscribedEvents and call \Valantic\ElasticaBridgeBundle\EventListener\Pimcore\ChangeListener::disableListener.

Fully support assets

Assets are yet to be used in an index, nothing should prevent it from working though.

Get rid of the IndexDocumentInterface

By @danrot

I think it would be better to have just one DocumentInterface. It would make this bundle easier to understand and maintain. It would still be easily possible to have an abstract class just to extract the parts that might be reused among multiple indices, if the developer wishes to do that.

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.