yawik / SimpleImport

Simple Job Import Module. Imports job openings into YAWIK
MIT License
0 stars 1 forks source link

Jobs are not inserted into solr, if the status is 'active' #3

Closed cbleek closed 7 years ago

cbleek commented 7 years ago

@TiSiE the simple import currently does not put jobs into the solr index. Maybe it's because there is no job event triggered as we do when activate a job?

https://github.com/cross-solution/YAWIK/blob/efca22b0a7017b8e8cc60490340dbb47d8047c45/module/Jobs/src/Jobs/Controller/ManageController.php#L586

TiSiE commented 7 years ago

No, the solr module registers a doctrine preUpdate hook to track entities to add to the index. That is, because in the normal Yawik workflow, a job CANNOT be INSERTED with the status "active".

There are two possibilities to solve this:

The latter is preferable.

cbleek commented 7 years ago

@fedys do you can add the "preInsert" hook in the Solr module?

fedys commented 7 years ago

Yes, I can do that. I can take a look at it on Thursday morning.

cbleek commented 7 years ago

super!

cbleek commented 7 years ago

This will be done in https://github.com/yawik/Solr/issues/10