-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
fix: Overriding Retention Policy not working #32454
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: df95565 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #32454 +/- ##
===========================================
+ Coverage 55.85% 56.03% +0.18%
===========================================
Files 2432 2431 -1
Lines 53568 53557 -11
Branches 11028 11030 +2
===========================================
+ Hits 29919 30011 +92
+ Misses 21013 20901 -112
- Partials 2636 2645 +9
Flags with carried forward coverage won't be shown. Click here to find out more. |
3d96cab
to
1254440
Compare
e8c6b22
to
818aeb6
Compare
4586d3c
to
44ec9f4
Compare
…retention * 'develop' of github.com:RocketChat/Rocket.Chat: (36 commits) refactor: IntegrationHistory out of DB Watcher (#32502) fix: Message update being broadcasted without updated values (#32472) test: make api teams test fully independent (#31756) test: Fix test name (#32490) fix: streams being called with no logged user (#32489) feat: Un-encrypted messages not allowed in E2EE rooms (#32040) feat(UiKit): Users select (#31455) fix: Re-login same browser tab issues (#32479) chore: move all webclient code out of the COSS folders (#32273) chore(deps): bump thehanimo/pr-title-checker from 1.3.7 to 1.4.1 (#30619) fix: Don't show join default channels option for edit user form (#31750) fix: CAS user merge not working (#32444) fix: Overriding Retention Policy not working (#32454) fix: `rooms.export` endpoint generates an empty export when given an invalid date (#32364) fix: "Allow Password Change for OAuth Users" setting is not honored in the "Forgot Password" flow (#32398) fix: Bypass trash when removing OTR system messages and read receipts (#32269) fix: Monitors dissapearing from Unit upon edit (#32393) fix: Link image preview not opening in gallery (#32391) feat: Allow visitors & integrations to access downloaded files after a room has closed (#32439) regression: Users tab misaligned (#32451) ...
@dougfabris I had a go with retention time fix with 6.9.0 rc1. When setting the test scenario up I noticed this issue: This happens when trying to change the channel type from private to public with channel owner privileges. The two days retention in the picture is a global default for all channels. The user owning this channel does not have pruning rights aka Clean Channel History privilege (the default). I did not touch anything else on this newly created channel, only tried to switch it from private to public directly after the channel was created with the same account. I also cleaned cached while testing for this new issue. Edit: Giving the |
@Gummikavalier Nice catch, an issue indeed! Thank you so much for helping us 🚀 |
Co-authored-by: Guilherme Gazzo <5263975+ggazzo@users.noreply.github.com>
@Gummikavalier JFYI, the fix for it will be on |
@dougfabris FYI. Sorry! While the retention policy options do not show anymore in 6.9.0 (just released), the actual error message still happens in the most common scenario of creating a new channel and then trying to edit it. Note! After you have given the room owner the I'm guessing but this could indicate that once the first edit has been done with all required permissions thus creating the required lines into the document (any kind, even global or empty one), it succeeds from there on for that channel. So the channel creation and editing process might need this entry to be checked if it exists first, and if not, then setting it up for default/empty. And existing channels would need to have this set too during the upgrade. The issue can be worked around by using that |
@Gummikavalier Indeed, I tested only the input render and I missed checking the permission when initiating the form values, so when users without the Thanks again for the huge support on this! |
Apart from that issue with permission during making changes as regular owner, the actual pruning tests seemed to work ok. I had different channels with 3 and 1 days retention, 2 days as global policy for others, running for several days. Messages remained and disappeared accordingly. One channel was set to never prune and the messages have stayed intact there as they should. Looks good to me. 👍 |
Proposed changes (including videos or screenshots)
Issue(s)
Closes #30810
Closes #31667
Closes #19730
Closes #20348
Closes #20186
Closes #24894
Closes #30567
Steps to test or reproduce
Further comments
SUP-563