Problem/Motivation
As of Drupal 10.1, core provides a generic entity revision UI (change record , #2350939: Implement a generic revision UI). Please consider adopting this instead of the current custom implementation.
Benefit: Besides eliminating several forms and controller methods that would no longer need to be maintained, it would allow the Revisions tabs on events to look and act the same as those found on core entity types, like nodes. It also sets up Recurring Events to benefit from efforts underway in the Diff module to provide a generic "compare revisions" feature for all content entity types, once #2452523: Offer a revisions tab for all entities is resolved.
Proposed resolution
Replace the custom revision UI routes/forms currently implemented with those now available in core.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork recurring_events-3544748
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
muriqui commentedComment #5
muriqui commentedComment #6
chrisla commentedWill this update preserve any previously saved revisions?
Comment #7
muriqui commented@chrisla Yes. It doesn't affect the revisions themselves at all. It's just swapping out the user interface for managing revisions: removing the custom UI currently provided by the module and replacing it with the standard UI now provided by Core (which pretty much does the same thing, and is supported by other modules, such as Diff).
Comment #9
eric.napier commentedTested in an integration environment with Recurring Events enabled. Fix works as expected and code reviewed for standards / best practice.
Comment #11
muriqui commented