sourcecred / odyssey-hackathon

Repo for working on our Odyssey Hackathon project
Other
2 stars 1 forks source link

Core model logic for the Odyssey plugin #4

Closed teamdandelion closed 5 years ago

teamdandelion commented 5 years ago

This creates the core data structure for the Odyssey plugin, called an 'OdysseyInstance'. It supports adding entities (basically nodes) of type Person, Priority, or Contribution. You can take a look at our design doc or brainstorming to get a sense of what's going on here, although the design has continued to evolve via in-person conversations.

See the model.test.js file for a sense of how the API looks when used in practice.

Test plan: Unit tests included. yarn test passes.

teamdandelion commented 5 years ago

Got a LGTM from @BrianLitwin offline, gonna merge.