Get top contributors on master branch via RESTful api (OD-292)
hackerdom opened 5 years ago

Many thanks to the author for adding the RESTful API, and whether to consider extending an API that can query all commit records for each branch based on the project, returning results similar to how many lines of code were added and removed.

  • Robin Shen commented 5 years ago

    Querying added/removed lines against all commits will stress the server a lot. I'd suggest to clone the repository and run git command against the local copy. It will also be much flexible.

  • hackerdom commented 5 years ago

    Still hope to have this feature, the problem of pressure I can compensate with a good hardware configuration. I hope you can consider this feature, thanks!

  • hackerdom commented 5 years ago

    I want to extend this API to a statistics module that can separately count how much code each person has modified and deleted on each branch of each project, and can generate some statistical graphs that I can paginate to query the data stored in the intermediate media, without pulling the data from onedev every time.

  • Robin Shen commented 5 years ago

    To give an example: clone a linux repository takes 5 min on my machine, however getting added/removed lines of all commits takes 2 hours, and eats up to 6G mem since each file in history needs to be read and compared. Also it is not easy to do pagination as git commits are DAG.

  • Robin Shen commented 5 years ago

    Can the built-in contribution stats serve your purpose? An example: https://code.onedev.io/projects/onedev-server/stats/contribs (ignore the main graph, this bug will be fixed in next patch release)

    This data is accumulated as commits coming in, and can add a RESTful endpoint for programmatic access.

  • Robin Shen commented 5 years ago
  • Robin Shen changed title 5 years ago
    Previous Value Current Value
    code statistics api
    Get top contributors on master branch via RESTful api
  • OneDev changed state to 'Closed' 5 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev changed state to 'Released' 5 years ago
    Previous Value Current Value
    Closed
    Released
issue 1/1
Type
New Feature
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
OD-292
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover