BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Clean old revisions

Open Eragaus opened this issue 1 year ago • 4 comments

Describe the feature you'd like

Like image cleanup script, we would be able to clean old revisions through scripts or a new interface. We could filter according to a date or range of them, simply selecting those we want to remove.

Describe the benefits this would bring to existing BookStack users

The main benefit is to clear the database with old data. Few persons do not want to keep old revisions after weeks, months, weeks... Or they just want to keep revision clean.

Can the goal of this request already be achieved via other means?

No

Have you searched for an existing open/closed issue?

  • [x] I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

1 to 5 years

Additional context

No response

Eragaus avatar Jun 11 '24 21:06 Eragaus

Thanks for the request @Eragaus. Can you confirm specifically what you want to achieve as a result of cleaning revisions? What is your functional end goal via such a feature? You mention clearing the database, but I want to further understand why that's important to you.

ssddanbrown avatar Jun 12 '24 10:06 ssddanbrown

Old and useless revisions can take a lot of space because the number of them can increase significantly. Moreover, the useless ones can be removed. That is why it would be nice, being able to clean revisions, like cleanup image buttons. We could also remove them according to a date filter.

Le mer. 12 juin 2024 à 12:23, Dan Brown @.***> a écrit :

Thanks for the request @Eragaus https://github.com/Eragaus. Can you confirm specifically what you want to achieve as a result of cleaning revisions? What is your functional end goal via such a feature? You mention clearing the database, but I want to further understand why that's important to you.

— Reply to this email directly, view it on GitHub https://github.com/BookStackApp/BookStack/issues/5063#issuecomment-2162651947, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKP3L7ZSGROADUDIH3XKZ43ZHAORRAVCNFSM6AAAAABJFEDNY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRSGY2TCOJUG4 . You are receiving this because you were mentioned.Message ID: @.***>

Eragaus avatar Jun 15 '24 13:06 Eragaus

We could also remove them according to a date filter.

+1 as currently I manually delete old revisions one by one, which is quite tedious. A cron job would be also welcome to clean up old revisions.

For the GUI side of things, here are two screenshots from ProcessWire showing how admins can manage log entries in the backend (chop / burn):

ProcessWire-log-manager

ProcessWire-log-manager-chop

I could imagine something similar regarding BookStack's revisions, both globally and on a page-by-page basis.

szabeszg avatar Jun 15 '24 14:06 szabeszg

I imagined the same UI, it perfectly fit with the main Bookstack theme.

Le sam. 15 juin 2024 à 16:32, Szabesz @.***> a écrit :

We could also remove them according to a date filter.

+1 as currently I manually delete old revisions one by one, which is quite tedious. A cron job would be also welcome to clean up old revisions.

For the GUI side of things, here are two screenshots from ProcessWire showing how admins can manage log entries in the backend (chop / burn):

ProcessWire-log-manager.png (view on web) https://github.com/BookStackApp/BookStack/assets/7194945/40694512-7d5b-4830-9f03-de2ae56272e6

ProcessWire-log-manager-chop.png (view on web) https://github.com/BookStackApp/BookStack/assets/7194945/383c4f0b-8af0-44d8-bacf-2e1875c3bb58

I could imagine something similar regarding BookStack's revisions, both globally and on a page-by-page basis.

— Reply to this email directly, view it on GitHub https://github.com/BookStackApp/BookStack/issues/5063#issuecomment-2169786738, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKP3L732ZX5GEZ3U6V4HC53ZHRF7JAVCNFSM6AAAAABJFEDNY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRZG44DMNZTHA . You are receiving this because you were mentioned.Message ID: @.***>

Eragaus avatar Jun 16 '24 07:06 Eragaus