Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Handle statistics cache misses #6

@nilbus

Description

@nilbus

See https://developer.github.com/v3/repos/statistics/#a-word-about-caching

This is causing commit counts to come back as 0.

@api.contributors_stats(repo.full_name)

This will return nil for any repository where stats have been invalidated or were never generated.

  • Retry, either in the same request or in a separate one, depending how long it usually takes to generate.
  • If not waiting for it, show a loading indicator for these stats when they are missing (contribution percentage, commit counts).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions