-
Notifications
You must be signed in to change notification settings - Fork 11k
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
feat: Allow different time units for retention policy #32425
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 02b5ddf The changes in this PR will be included in the next version bump. This PR includes changesets to release 34 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 #32425 +/- ##
===========================================
+ Coverage 56.54% 56.59% +0.04%
===========================================
Files 2484 2483 -1
Lines 54746 54790 +44
Branches 11305 11321 +16
===========================================
+ Hits 30958 31007 +49
- Misses 21139 21142 +3
+ Partials 2649 2641 -8
Flags with carried forward coverage won't be shown. Click here to find out more. |
apps/meteor/client/views/admin/settings/inputs/TimespanSettingInput.tsx
Outdated
Show resolved
Hide resolved
apps/meteor/client/views/admin/settings/inputs/TimespanSettingInput.tsx
Outdated
Show resolved
Hide resolved
apps/meteor/client/views/admin/settings/inputs/TimespanSettingInput.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing some local tests, looks like there's something weird going on with the feature.
2- Executing the branch locally, the values for the new settings look weird.
3 - It's not possible to use the same granularity if the user wants to override the global retention policy, we can use only days (old behavior)
4 - It seems the messages are not being pruned after the specified time (1 minute), I'm not sure if it's respecting what the callout says... Or if it's just not working.
Will be fixed
Seems like an issue with the migration. I'm suspecting the packageValue is changing before the migration runs, so I'll have to do something different there
There will be a fix to the input value but this form specifically will stay as it is for now. It was not part of the scope as far as I'm aware
This depends on the cron running, which is managed through settings above the ones I changed. Both callout and warning will be changing to reflect the cron time. |
…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) ...
…retention * 'develop' of github.com:RocketChat/Rocket.Chat: fix: Not possible to edit room without proper permission with retention policy enabled (#32547) feat: Apps-Engine Deno Runtime update (#31821) feat: E2EE room setup header (#32446) fix: E2EE thread main message reactivity (#32381) chore: Add telemetry to CI so we can get a better understanding of resource usage (#32113) fix: Long katex strings breaking overflow in x axis (#32609) fix: Force highlighted code language registration (#32507) fix: sidebar last message E2EE (#32431) chore: remove message column on moderation console (#32432) fix: Accepted Media Types settings validation (#32478)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really good and solid work.
Really well coded and you added great tests to cover your work.
My only concern here is related to the consistency of the feature. In my opinion we should have keep the same time unit possibilities when overriding retention policy in the rooms. But it seems a product decision to follow like this.
Because of that, I'm approving it on behalf of frontend team!
Proposed changes (including videos or screenshots)
Issue(s)
CORE-302
CORE-303
Steps to test or reproduce
Further comments