source_optics
source_optics copied to clipboard
idea: report authors/stats by file extension
we have all of this in the datbase, so why not.
It would be nice to have some more advanced reports per organization and per repo:
For instance, we can show:
- who are the people who edited the most javascript files within the timerange? (Repeat for every single extension)
This would be useful to answer the industry question of who are your python developers vs your javascript developers, etc. This probably exists in small organizations, but is actually REALLY HARD in larger ones.
It could be then, used, to for example - collect email addresses and tell them about meeting or special interest group, or notify them about a new library that just came out.
commits can be filtered by adding ?extension=.js to the /report/commits URL already.
Filtering stats is somewhat tricky as the Statistics table is not that granular and would be theoretically pretty expensive to calculate per file at the moment (we already spend a lot of time calculating per author).
Maybe this could be opt-in per specific repos or we could just choose to do extension stats.
Definitely we would not want to do per-author-per-extension stats.
Another alternative is accept that we couldn't use the pre-computed rollups and make the user wait for those reports, doing them via REST API... which is also maybe reasonable, but impairs a pretty high code cost to have two ways to do it, and I like the reports being quick to return as is.