fix: Performance fix to only measure statistics which are not hidden#239
Merged
fix: Performance fix to only measure statistics which are not hidden#239
Conversation
fixes #177 Signed-off-by: Zack Koppert <zkoppert@github.com>
Collaborator
Author
|
@jmeridth Any ideas on how to handle a default argument for the EnvVars type?
|
Collaborator
diff --git a/issue_metrics.py b/issue_metrics.py
index 628f7f3..85c3b39 100644
--- a/issue_metrics.py
+++ b/issue_metrics.py
@@ -127,7 +127,7 @@ def get_per_issue_metrics(
ignore_users: Union[List[str], None] = None,
max_comments_to_eval: int = 20,
heavily_involved: int = 3,
- env_vars: EnvVars = None,
+ env_vars: EnvVars = get_env_vars(),
) -> tuple[List, int, int]:
"""
Calculate the metrics for each issue/pr/discussion in a list provided.You could do some funky stuff with |
Co-authored-by: jmeridth <jmeridth@gmail.com> Signed-off-by: Zack Koppert <zkoppert@github.com>
Signed-off-by: Zack Koppert <zkoppert@github.com>
…test=True Signed-off-by: Zack Koppert <zkoppert@github.com>
Collaborator
Author
|
@jmeridth ready for next round of review when you have time |
jmeridth
approved these changes
Apr 16, 2024
Signed-off-by: Zack Koppert <zkoppert@github.com>
Signed-off-by: Zack Koppert <zkoppert@github.com>
jmeridth
approved these changes
Apr 16, 2024
Signed-off-by: Zack Koppert <zkoppert@github.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #177
Pull Request
Please review cautiously as my confidence around these changes is low as I was in a rush. Happy to pair on a review.
Proposed Changes
This pull request primarily focuses on enhancing the functionality of the
issue_metrics.pyscript by introducing a newEnvVarsclass and using it to control the execution of certain metrics calculations. The changes allow for more flexibility in terms of what metrics to calculate and when.Readiness Checklist
Author/Contributor
make lintand fix any issues that you have introducedmake testand ensure you have test coverage for the lines you are introducingReviewer
bug,documentation,enhancement,infrastructure, orbreaking