Skip to content

Clean-up version history #2067

Description

@ulliholtgrave

Motivation

If users are editing a single page for a couple of hours a lot of automatic saves are created which results in a very crowded versioning view and a lot of unnecessary database objects.

Proposed Solution

If the user triggers a manual save delete all automatic translations for this specific translations, but keep the latest 3 as a safeguard. (this is not wished anymore as of May 2024)
instead:

  • Only keep auto saves since the last manual save
    • Autosave field: translation.status == constants.status.AUTO_SAVE
  • Clean up of the current history
    • Past autosaves cannot be identified by the status field, thus:
      • We compare version to each immediate version whether they have the same content and only keep the newest version where we can't count on the auto save status to be accurate
      • Infer autosaves, which means: Delete all versions that are only one minute (+/- tolerance) apart because manual saves wouldn't happen in that speed
    • Write database migration to delete all versions we identified as auto saves

Alternatives

Adapt the view to only show a few automatic translations?

Additional Context

Design Requirements

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: highBig change, which requires >12hfeature:Pages/CategoriesIssues related to pages in the Integreat CMSprio: mediumShould be scheduled in the forseeable future.readyThis issue is ready to be worked ontopic:RefactoringIssues related to refactoring

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions