hackforla / peopledepot

A project to setup a datastore for people and projects at HackforLA. The link below takes you to the code documentation
https://hackforla.github.io/peopledepot/
GNU General Public License v2.0
7 stars 26 forks source link

Create Table: project_status (used to say project_program_area_status) #46

Open Neecolaa opened 2 years ago

Neecolaa commented 2 years ago

Overview

We need to create the project_status 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

Post issue tasks

Resources/Instructions

Description

Dictionary of status options for project and program_area

Data Fields

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

    • [x] (PK) id - int - Record Id
    • [x] name - varchar
    • [x] description - varchar
  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)

    • [x] project (one-to-many) #16
    • [x] project_status_history (one-to-many) #67
  2. In ERD only (having items here indicates a mismatch, which requires a review)

    • None
ExperimentsInHonesty commented 1 year ago

remove program area from this table. It should be projects only

Neecolaa commented 9 months ago

DB Architect to-do: Change name from project_program_area_status to project_status

Neecolaa commented 9 months ago

DB Architect to-do:

fyliu commented 5 months ago

Need to have initial data in the spreadsheet for project_status table

ExperimentsInHonesty commented 5 months ago

Initial data is Active On Hold Completed Closed

There is also another bit of information and I don't know exactly where it goes right at this min. But it's a visible: hidden. That is in addition to the status above. e.g., a project that is on-hold and hidden would not show up on the website. This is probably on the project table.

dmartin4820 commented 1 week ago

Progress: Got my branch setup locally and on my remote fork of the main repo. I just need some fairly easy questions answered and I'll be able to move forward. Blockers:

Availability: Should have time this weekend, and potentially time in the evenings (i.e. 7pm to 9pm). ETA: Early next week or end of this weekend.

fyliu commented 1 week ago

I would confirm with @Neecolaa since it has to do with the database design and since she created this issue and made the change I refer to in the next sentence. From the issue history, it looks like the original issue had to do with project and program_area, and then this line was inadvertently left over when the issue was changed to project_status.

  • [ ] The issue also requires me to create another issue to update the current_status_id foreign key field to project_status. It should be possible to do this with the PR that I make for this issue by removing the line here. Should I still create an issue, or make the change I suggest in the PR for this issue?

You're right. It's easier to just do that in this issue. Please update that task to do that.

Neecolaa commented 1 week ago

Fang's correct: when I updated the ERD and spreadsheet I neglected to remove the connection from this issue as well. I've done that now. Thank you for double checking that!