-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Draft
Copilot
wants to merge
20
commits into
chore/new-data-migration
Choose a base branch
from
copilot/implement-cold-storage-receipts
base: chore/new-data-migration
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
4d57df1
Initial plan
Copilot e261e13
Implement cold storage for read receipts
Copilot 220b629
Update all deletion points to also delete from archive collection
Copilot 2baea07
Address code review feedback: improve type safety and readability
Copilot 6d6f82f
Add configurable settings and tests for read receipts archiving
Copilot b138dca
Add EE cron tests to jest config and update test configuration
Copilot e89a105
Move settings watcher to startup to ensure proper initialization
Copilot 4da2663
Add English and Portuguese translations for new archive settings
Copilot e35b4de
Fix TypeScript type errors in ReadReceiptsArchive model
Copilot ec19670
Fix lint and TypeScript errors in read receipts archiving
Copilot c978fab
Add configurable batch processing for read receipts archiving with 1s…
Copilot 5a57b2e
Fix lint issues: import order, await-in-loop, and constant condition
Copilot d264a0b
Add secondary read preference for archived read receipts queries
Copilot 988db4f
Pass read preference directly to find queries instead of creating sec…
Copilot 9948d14
Fix TypeScript error: call readSecondaryPreferred() without db parameter
Copilot 60efbfc
Do not save extra data for read receipt & do not remove receipts when…
rodrigok 6f23eed
Add setting to enable cold storage
rodrigok 45c33c9
Use concatenation of message id and user id on _id to replace the uni…
rodrigok dff18c4
Add migration to disable receipts archive if existent dataset is big
rodrigok 0607593
Add alerts for the setting to enable read receipt archive
rodrigok 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
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.
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.
Handle the unlimited prune path too.
Line 146 gates receipt cleanup on
limit.cleanRoomHistory()also supports deleting every matching message whenlimitis0/unset, and in that path both read-receipt collections keep orphaned rows for the removed messages. Please delete archived/hot receipts for the unlimited path as well, either by materializing the IDs before the delete or by adding a filter-based cleanup.🤖 Prompt for AI Agents