Rename project date fields: close_date → winners_announced_date, forecasting_end_date → close_date - #4741
Conversation
…ecasting_end_date -> close_date The previous naming was confusing because the field labelled "Closes" on the front end was named `forecasting_end_date` in the backend, while `close_date` actually referred to the wrap-up / prize payout date displayed as "Winners announced date". This commit aligns the backend with the user-facing language: - close_date (deadline / prizes paid) -> winners_announced_date - forecasting_end_date (last scored question close) -> close_date - Improved help_text on both fields - Renamed move_project_forecasting_end_date -> move_project_close_date - Updated all backend references, frontend types/components, mock data, and i18n placeholder name (English copy fully updated; other locales updated to use the new placeholder so they remain functional pending translation refresh). Includes migration 0024 that swaps the two columns via a temporary name. Refs #4394 Co-authored-by: Sylvain <SylvainChevalier@users.noreply.github.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Cleanup: Preview Environment Removed (Stale)This preview environment was fully removed because the PR was marked as Stale (no activity detected).
Push a new commit to this PR to recreate the preview environment. Automated cleanup by weekly maintenance |
|
This needs to be carefully reviewed & tested. Also, we should keep old field ref in serializers for backward compatibility in case someone is using our projects API |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will not be closed automatically, but please consider updating it or closing it if it is no longer relevant. |
|
@claude unit tests fail |
|
Claude finished @SylvainChevalier's task in 18m 4s —— View job Fixed failing checksCommit: The failing Run Unit Tests workflow had 3 non-test failures — pytest itself was green (722 passed). Root causes and fixes:
Please re-run the workflow. If Ruff still complains about a formatting detail on the 3 Python files, ping me and I'll iterate — my hand-format was a best-guess since I couldn't run Ruff locally here. Also — @hlbmtc's earlier note about backward-compat aliases for |
- Reformat 3 frontend files with Prettier - Reformat 3 Python files to match Ruff/Black style after the rename - Add scoring/migrations/0022 for the Leaderboard.finalize_time help_text change Co-authored-by: Sylvain <74110469+SylvainChevalier@users.noreply.github.com>
…ame-project-fields-date-fields # Conflicts: # front_end/src/app/(main)/(tournaments)/tournaments/components/tournaments_grid/live_tournament_card.tsx # front_end/src/components/posts_feed/feed_tournament_tile.tsx
|
I think the current state works (I resolved merge conflicts and reviewed). But the main point I'd like to make is that with the two changes:
We've introduced a very real possibility that someone will read the new |
Closes #4394.
Summary
Align backend naming with user-facing labels:
close_date(deadline / prizes paid) →winners_announced_dateforecasting_end_date(last scored question close) →close_datehelp_texton both fields per @skmmcj's wordingmove_project_forecasting_end_date→move_project_close_date0024swaps the two columns via a temporary nameTest plan
manage.py migrateapplies cleanly on a fresh DB and on a DB migrated up to0023winners_announced_date)Generated with Claude Code