Set the entity author to admin for content created using drush

Created on 17 February 2025, 3 months ago

Problem/Motivation

Now entities, created by Drush, has the anonymous author value, if the author can't be found by email.

It's pretty often when the emails are different in the dev and production sites, but deploying content authored by anonymous not very good from the UX point of view.

Steps to reproduce

Proposed resolution

I think we can simply check if the command is run by Drush and assign uid=1 for this case, because Drush is actually the admin user.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.4

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024