DivanteLtd / coreshop-vsbridge

CoreShop Vue Storefront integration - first Progressive Web App (PWA) framework for Pimcore
https://vuestorefront.io
MIT License
74 stars 25 forks source link

feat: updated since index param for incremental indexing #62

Closed dkarlovi closed 3 years ago

dkarlovi commented 3 years ago

This PR adds an --updated-since option to the index command, allowing for datetime expressions compatible with strtotime. This allows us to run index incrementally, for example every day for the last day.

Example usage:

bin/console vsbridge:index --updated-since=-2day # must use the long form since - in the value doesn't pass Symfony console options parsing
bin/console vsbridge:index -s yesterday
bin/console vsbridge:index -s "last week"  # must quote to make it a single argument
bin/console vsbridge:index -s 2021-01-01

etc.