Skip to content

fetchting data in team for showing commits

What does this MR do and why?

This MR fixes and enhances the commit tracking logic in the Contribution Mapping module.

Previously:

Merge Requests (MRs) were displayed correctly.

Commits were not being fetched or shown.

Debug logs did not display commit counts.

Team Summary did not include commit data.

This update:

Properly fetches commits based on the selected date range.

Displays total commits in debug logs.

Calculates commits per user correctly.

Adds a new “Commits” column in the Team Summary table.

Ensures commit filtering works for:

Today’s date

Single-day selection

Multi-day ranges

This improves visibility and accuracy of contribution analytics.

References

Contribution Mapping Module

Date Range Filtering Logic

Team Summary Table Enhancement

Screenshots or screen recordings Before After Commits not visible Commits column added Debug logs show only MRs Debug logs show MRs + Commits Team summary missing commit data Team summary includes commit counts How to set up and validate locally

Pull the latest branch:

git checkout feature/ui-date-range git pull

Run the application:

streamlit run app.py

Go to Contribution Mapping mode.

Select:

Today’s date

Single-day range

Multi-day range

Verify:

Commits are visible in Team Overview.

“Commits” column appears in Team Summary.

Debug logs display commit counts.

Per-user commit counts are correct.

MR acceptance checklist

Commit fetching works correctly

Date filtering works for commits

Debug logs show commit counts

Team Summary updated with commits column

Existing MR functionality not broken

No UI regression

Merge request reports

Loading