Repository navigation
Projects go Past after a year of inactivity; rename to Past Projects (#1473) - #1475
Open
jonfroehlich wants to merge 2 commits into
Open
jonfroehlich wants to merge 2 commits into
jonfroehlich wants to merge 2 commits into
Conversation
has_ended(), the projects listing, and the landing page each decided "active" differently. A project ending today was Completed on the listing but Active on its page, and one with a future end date was missing from the landing page. All three now use end_date < localdate() for "ended" (a project is active through its end date, matching Position), and has_ended() uses the site's time zone instead of the container clock. Regression test: website/tests/test_project_status.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A project with no end_date now shows as Past once it has had no new publication, talk, poster, video, or tagged news item for 365 days (start_date counts as activity, so new projects get a grace period). An explicit end_date still wins either way, and a new keep_active flag keeps long-running projects such as Project Sidewalk Active. The status is derived on the server (ProjectQuerySet.active()/past() and Project.is_past(), kept in sync by tests), never written: end_date is not auto-set because saving it closes every open ProjectRole. has_ended() keeps meaning "explicit end_date passed" for that reason. - Projects listing, landing page, project page chip, "Former" prefixes, date ranges (last-activity year instead of "Present"), and the people view use the derived status. - "Completed Projects" is renamed "Past Projects"; element ids unchanged. - Admin: Keep active field and filter, a Status column, and the Active/Past changelist filter use the derived status. - Data Health: new "Projects past by inactivity" check; the leadership check no longer flags dormant projects for having no active PI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Fixes #1473. Stacked on #1472: this branch contains that commit, so merge #1472 first, and this diff then shrinks to its own commit.
Rule (server-side, never written to the DB)
A project is Past when its
end_datehas passed. Otherwise, it is Past ifkeep_activeis off and its last activity is more than 365 days ago. Last activity = newest publication / talk / poster / video / tagged news date, orstart_date(a grace period for new projects). An explicit futureend_datekeeps a project Active. A project with no signal at all stays Active and shows up in Data Health.ProjectQuerySet.with_activity()/active()/past()andProject.is_past()implement the rule. A test checks that the querysets and the model method agree on every case.end_dateis not auto-set. Saving it closes every open ProjectRole, and we'd lose the difference between an editor's date and a guess.has_ended()still means "explicit end date passed", so role auto-closing doesn't fire on inactivity (tested).Changes
keep_activefield ("Keep active (long-running project)"); help text onend_dateexplaining the rule. A migration is generated at container start.#completed-projects-section, etc.) are unchanged, so anchors and the JS keep working.?active_project_status=Archivedlinks still work).After deploy
Tick Keep active on Project Sidewalk, then review the new Data Health check. For each project: set a real end date, or tick Keep active.
Testing
website/tests/test_project_activity.py:keep_active;test_project_page.py,test_project.py,test_project_status.py. Full suite passes locally (845 tests).🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5