-
Notifications
You must be signed in to change notification settings - Fork 2
Show authors in growth & estimation table. Rework estimation logic. #70
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
Conversation
…isplay - Implemented GetCumulativeUniqueAuthorsByYear to calculate unique authors per year. - Updated repository information to include total authors. - Modified growth history display to show authors alongside commits and on-disk size. - Adjusted tests to reflect changes in growth statistics structure and output.
… and git packages
…, enhance output formatting, and update tests for clarity
… improved alignment and readability
…ned values and update test expectations for clarity
…output for improved readability
…ive and negative values
… predictive accuracy. Replace old estimation logic with a dynamic approach based on delta changes. Update related display functions and tests accordingly.
…rcentage values. Update display functions and tests to utilize pre-computed values for improved clarity and consistency.
…stimates. Update logic to store these values for improved tracking and prediction.
…owth sections. Replace redundant functions with `DisplayUnifiedGrowth` for simplified logic and enhanced clarity.
…ed display logic. Update `DisplayUnifiedGrowth` to remove redundant header printing.
…implified formatting and reduced redundancy in printed output.
…tralization and clarity. Update `DisplayUnifiedGrowth` to reflect this change.
…columns. Adjust footnotes and spacing accordingly.
…ar column for clarity, adjust spacing in output, and update current year display to include markers for estimated growth.
…r for improved readability.
e18f1a1 to
06fea8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR restructures the growth and estimation display by adding author tracking and implementing a unified table showing both historic and estimated growth with enhanced delta percentage calculations.
- Adds cumulative author tracking across repository history
- Removes old estimation logic and implements new delta-based prediction algorithm
- Consolidates historic growth and estimation into a single unified table with enhanced formatting
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/progress/progress.go | Updates progress display format to show authors and placeholder values |
| pkg/models/models.go | Adds TotalAuthors field and comprehensive delta/percentage tracking fields |
| pkg/git/git_test.go | Removes outdated CalculateEstimate test function |
| pkg/git/git.go | Removes CalculateEstimate function and adds GetCumulativeUniqueAuthorsByYear |
| pkg/display/sections/run_information.go | Extends section header length for consistent formatting |
| pkg/display/sections/growth_tables_test.go | Updates tests to reflect new table structure and author tracking |
| pkg/display/sections/growth_history.go | Replaces historic growth display with unified table format |
| pkg/display/sections/growth_estimates.go | Implements new estimation algorithm and unified display function |
| main.go | Restructures growth calculation flow and integrates author tracking |
| fixtures/git-metrics.txt | Updates test fixture to reflect new unified table output |
No description provided.