Skip to content

Merged merge request#238

Merged
badetitou merged 7 commits intodevelopfrom
merged-merge-request
Nov 17, 2025
Merged

Merged merge request#238
badetitou merged 7 commits intodevelopfrom
merged-merge-request

Conversation

@badetitou
Copy link
Member

The metric MergedMergeRequestMetric is used to count the number of MR merged by a user.

Another metric is the number of merge request created by user that is close. This metric would point out the number of initiated work by a user that ends to a concrete contribution in the project.

I propose to rename MergedMergeRequestMetric into MergeRequestMergedByUserMetricTest
And to use MergedMergeRequestMetric to represent the number of merge request created by a user that is merged at the end

I updated the tests accordingly (and created new ones)

Comment on lines 44 to 46
userMergeRequests := self
loadMergeRequestsSince: (period at: #since)
until: (period at: #until)
Copy link
Collaborator

Choose a reason for hiding this comment

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

LGTM

Just here you’re storing the result of loadMergeRequestSince in a variable called userMergeRequest, but it actually contains all merge requests — not just the user’s. It produce the intended result, but maybe the variable name could be a bit confusing when reading the calculate method

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in bb78c65

I think it could have created bugs with the ifNil: [ self load]
Should add a test on that in the future

@badetitou badetitou requested a review from knowbased November 3, 2025 08:25
@badetitou badetitou merged commit 2b798f9 into develop Nov 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments