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

Task/DES-2623: Add Pydantic models and integration tests for entity metadata #1137

Merged
merged 45 commits into from
Feb 2, 2024

Conversation

jarosenb
Copy link
Member

@jarosenb jarosenb commented Dec 4, 2023

Overview:

Initializes the "V2" Projects API and adds Pydantic models for each project metadata schema. An integration test suite confirms that these models exhaustively represent the existing project metadata.

PR Status:

  • Ready.
  • Work in Progress.
  • Hold.

Related Jira tickets:

Summary of Changes:

  • Initial scaffolding for the V2 projects app.
  • Add Pydantic models for all existing metadata types.
  • Add an integration test suite for verifying the Pydantic models.

Testing Steps:

To run the metadata validations on your machine:

  1. from designsafe.apps.projects_v2.tests.schema_integration import validate_entities
  2. validate_entities()
    This will validate the schema against all base-level project entities. For other entity types, pass in the name and corresponding Pydantic model.

UI Photos:

Notes:

Jake Rosenberg and others added 26 commits December 6, 2023 09:49
@jarosenb jarosenb merged commit 367b663 into main Feb 2, 2024
3 checks passed
@jarosenb jarosenb deleted the task/DES-2623--pydantic-schemas-for-entities branch February 2, 2024 21:07
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.

1 participant