Scheduler needs to maintain its base fields properly

Created on 9 April 2020, about 4 years ago
Updated 5 June 2024, 20 days ago

Relating to #3124373: Updating Enitity Queue from version 8.x-1.0-beta5 to 8.x-1.0-rc1 using composer gives error

When a module adds the ability to make it's entity types revisionable as part of hook_update_N(), Scheduler is getting triggered on hook_entity_base_field_info() as part of the update and is detecting that an entity is now capable of the entity being revisionable so adds the scheduler definitions. This is a problem as the update transaction has not yet added these fields to the database at this point, and the update process for the entity type then tries to run the entity update transaction for fields that don't exist in the database.

I have not had time to get deep enough into this, but I believe the issue is that scheduler also needs to hook into EntityTypeEvents::UPDATE and add the fields there as well, similar to what is seen here: 🐛 Need to add an entity update event listener to add moderation state for newly revisionable fields Needs review

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇨🇦Canada b_sharpe

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024