issue resolve - showing new projects dynamically#199
Merged
lokesh-wagh merged 2 commits intoContriHUB:mainfrom Oct 2, 2025
Merged
issue resolve - showing new projects dynamically#199lokesh-wagh merged 2 commits intoContriHUB:mainfrom
lokesh-wagh merged 2 commits intoContriHUB:mainfrom
Conversation
Contributor
|
how are you differentiating from the repos present in last year's contrihub from the current one |
Contributor
Author
|
sir in the project/views.py file in line 36-67 we firstly pull repo["pushed_at"] and convert into date time format then captures current time, then it is defined in the tokens in 3-4 ways it checks within 365days of interval from the current time whether an repo's year is in currentyear-1 or not, then flag repo as current if it is. |
lokesh-wagh
approved these changes
Oct 2, 2025
Contributor
|
create a new PR as the dashboard crashes whenever it is opened after merging your PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replaced the static “Projects in 2024” grid with a dynamic {% for project %} loop so the UI renders whatever the backend passes in.
Extended populate_projects to pull live repo metadata from the ContriHUB org, parse push timestamps, filter by recent activity/name heuristics, and fall back to the legacy allowlist only when nothing qualifies.
Stored extra GitHub data (description, homepage, topics, pushed_at) on each project and surfaced them in the card layout.
Related Issue
Fixes #194
Type of change
New feature (non-breaking change which adds functionality)
Motivation and Context
The projects page was frozen with hard-coded 2024 entries. These changes keep the page current by syncing from GitHub and rendering the data dynamically without manual edits each season.
How Has This Been Tested?

python manage.py migrate (SQLite override)
python manage.py shell → Client().login() → /project/populate_projects/ and /project/; verified HTTP 200 and non-zero is_current count.
python manage.py runserver → manual smoke test at http://127.0.0.1:8000/project/ confirming dynamic cards render with description/topics/homepage/last-updated details.
Screenshots (if appropriate):
Checklist:
✅ I have registered myself at Contrihub website.
✅ My code follows the code style of this project.
I have commented my code, particularly in hard-to-understand areas
✅ My changes generate no new warnings
My change requires a change to the documentation.
I have updated the documentation accordingly.
✅ I have read the CONTRIBUTING document.
✅ Any dependent changes have been merged and published in downstream modules
I have added tests to cover my changes.
✅ All new and existing tests passed.
Test Configuration:
Firmware version: N/A
Hardware: HP Victus 16
Toolchain: Python 3.9.23 / pip 25.2
SDK: Django 4.1