alan-turing-institute / whatwhat

A reimagining of nowwhat in OCaml
MIT License
0 stars 0 forks source link

Separate out the "official" domain model types into a separate module #44

Closed triangle-man closed 2 years ago

triangle-man commented 2 years ago

Follows on from #25

triangle-man commented 2 years ago

The Schedule module returns "official" types -- those that reflect the domain model, as opposed to the types returned by ForecastRaw, say, which reflect the data source model. However, Github module should return official types for projects (where it is authoritative) and Forecast should return official types for people and assignments (where it is authoritative).

So probably we should move these to a separate module.

I had already started an `Allocations' module because I suspect we will need a bunch of utilities for dealing with times. Perhaps these should also live in the same place as other domain types