alan-turing-institute / whatwhat

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

Person overview #87

Closed yongrenjie closed 1 year ago

yongrenjie commented 1 year ago

This actually requires us to keep all imperfectly parsed projects, etc. (see #69), otherwise it just looks silly

$ dune exec -- whatwhat person jonathan
+--------------------+
| Jonathan Yong      |
| jyong@turing.ac.uk |
| @yongrenjie        |
+--------------------+

Assignments on Forecast
-----------------------
None found.
yongrenjie commented 1 year ago

Okay, I fixed that happening and now projects from the 'four blessed columns' are always retained. So Kat's project shows up, for example.

However, this doesn't help with viewing allocations to other projects that aren't on those columns, e.g. service areas, or other stuff like whatwhat itself.

$ dune exec -- whatwhat person katriona
+-------------------------------------+
| Katriona Goldmann                   |
| kgoldmann@turing.ac.uk              |
| https://github.com/KatrionaGoldmann |
+-------------------------------------+

Assignments on Forecast
-----------------------
(current) #1216 AMBER: Automated biodiversity monitoring of insects, bats and birds     91.20 FTE-weeks, 2023-02-27 to 2024-12-27

$ dune exec -- whatwhat person jonathan
+-------------------------------+
| Jonathan Yong                 |
| jyong@turing.ac.uk            |
| https://github.com/yongrenjie |
+-------------------------------+

Assignments on Forecast
-----------------------
None found.
yongrenjie commented 1 year ago

Basically, we need to not delete assignments to nonexistent projects. But that means we will inevitably churn out a LOT of old assignments which we aren't interested in. Perhaps we can just implement a cutoff, say, 3 months or something.

One possibility is to just directly use the assignments from Forecast.get_the_schedule...?

It's easy enough to not delete the assignments.

$ dune exec -- whatwhat person jonathan
+-------------------------------+
| Jonathan Yong                 |
| jyong@turing.ac.uk            |
| https://github.com/yongrenjie |
+-------------------------------+

Assignments on Forecast
-----------------------
   (past) #787  Not started, left or part-time                                             368.20 FTE-weeks, 2016-01-01 to 2023-01-20
   (past) #1232 Onboarding to REG                                                            2.00 FTE-weeks, 2023-01-23 to 2023-02-03
(current) #1206 Ongoing NowWhat work                                                        12.00 FTE-weeks, 2023-02-06 to 2023-04-28
 (future) #1399 Widening Participation: Defense and Security summer school and roadshow      2.00 FTE-weeks, 2023-05-01 to 2023-05-26