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

Add migration file to populate total tasks for old projects if null #2246

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

Anuj-Gupta4
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation
  • πŸ§‘β€πŸ’» Refactor
  • βœ… Test
  • πŸ€– Build or CI
  • ❓ Other (please specify)

Related Issue

Describe this PR

Added a python file that can be manually run to fix total tasks missing from some projects.

Usage

docker compose build api
docker compose up -d
docker compose exec api bash
cd migrations
python populate_total_tasks.py

@github-actions github-actions bot added bug Something isn't working backend Related to backend code migration Contains a DB migration labels Mar 4, 2025
@Anuj-Gupta4 Anuj-Gupta4 deployed to 2246/merge March 4, 2025 10:15 — with GitHub Actions Active
Copy link
Member

@spwoodcock spwoodcock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might have been better as an SQL migration, to save it having to be run manually, but otherwise it looks good for what we need πŸ™Œ

@spwoodcock spwoodcock merged commit 2ec6be4 into development Mar 4, 2025
5 of 6 checks passed
@spwoodcock spwoodcock deleted the fix/add-total-task-to-old-projects branch March 4, 2025 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code bug Something isn't working migration Contains a DB migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants