RocketChat / RocketChat/Rocket.Chat

remove this index in the next major release (8.0.0) - its only consumer (findLastLoginByIp) was removed

Open Beginner friendly
#41,317 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

{ key: { ip: 1, loginAt: -1 } },

📝 Found in packages/models/src/models/Sessions.ts#L995

Commit: 582d25d69677cc7eefc7707db7cae103b1dbe980

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 packages/models/src/models/Sessions.ts around line 995 and review the index definition in the referenced commit. Confirm that findLastLoginByIp is no longer a consumer, then remove the obsolete index for the 8.0.0 release. Done means the unused index definition is gone without affecting the surrounding session model.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
database
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.