Skip to content

fix(models): preserve estimated_hours field during seeding and in project serializer - #1476

Open
nyxsky404 wants to merge 1 commit into
komalharshita:mainfrom
nyxsky404:issue-1454
Open

fix(models): preserve estimated_hours field during seeding and in project serializer#1476
nyxsky404 wants to merge 1 commit into
komalharshita:mainfrom
nyxsky404:issue-1454

Conversation

@nyxsky404

Copy link
Copy Markdown

Description

Preserved estimated_hours from projects.json in the Project database model schema, seed handlers (src/seed_db.py and src/app.py), and to_dict() serializer so that learning-path analytics endpoints can calculate estimated time, velocity, and completion percentages.

Changes Made

  • Added estimated_hours column to Project model in src/models.py.
  • Included estimated_hours field in Project.to_dict() serializer.
  • Updated seed_database() in src/seed_db.py, auto-seeding in src/app.py, and test context in tests/conftest.py to populate estimated_hours.
  • Added unit test in tests/test_project_estimated_hours.py.

Fixes #1454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Learning-path analytics discard every project estimate during seeding

1 participant