Skip to content

Update Table: project #607

@Neecolaa

Description

@Neecolaa

Overview

We need to update the project table model to have the correct fields.

Details

Action Items

  • Update existing Django model

  • In the files indicated by Resource 1.01, Change the following items in the code

Current name in code Updated Name Updated Type (may already be this type) FK Table FK table Issue(s)
github_primary_repo_id github_primary_repo_id int project_url1 #41
github_org_id github_org_id int project_url2 #41
google_drive_id google_drive_id int project_url3 #41
completed_at completed_on date
  • Add the following items in the code
Name Type FK Table FK Table Issue(s)
project_leads int[] (user_id)
  • Write a test for the new relationships this model will have with other models (e.g., creating a user and assigning them a set of permissions on a project) if any.
  • Update API end point
  • Update API unit tests
  • generate a schema table description (see resources 1.04), post it in a comment below, and add a link to it in the Update Schema dependency issue
  • Document the endpoint in ReDocs (see resources 1.05)

FK status

After PR has been approved

Resources

Footnotes

  1. github_primary_repo_id is no longer the repo id itself, will now be a foreign key to a row in project_url that corresponds to the primary repo

  2. github_org_id - int - no longer the org id itself, will now be a foreign key to a row in project_url that corresponds to the org repo link

  3. google_drive_id - int - no longer the google drive id itself, will now be a foreign key to a row in project_url that corresponds to the google drive

Metadata

Metadata

Assignees

No one assigned

    Labels

    PII: FALSETable or function does not have or use Personally Identifiable Information (PII)complexity: smallSmall changes with all steps laid out in detailfeature: update tablep-feature: projectsproject and projectsrole: back ends: CTJstakeholder: Civic Tech Jobss: VRMSstakeholder: VRMSs: hackforla.orgstakeholder: hackforla.org websitesize: 0.5ptCan be done in 2-3 hours

    Type

    No type

    Projects

    Status

    📋Prioritized Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions