Skip to content
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

Added Issues Closed / Opened ratio in Issue trends #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

amunz
Copy link

@amunz amunz commented May 2, 2018

Please consider my contribution to add the metric issues closed / issues opened ratio. The metric is defined by the Chaoss project as an important metric for determining growth maturity and decline. More information on the metric can be found here.

ratio in issue tracker trends

Thank you for considering,
Adam

amunz added 2 commits May 2, 2018 13:13
Added the issues opened / issues closed ratio.
removed fractions import
@Humbedooh
Copy link
Member

Hi Adam, this looks great. Can you snake-case it please?

@@ -324,7 +325,8 @@ def run(API, environ, indata, session):
body = query
)
no_closers_before = res['aggregations']['closer']['value']

issuesRatioBefore = round(float(no_issues_closed_before) / no_issues_created_before, 2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @amunz

Suggested change
issuesRatioBefore = round(float(no_issues_closed_before) / no_issues_created_before, 2)
issues_ratio_before = round(float(no_issues_closed_before) / no_issues_created_before, 2)§

Let's make it python style. ;)

@@ -324,7 +325,8 @@ def run(API, environ, indata, session):
body = query
)
no_closers_before = res['aggregations']['closer']['value']

issuesRatioBefore = round(float(no_issues_closed_before) / no_issues_created_before, 2)
issuesRatioAfter = str(round(float(no_issues_closed) / no_issues_created, 2))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
issuesRatioAfter = str(round(float(no_issues_closed) / no_issues_created, 2))
issues_ratio_after = str(round(float(no_issues_closed) / no_issues_created, 2))

@michalslowikowski00
Copy link
Contributor

Hi folks. Please take a look #45. We are going to change the master branch name to main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants