Skip to content

Align Project model with metadata schema (remove funder)#736

Open
coderTanisha22 wants to merge 1 commit intoaiondemand:developfrom
coderTanisha22:fix-project-model-schema-clean
Open

Align Project model with metadata schema (remove funder)#736
coderTanisha22 wants to merge 1 commit intoaiondemand:developfrom
coderTanisha22:fix-project-model-schema-clean

Conversation

@coderTanisha22
Copy link

Change(s)

Change Type: Removed / Updated
Change Category: Internal

Changelog Entry:
Align the Project model with the metadata schema.

  • Removed the 'funder' field from the 'Project' model and its 'RelationshipConfig', as it is not part of the metadata schema.
  • Ensured consistent use of 'total_cost_euros' (instead of deprecated 'total_cost_euro').
  • Updated project router tests to reflect the removal of the 'funder' field.

How to Test

  1. Navigate to the 'src' directory

  2. Run project-specific tests:
    pytest -q tests/routers/resource_routers/test_router_project.py

  3. (Optional) Run broader router tests:
    pytest -q tests/routers/resource_routers

All tests should pass successfully.


Checklist

  • Tests have been added or updated to reflect the changes
  • Documentation has not been updated (not required for this change)
  • A self-review has been conducted checking:
    • No unintended changes have been committed
    • The changes in isolation seem reasonable
  • All CI checks pass (or locally verified)
  • The PR title matches the changelog entry's one-line description

Related Issues

Closes #492

@coderTanisha22
Copy link
Author

@PGijsbers Hi! I've addressed issue #492 with this PR. Would appreciate a review when you have time. Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Project model

1 participant