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: recurring_event #14

Closed
32 of 35 tasks
ExperimentsInHonesty opened this issue May 26, 2022 · 0 comments · Fixed by #85
Closed
32 of 35 tasks

Create Table: recurring_event #14

ExperimentsInHonesty opened this issue May 26, 2022 · 0 comments · Fixed by #85
Assignees
Labels
complexity: missing feature: table creation p-feature: events PII: TRUE Table or function has or uses 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 recurring_event table so that we can connect it with projects table data in the CMS

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 the data fields are and make sure the ERD and spreadsheets match (see Resources)
  • identify and document (below) what other tables are associated and make sure the ERD and spreadsheets match (see 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).
  • Write an API end point
  • write API unit tests
  • Document the endpoint in Swagger

Resources/Instructions

Items to document (referenced above)

Description

  • Recurring events

Data Fields

  1. Copied from spreadsheet and checked off according to ERD. Data fields are bolded and relation fields are not. (unchecked items indicate a mismatch between ERD and spreadsheet, which requires a review)

    • (PK) id - int - Record Id
    • (FK) project_id - int - Record Id
    • name - varchar
    • (FK) location_id - int - Record Id
    • (FK) event_type_id - int - Record Id
    • (FK) brigade_id - int - Record Id
    • (FK) day_of_week - varchar - enumerated field
    • start_time - time
    • duration_in_min - int
    • created - timestamp
    • updated - timestamp
    • video_conference_url - urlstring
    • must_roles - int[ ] (roleIDs)
    • should_roles - int[ ] (roleIDs)
    • could_roles - int[ ] (roleIDs)
    • additional_info - varchar()
    • (FK) frequency_id - int
  2. In ERD only (having items here indicates a mismatch, which requires a review)

    • None

Associated Tables

  1. Copied from spreadsheet and checked off according to ERD (unchecked items indicate a mismatch between ERD and spreadsheet, which requires a review)

    • brigade (many-to-one)
    • cancelled_event (one-to-many)
    • event (one-to-many)
    • event_history (one-to-many)
    • event_type (many-to-one)
    • frequency (many-to-one) table removed
    • location (many-to-one)
    • project (many-to-one)
    • user (many-to-many array of ids) - 8/10 Nicole confirmed that the ERD relation to role is the more updated one
  2. In ERD only (having items here indicates a mismatch, which requires a review)

    • role (many-to-many array of ids)

Swagger Endpoint Link

@ExperimentsInHonesty ExperimentsInHonesty changed the title Create Table: [Table Name] Create Table: recurring_event May 26, 2022
@ExperimentsInHonesty ExperimentsInHonesty added this to the 01 - Update project data milestone May 26, 2022
@fyliu fyliu self-assigned this Aug 9, 2022
@fyliu fyliu pinned this issue Aug 9, 2022
@fyliu fyliu mentioned this issue Aug 13, 2022
6 tasks
@fyliu fyliu added the size: 2pt Can be done in 7-12 hours label Aug 17, 2022
@fyliu fyliu mentioned this issue Aug 25, 2022
39 tasks
@fyliu fyliu unpinned this issue Aug 26, 2022
@fyliu fyliu modified the milestones: 01 - Update project data, All tables added Sep 25, 2022
@cnk cnk closed this as completed in #85 Oct 6, 2022
@ExperimentsInHonesty ExperimentsInHonesty added p-feature: events 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: TRUE Table or function has or uses Personally Identifiable Information (PII) label May 4, 2023
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: events PII: TRUE Table or function has or uses 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