-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing the current Report using new functions #66
Comments
I like the approach. I would think a bit more about the Metric class and its subclasses. For example, instead of
I would define a class "Pull_Request", which would inhering from "Metric" (or maybe from "GitHub"), internally adding the query In addition, some fields that are now in the instantiation of the metric,such as start_date and end_date, I would implement them also as methods of the metric, so that you can just chain them if needed. So the above code would be something like:
Note that since, until, etc. would be implemented as functions of Pull_Requests, returning Pull_Requests objects. What do you think? |
WRT to how to implement this on the current Manuscripts, I see the problem you mention of this being completely different from the current implementation. Maybe we can start with a new directory in it (manuscripts2, for example), and include in it all the stuff, until when we can compute at least the current reports... |
The idea of having a
+1. I'll replace
@jgbarah I was able to compute the metrics from Git and Github. Should I start looking at other data sources? |
Should we close this issue? |
I've been working on redesigning the functions and classes so as to calculate the Metrics in a better way.
This issue is about trying to implement the current reports that Manuscripts produces using these new functions. I am limiting this issue to only calculate the Metrics defined under Github Issues, PRs and Git Commits, as this is for testing purposes and most of the Metrics are under these 3 categories.
I was unable to add these new functions directly into manuscripts(by creating a branch and generating a report using these functions like what happens currently) because the current functions use Inherited classes for each metric and are different than what I have implemented.
These new functions cannot just be plugged into manuscripts and will mostly require a complete makeover of the manuscripts project, if it is decided that they are correct and should be implemented.
The new functions and classes have been created, keeping in mind the metrics under GMD and others so that calculating them becomes easier and useful for the users.
I've implemented the metrics in this notebook and this is the reference pdf showing the metrics calculated by manuscripts using the old functions.
@jgbarah @valeriocos @acs please have a look at the notebook!
The text was updated successfully, but these errors were encountered: