RocketChat / RocketChat/Rocket.Chat

Drop existent index on database migration of 9.0

Open Beginner friendly
#40,235 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

todo type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

{ key: { roomId: 1, userId: 1, messageId: 1 }, unique: true },

📝 Found in apps/meteor/ee/server/models/raw/ReadReceipts.ts#L14

Commit: f65cd9be3264a4285e709049acb303caef0b9eae

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at apps/meteor/ee/server/models/raw/ReadReceipts.ts#L14-L19 and inspect the database migration for version 9.0 that handles this index. Confirm the existing index is removed during migration, then verify the migration succeeds with the affected ReadReceipts data.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.