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

feat: add ContributorStats admin interface and template for displaying contributor statistics #3211

Merged

Conversation

JisanAR03
Copy link
Contributor

This pull request introduces a new feature for displaying contributor statistics in the admin interface and project detail pages. It includes changes to the Django admin configuration, templates, and views to support this feature.

Key changes include:

Admin Interface Enhancements:

  • Added ContributorStats to the list of models imported and registered in the admin interface (website/admin.py). [1] [2]
  • Created a new ContributorStatsAdmin class to manage the display and search fields for contributor statistics in the admin interface (website/admin.py).

Template Additions:

  • Added a new template for displaying contributor statistics in a table format (website/templates/projects/_contributor_stats_table.html).
  • Integrated the contributor statistics table into the project detail page, including a section for filtering by time period and pagination controls (website/templates/projects/repo_detail.html). [1] [2] [3]

View Updates:

  • Updated the project views to include necessary imports for handling contributor statistics and pagination (website/views/project.py). [1] [2] [3]

These changes collectively enhance the project's ability to display detailed contributor statistics, making it easier for users to analyze contributions over different periods.

@DonnieBLT, could you please review this PR? It aims to refresh the contributor statistics in a more synchronized and efficient way. I would greatly appreciate any feedback or suggestions for improvement that you might have.

another step for fix #2972

@JisanAR03 JisanAR03 requested a review from DonnieBLT January 9, 2025 10:50
@OWASP-BLT OWASP-BLT deleted a comment from sentry-io bot Jan 9, 2025
@DonnieBLT DonnieBLT merged commit d82f31d into OWASP-BLT:main Jan 9, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create a csv to add all owasp projects to /projects
2 participants