alan-turing-institute / whatwhat

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

Results of merging Forecast and GitHub data seem... odd. #69

Closed yongrenjie closed 1 year ago

yongrenjie commented 1 year ago

Working on the dev branch:

https://github.com/alan-turing-institute/whatwhat/blob/82113da23cf0936f6bc40d9d7b10bacc3b64e418/lib/forecast.ml#L164

yongrenjie commented 1 year ago

Ok, this is because of invalid YAML metadata, so active projects are being removed entirely from the programme. Specifically, the project tracker contains 34 issues in the AGNG, FP, AS, and Active columns (as of the time of writing), of which:

That leaves 9 issues that have readable and complete YAML (1185, 1234, 1066, 1132, 1077, 1095 1079, 1096, 482). Only assignments belonging to these issues are retained, so only fetching 15 assignments makes sense.

I guess we should save the warnings until the end instead of simply deleting the issues at such at early stage. Even if a project is missing a code we'd probably still like to track allocations and FTEs, while also bugging people to edit in a project code.

yongrenjie commented 1 year ago

The finance code is optional now, I think. (see e.g. 1214) However, other errors in the metadata still lead to projects being deleted (see e.g. 1216). This is a bit annoying, and not difficult to fix, but will probably be tedious (I think).

yongrenjie commented 1 year ago

Fixed the above. Now whatwhat reports that it got:

44 people (correct as of the time of writing); 31 projects (correct as of the time of writing); and 118 assignments (I didn't go to Forecast to count, but this seems like a sensible number).