Giter Site home page Giter Site logo

Comments (2)

brillout avatar brillout commented on June 18, 2024

We can skip the "commit days" idea for now, it's not that big of an improvement. This means we can skip fetching the commits of other users.

For the time badge we only need the first and last user commit. We don't need the user commits in the middle.

For the user contribs graph we only need the user commits, not all commits. If the user has too many commits then maybe we could linearly extrapolate between the first user commit and the last user commit.

Also if we skip the commit days idea then we can use endpoints like stats/contributors that give coarser info. (This one doesn't seem to have an option to filter by author though, so it's not that helpful for us. But maybe there are some GraphQL endpoints that would help.)

From my side, the only feature that would sadden me if we don't implement it, is the user contribs graph. The rest I can live fine without.

But anyways, we can always work on something else. There are many things we can do without extra data. (E.g. hall of fame, medals summary like on military vests)

So to sum up: Can we get the date of the first user commit and the date of the last user commit? (I checked on api v3 and it seems that we cannot invert the sorting order. But I vaguely remember that it's possible on the graphql api. Didn't check that out yet.)

from db.

lourot avatar lourot commented on June 18, 2024

@brillout FYI here is how a "commit list file" looks like when it's truncated: https://s3.amazonaws.com/ghuser/data/repoCommits/torvalds/linux.json

{
  "contributors": {
    "torvalds": {
      "2018-09-16": 2,
      "2018-09-15": 7,
...
    }
  },
  "last_fetched_commit": {
    "sha": "7876320f88802b22d4e2daf7eb027dd14175a0f8",
    "date": "2018-09-16T18:52:37Z"
  },
  "ghuser_truncated": true
}

from db.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.