matrix-org / matrix-org/mjolnir

We need a utility to efficiently go from a MjolnirRecord to a ManagedMjolnir so that rely on the datastore for indexing

Open
#409 0 comments 0 reactions 0 assignees View on GitHub
A-Appservice T-Task
Dominant language
TypeScript
Stars
445
Forks
75
Avg merge
2d 44m
Merged PRs (30d)
3

Description

e.g. https://github.com/matrix-org/mjolnir/blob/818e4cf3153015591b5175d584f542df10e7951b/src/appservice/MjolnirManager.ts#L88-L97 we want to search up mjolnirs by ownerId but can't currently.

Contributor guide

Open the contributing guide

Research direction

Start with src/appservice/MjolnirManager.ts around lines 88-97 and inspect how MjolnirRecord and ManagedMjolnir are represented. Trace the datastore access used there and determine how a utility could support lookup by ownerId. Done means the conversion and ownerId search work through the datastore without relying on an in-memory scan.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.