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

Create Table: project #16

Closed
49 of 51 tasks
ExperimentsInHonesty opened this issue May 26, 2022 · 0 comments · Fixed by #84
Closed
49 of 51 tasks

Create Table: project #16

ExperimentsInHonesty opened this issue May 26, 2022 · 0 comments · Fixed by #84
Assignees
Labels
complexity: missing feature: table creation p-feature: projects project and projects PII: FALSE Table or function does not have or use Personally Identifiable Information (PII) role: back end s: CTJ stakeholder: Civic Tech Jobs s: hackforla.org stakeholder: hackforla.org website s: VRMS stakeholder: VRMS size: 2pt Can be done in 7-12 hours

Comments

@ExperimentsInHonesty
Copy link
Member

ExperimentsInHonesty commented May 26, 2022

Overview

We need to create the Project table so that we can update a shared data store across hackforla.org, vrms, civictechjobs, and tables (onboarding) project.

Details

A table and a model are the same thing

Action Items

  • identify if table has a description (see spreadsheet under Resources)
    • if not, reach out to PD leads
  • identify and document (below) what other tables are associated (see ERD under Resources)
  • create a single model in Django (defining schema)
  • Write a test for the relationships this model will have with other models (e.g., creating a user and assigning them a set of permissions on a project). - no relationships yet
  • Write an API end point
  • write API unit tests
  • Document the endpoint in Swagger

Resources/Instructions

Items to document (referenced above)

Description

  • List of projects

Data Fields

  1. Copied from spreadsheet and checked off according to ERD. Data fields are bolded and relation fields are not.

    • (PK) id - Int - Record Id
    • name - String
    • description - String
    • created_at - timestamp
    • updated_at - timestamp
    • completed_at - timestamp
    • github_org_id - char(8) - Record Id
    • github_primary_repo_id - char(9) - Record Id
    • github_primary_url - varchar()
    • (FK) current_status - Int (status ID)
    • hide - Boolean
    • (FK) location - Int (location ID)
    • slack_url - URLString
    • google_drive_url - URLString
    • google_drive_id - char(?) - Record Id
    • hfla_website_url - stringurl
    • leads - int[] (user_id)
    • (FK) leadership_type - int (leadershipType id)
    • image_logo - UrlString - 600x400 image for the project cards
    • image_hero - UrlString - Image that appears on the project page
    • image_icon - UrlString - tiny square image for linking to the project from other sites
    • readme_url - url varchar
    • wiki_url - url varchar
  2. In ERD only - None

Associated Tables

  1. Copied from spreadsheet and checked off according to ERD

    • accomplishment (one-to-many)
    • cancelled_event (one-to-many)
    • event (one-to-many)
    • event_history (one-to-many)
    • faq_viewed (one-to-many)
    • permission (one-to-many)
    • permission_history (one-to-many)
    • project_language_xref (one-to-many)
    • project_partner_xref (one-to-many)
    • project_program_area_xref (one-to-many)
    • project_sdg_xref (one-to-many)
    • project_status_history (one-to-many)
    • project_technology_xref (one-to-many)
    • project_url (one-to-many)
    • recurring_event (one-to-many)
    • user_check (one-to-many) - Missing line in ERD
    • leadership_type (many-to-one)
    • location (many-to-one)
    • project_status (many-to-one)
    • win (many-to-many array of IDs)
  2. In ERD only - None

Swagger Endpoint Link

@ExperimentsInHonesty ExperimentsInHonesty added this to the 01 - Update project data milestone May 26, 2022
@fyliu fyliu self-assigned this Aug 8, 2022
@fyliu fyliu mentioned this issue Aug 25, 2022
39 tasks
@Neecolaa Neecolaa mentioned this issue Sep 3, 2022
21 tasks
@fyliu fyliu modified the milestones: 01 - Update project data, All tables added Sep 25, 2022
@fyliu fyliu closed this as completed in #84 Oct 5, 2022
@ExperimentsInHonesty ExperimentsInHonesty added p-feature: projects project and projects s: CTJ stakeholder: Civic Tech Jobs s: VRMS stakeholder: VRMS s: hackforla.org stakeholder: hackforla.org website and removed MVP labels Mar 4, 2023
@ExperimentsInHonesty ExperimentsInHonesty added the PII: FALSE Table or function does not have or use Personally Identifiable Information (PII) label May 4, 2023
@Neecolaa Neecolaa mentioned this issue Sep 1, 2023
23 tasks
@Neecolaa Neecolaa mentioned this issue Nov 30, 2023
13 tasks
@shmonks shmonks moved this to Done in P: PD: Project Board Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: missing feature: table creation p-feature: projects project and projects PII: FALSE Table or function does not have or use Personally Identifiable Information (PII) role: back end s: CTJ stakeholder: Civic Tech Jobs s: hackforla.org stakeholder: hackforla.org website s: VRMS stakeholder: VRMS size: 2pt Can be done in 7-12 hours
Projects
Status: ✅Done
Development

Successfully merging a pull request may close this issue.

2 participants