matrix-org / conference-bot

The conductor for your orchestra^Wconference
Apache License 2.0
44 stars 8 forks source link

The same person can be defined multiple times #151

Open reivilibre opened 1 year ago

reivilibre commented 1 year ago

public async findPeopleWithId(personId: string): Promise<IPerson[]> { is awkward enough on its own, but what I only just realised is that a person may appear in multiple events with different roles.

This means that having the role on IPerson is pretty poor ­— I'm really not a fan of having multiple people per ID that correspond to the same physical human being acting in multiple capacities. Some denormalisation would be appreciated.