-
Notifications
You must be signed in to change notification settings - Fork 13.6k
feat(enterprise): Implement cold storage archiving for read receipts #38623
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
80dfb6c
Initial plan
Copilot acb163b
Implement cold storage for read receipts
Copilot e641093
Update all deletion points to also delete from archive collection
Copilot e93761d
Address code review feedback: improve type safety and readability
Copilot 08c3695
Add configurable settings and tests for read receipts archiving
Copilot 9161439
Add EE cron tests to jest config and update test configuration
Copilot 412a50d
Move settings watcher to startup to ensure proper initialization
Copilot 7fef6b4
Add English and Portuguese translations for new archive settings
Copilot 5e4bfdc
Fix TypeScript type errors in ReadReceiptsArchive model
Copilot c74e5c2
Fix lint and TypeScript errors in read receipts archiving
Copilot ad11a46
Add configurable batch processing for read receipts archiving with 1s…
Copilot 55553bc
Fix lint issues: import order, await-in-loop, and constant condition
Copilot a50d31b
Add secondary read preference for archived read receipts queries
Copilot 440754d
Pass read preference directly to find queries instead of creating sec…
Copilot 1892c8d
Fix TypeScript error: call readSecondaryPreferred() without db parameter
Copilot 7207d05
Do not save extra data for read receipt & do not remove receipts when…
rodrigok f30ca0f
Add setting to enable cold storage
rodrigok d7759e8
Use concatenation of message id and user id on _id to replace the uni…
rodrigok 26e15f0
Add alerts for the setting to enable read receipt archive
rodrigok af8458f
Fix Diego's review
rodrigok cb909b1
Fix AI reviews
rodrigok 8836ff3
Use existing sleep utility and object-based logging style
Copilot 70aacdf
Merge branch 'develop' into copilot/implement-cold-storage-receipts
ggazzo df22c76
docs: add changeset
sampaiodiego File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- | ||
| '@rocket.chat/meteor': minor | ||
| --- | ||
|
|
||
| Introduces Cold Storage Archiving for Read Receipts to improve performance and scalability in large deployments. | ||
|
|
||
| Enterprise workspaces can now archive older read receipts into a dedicated cold storage collection, reducing the size of the primary read receipts dataset and improving query performance in environments with high message volumes. | ||
|
|
||
| This feature is disabled by default and can be enabled through the new setting: | ||
|
|
||
| **Message → Read Receipts → Enable Read Receipts Cold Storage** | ||
|
|
||
| This feature is especially recommended for deployments with high message throughput and long data retention requirements, where reducing the size of hot collections significantly improves overall system responsiveness. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
apps/meteor/ee/app/message-read-receipt/server/hooks/afterDeleteRoom.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.