Convert Redirect entity to revisionable

Created on 4 October 2022, about 2 years ago
Updated 9 August 2023, over 1 year ago

Problem/Motivation

I'm working on a site using the redirect module, the site has some content admin users, and they are able to register redirects for marketing campaigns, so we need to find a way to track all the redirects registered, by which user and keeping the history so the idea of the issue is to make the redirect entity revisionable. The following fields should be revisonable:

  • redirect_source
  • redirect_redirect
  • status_code

Proposed resolution

Change the entity to be revisionable, creating a new revision table and store the redirect data and a revision log message.

Remaining tasks

  • Test
  • Review

User interface changes

A new revision tab can be added using the Redirect Revisions Ui , the patchs of this issue and the issue Implement a generic revision UI Fixed

Data model changes

The following fields will be revisionable

  • redirect_source
  • redirect_redirect
  • status_code

A new revision redirect table will be created

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇧🇷Brazil murilohp

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.71.5 2024