mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-10 12:46:16 +00:00
093955dea1
Previously, the `sourcecred scores` command assumed that all users are GitHub users, and assigned users an id based on their GitHub login. Now, the command returns information on all users, regardless of which plugin provided them. As such, we need to identify users differently. Instead of a string id, they now have an array of address parts. That array contains all of the parts of their corresponding node address. For example, the GitHub user `@Beanow` would correspond to the address array `["sourcecred", "github", "USERLIKE", "USER", "Beanow"]` As a general convention, the first two components of any node's address contain information about the plugin that owns that node. The first component is the owner of the plugin, and the second is the name of the plugin. Afterwards, the plugin may represent nodes in whatever manner it sees fit. Thanks to @Beanow and @vsoch for some feedback and discussion on this design. Test plan: Snapshots have been updated. `yarn test` passes.