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

[Feature Request] Analytics #18262

Open
1 of 3 tasks
schorsch13 opened this issue Jan 13, 2022 · 2 comments
Open
1 of 3 tasks

[Feature Request] Analytics #18262

schorsch13 opened this issue Jan 13, 2022 · 2 comments
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first. type/summary This issue aggregates a bunch of other issues

Comments

@schorsch13
Copy link
Contributor

schorsch13 commented Jan 13, 2022

Main idea

I was thinking about how to improve gitea so it can better compete with the other mainstream git hosting platforms. I discovered that both GitHub and GitLab have pretty good analytics for profiles and repos.

Comparison to other platforms

While gitea only has a contribution heatmap for profiles and only a counter for issues and PRs for repos, GitHub has a pretty awesome overview of all different types of contributions you did

image

for profiles and for repos it has an overview of:

image

image

image

GitLab on the other hand has similar features on profile analytics but for repos, oh boy, there are the most awesome analytics you can have for a repo. Listing the best ones:

  1. Commits over time where you can filter for branches

image

  1. Issues over time

image

  1. PR stats

image

  1. The different stages of new features. From when the issue is created to when the PR is merged. How much time does a feature spend in which state. (pretty useful to improve your deployment rate)

image

Gitea is my favourite alternative to all the proprietary and open-core git hosting platforms out there and I use it for all my projects but there is a long way ahead for gitea to become a good alternative from a business pov. Teams need more tools to collaborate and a analytics system would definitely be a good selling point.

Suggestions

  • Profile
    • A graph to show what your contributions actually are (50% Code Review, 25% Commits, 15% Issues, 10% PRs).
    • All-time stats (Total number of commits: 1,7k, PRs: 146, Languages used: 57% Java, 15% C++. etc.)
    • A drop down menu to select the year to show in the contribution heatmap
    • For further ideas have a look into this awesome looking gh profile https://github.com/marcosbarker
  • Repositories
    • Commit statistics
      • Commits over time (per Year/Month/Day of the month/Day of the Week/Hour)
      • Amount of commits per user
    • Issue statistics
      • Issues created and closed over time (per Year/Month/Day of the month/Day of the Week/Hour)
    • PR statistics
      • PRs created and closed over time (per Year/Month/Day of the month/Day of the Week/Hour)
      • List of PRs with following stats (maybe also graphical):
        • Additons/Deletions
        • Time from opening to closing
        • Number of Contributors/Reviewers
        • Number of Commits
        • Number of Comments
    • [OPTIONAL] Feature Life Cycle: From the creation of an issue over the commits on a related branch to a PR until it has merged. In which state does a feature last how much time (where would I need to improve to get faster deployments)

Remark

I know that this feature is beyond the scope of an issues. It is rather an entire Milestone but since I am just a user of gitea and not a team member I thought creating an issue would be the right way to start.

Also I would be interested in helping with the development of this system but I thought it would be better to first ask for feedback before I just start implementing my ideas.

Therefore, feel free to share your opinion to help improving gitea.

@schorsch13 schorsch13 changed the title [FEATURE REQUEST] Analytics [Feature Request] Analytics Jan 23, 2022
@vhscom
Copy link

vhscom commented Feb 14, 2022

I feel a good first step would be to get a download count displayed so users can add a badge to their repos. Then this feature could be iterated on so that more detailed (and privacy-conscious) analytics put in place as time goes on. The single step of adding a download counter would give maintainers a better feel for which apps to spend time on and end-users more transparency over the popularity of a project without relying on star count (in turn giving users a reason to sign-up for an account). Somethig like fail2ban could be used to prevent gaming the download counts.

@lunny lunny added type/proposal The new feature has not been accepted yet but needs to be discussed first. theme/analytics labels Feb 16, 2022
@schorsch13
Copy link
Contributor Author

I totally agree. A download counter for releases is very important and would be a great addition to gitea

@lunny lunny added the type/summary This issue aggregates a bunch of other issues label Feb 17, 2024
silverwind pushed a commit that referenced this issue Feb 23, 2024
### Overview
This is the implementation of Code Frequency page. This feature was
mentioned on these issues: #18262, #7392.


It adds another tab to Activity page called Code Frequency. Code
Frequency tab shows additions and deletions over time since the
repository existed.


Before:
<img width="1296" alt="image"
src="https://github.com/go-gitea/gitea/assets/32161460/2603504f-aee7-4929-a8c4-fb3412a7a0f6">

After:
<img width="1296" alt="image"
src="https://github.com/go-gitea/gitea/assets/32161460/58c03721-729f-4536-a663-9f337f240963">

---


#### Features
- See additions deletions over time since repository existed
- Click on "Additions" or "Deletions" legend to show only one type of
contribution
- Use the same cache from Contributors page so that the loading of data
will be fast once it is cached by visiting either one of the pages

---------

Co-authored-by: Giteabot <teabot@gitea.io>
wxiaoguang pushed a commit that referenced this issue Feb 24, 2024
This is the implementation of Recent Commits page. This feature was
mentioned on #18262.

It adds another tab to Activity page called Recent Commits. Recent
Commits tab shows number of commits since last year for the repository.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first. type/summary This issue aggregates a bunch of other issues
Projects
None yet
Development

No branches or pull requests

4 participants