Review main Merged

73861[BUGFIX] Use sys_history for workspaces stage changes + comments

Benni Mack CR +2 V +2 Normal +129 −37 updated 03/14/22, 12:42

Commit message

Historically, a stage change
(publishing or "editing => ready to publish") has been
tracked - along with the comment in sys_log with the
action=6 (update) and details_nr=30, where then the logs
are read again for the workspaces module.

Reading from sys_log is a problem as this data is
very volatile (there is even a scheduler task to delete
old sys_log entries older than e.g. 90 days, so we loose
comments).

This change now stores the information inside the
sys_history table about a stage change, so the history
of such an action is preserved, along with the comment.

The workspaces module now reads from sys_history (via
RecordHistory class) and from sys_log if there are
still old comments.

The reading from sys_log can then be removed at a later
change.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 6