- πΊπΈUnited States bkosborne New Jersey, USA
Sounds like a lot of complexity around determining who the user is that triggered the import. But I think about it differently. The revision occurs because of an automated process. Sure, an individual may have triggered that process to occur, but they didn't make the change. The feed importer made the change. It's confusing to me that the revision would be set to whomever clicked a button to run the importer.
I think the username should be to either Anonymous, or the value that was configured as the feed owner of created entities. For the latter, change the description of the configuration form to indicate that the value applies to both created entities and any revisions that the feed importer creates.
Though, it is interesting that the revision_user can be mapped. I also hadn't realized that. I'm going to test that out.
But, as of now, the code for creating revisions is in EntityProcessorBase:
// Set new revision if needed. if ($this->configuration['revision']) { $entity->setNewRevision(TRUE); $entity->setRevisionCreationTime($this->dateTime->getRequestTime()); }It lacks setting the revision author, so what happens is that the previous revision author is used instead, which is very confusing. I would consider this a bug because oftentimes it's not true. Seems like at the very least this should be fixed.
- π¨π¦Canada No Sssweat
I haven't had time to test with cron since I am not using it. This at least works for me for manual imports.