-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEW] Message retention policy and pruning #11236
Conversation
A simple implementation of a global retention policy now exists! 🎉 It's configurable in Administration. The example above looks like this in chat: (Of course, most sane users would set it to something like 30 or 7 days, but short history like this is possible too and makes it easier to show how it works in a GIF) |
This is awesome, thank you so much!!! |
Wow, awesome work @vynmera |
This is top top top! |
Aaawesome!!!! |
Is it possible to have different maximum message age values for direct messages, private groups, and public channels? It would be nice to have different values for those three things. |
Great feature- many thanks !!! |
@marzie82 You need rocketchat 0.68.0. |
Ability to delete channels / dm automatically after x time with no message would be really nice. |
@himpierre Thanks ;) |
As far as I can see, SNAP 0.68.0 is not available yet. Not in the stable update channel and also not in the candidate channel. The latest version is still 0.66.3. I would also advice not to use updates from the candidate channel in a production environment. Better wait until there is a stable version. Maybe development can let us know when they expect it to be published as a stable version? |
Amazing feature, the only thing I would love to see is the ability to set rules per channel. Some channels don't require long-term storage, while others are nice to keep. Thanks for the great work ! |
@svennd This is already possible with the per-channel rules: for every channel, if you have the |
Hello, |
@claures Yes, it does! You can also make it only delete attachments. |
Hello. Tell me, I have a version 0.68.3 server. Why does my automatic cleaning function not work for private messages? With what it can be connected? Global settings enable cleaning for channels, rooms and private messages. But it cleans only in channels and groups. In personal messages from the top it is written, Messages older than 14 days are automatically cropped here, but messages remain for an older period. In manual, if clean, it cleans. And the second question. In the channel, in groups and private messages, if I choose to clear all messages, they are cleared in the web and desktop versions of the application, and in the mobile application the story remains, with what it too can be connected? And if I delete messages individually, they are deleted everywhere. Thank you. |
@CH1PSET1 As for the messages not being cleared automatically, there may be not enough activity in the channel: #11725 (comment) discusses this further. (I've started some tests in the background and will return with the results once I've tested some more, but this might be the cause of the issue) As for prunes not showing up in the mobile apps, this PR implements a new type of Notification. So the mobile apps will have to be updated to reflect this change. The messages are gone, but the phone app doesn't know this because it not yet handles these new notifications. Once the mobile app is updated, this will work. |
@vynmera thanks for bringing this into rocket.chat. |
Will this be implemented in livechat also? |
Hi guys. I wish I had the chance to decide for every channe whether a user can see historic messages. That's important for clubs for example. A chat can get messy and sometimes to informal and new guys may have a different wording. It would come in handy if I could set specific settings for a user. For example if I want to exclude a new added user in a channel to see previous chats. |
This is what I am referring to: |
I don't believe you can do that. You can only clear messages 'older than' You can open a NFR if you want: |
I need AUTO delete message older then 5 day for expamle, for some channel, not for all. |
Please read this. If you can't find what you need then open a feature request. Just add a reference to this PR. Obviously a PR with your code to add new functions is always welcome. |
A question regarding completeness of pruning functionality: Does this also prune user data files created by The export feature offers the messages and attachments as a zip file by a direct link to the server. |
Closes #6749
Closes #8321
Closes #9374
Closes #2700
Closes #2639
Closes #2355
Closes #1861
Closes #8757
Closes #7228
Closes #10870
Closes #6193
Closes #11299
Closes #11468
Closes #9317
Closes #11300 (will incorporate a fix to this PR's issue)
Closes #11046 (will incorporate a fix to this PR's issue)
Contributes to RocketChat/feature-requests#761
Contributes to #11475
...and possibly more!
This PR makes deleting messages (automatically and manually) a lot easier on Rocket.Chat.
rooms.cleanHistory
cleanChannelHistory
channels.cleanHistory
edit-privileged-setting
Please suggest any cool changes/additions! Any support is greatly appreciated.
Breaking change: This PR removes REST API endpoint
channels.cleanHistory
and Meteor callablecleanChannelHistory
as per the protocol specified for them.