WeblateOrg / WeblateOrg/weblate

Add a housekeeping function to purge old history

Open
#13,333 4 comments 0 reactions 0 assignees View on GitHub
enhancement Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the problem

As asked and answered in discussion #13324, there is right now no command/function to clear up old history.

![396552962-457c0323-d0fd-4574-83af-87dad29816c7](https://github.com/user-attachments/assets/84911a4c-c4fa-474d-98ad-727cd5d20ccf)

In this example Weblate shows close to 40.000 pages of history, most of which are obsolete, since they date back several years.

### Describe the solution you would like

I would like to be able to define a time span (xxx days/weeks/months/years) after which older history entries will automatically be purged. Add a meaningful default (e.g. one year).

I'm not sure whether this should be configurable from the admin page via the web UI or only inside the installation folder, unreachable via the web UI. Something similar is already available for the notifications which are sent on behalf of inactive projects. I can't find a UI page for it, so it is probably done on the installation configuration level.

### Describe alternatives you have considered

_No response_

### Screenshots

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.