Option to create new revisions missing on Event Instance/Series type

Created on 26 June 2025, 3 months ago

Problem/Motivation

Currently there is no way to enable creating revisions by default when creating/editing Event Instances and Series.

Steps to reproduce

Go to /admin/structure/events/series/types/eventseries_type/default/edit or /admin/structure/events/series/types/eventseries_type/default/edit and see there is no way to enable "Create new revision".

Proposed resolution

Add new_revision to schema and eventseries/eventinstance type forms

User interface changes

API changes

Data model changes

Config schemas add "new_revision" boolean.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kducharm

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

Merge Requests

Comments & Activities

  • Issue created by @kducharm
  • πŸ‡ΊπŸ‡ΈUnited States kducharm

    kducharm β†’ changed the visibility of the branch 3532699-revision to hidden.

  • πŸ‡ΊπŸ‡ΈUnited States kducharm
  • πŸ‡ΊπŸ‡ΈUnited States kducharm
  • Pipeline finished with Failed
    3 months ago
    Total: 178s
    #533344
  • Pipeline finished with Failed
    3 months ago
    Total: 174s
    #533347
  • Pipeline finished with Failed
    3 months ago
    Total: 172s
    #533349
  • πŸ‡ΊπŸ‡ΈUnited States dmundra Eugene, OR

    Thank you @kducharm

  • πŸ‡§πŸ‡¬Bulgaria pfrenssen Sofia

    I had a quick look at the code but didn't try it out. This looks like a great addition, thanks for starting it! I have a few thoughts:

    1. Since this uses Drupal 10+ attributes the MR should be rerolled against 3.0.x. The current 2.0.x still supports Drupal 9.3 so the code will not work on older sites that didn't update to Drupal 10 yet.
    2. The code looks good as far as I can see. I compared it with how the node module does it and the approach looks the same.
    3. I am not sure whether we should enable the creation of new revisions by default. At the moment this is not the case AFAIK. If we change this to be enabled, then we need an update hook that disables the revisions for each bundle of the event series and bundles. Then existing sites can decide whether they want to enable it or not.
    4. Would be nice to have a small test, but that is not a hard requirement. We are mostly relying on core functionality.
Production build 0.71.5 2024