Skip to content

Project detail statistics: support multiple statistics providers #12789

@jayaddison

Description

@jayaddison

What's the problem this feature will solve?
The project detail page displays release-related statistics which can be useful for consumers who would like to gauge project popularity and community size.

Currently, GitHub is the sole supported statistics provider, but there are a number of other source code forges that host FOSS projects and provide statistical information about them.

image

Describe the solution you'd like
Extend the stats URL detection logic to support multiple source control forges.

Additional context
Different forges are likely to use different naming terminology for their statistics; PyPi could choose to decide upon a standard naming format, and may omit statistical fields from display if they are not relevant or available from a provider.

Each additional provider would likely require an associated connect-src entry for the frontend application's content security policy.

This repository's test data file (dev/example.sql.xz) could provide a way to help figure out potential providers to support.

Relates to #4384.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UX/UIdesign, user experience, user interfacefeature requesthelp neededWe'd love volunteers to advise on or help fix/implement this.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions