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

Epic: Audit differences between code and documented field names #432

Open Neecolaa opened 3 weeks ago

Neecolaa commented 3 weeks ago

Overview

There are field names in the code that do not currently match our documentation. We need to go through the existing django models, identify the mismatches, and update the code or documentation to comply with our desired naming conventions.

Action Items

Resources/Instructions

1.01 Code locations

1.02 People Depot Resources wiki page for links

fyliu commented 3 weeks ago

I want to note that when we name a ForeignKey field something like "user", Django will create a database column called "user_id". It's Django's convention to drop the "_id" from the end when converting from db to Django code.

These screenshots illustrate how ForeignKey fields in Django actually turn into db columns with "_id" endings Image Image

I can find a link to a better description of this when I'm on a computer.

Neecolaa commented 1 week ago

event has a field called brigade_id that's commented out, but will need to be changed to org_id

shmonks commented 1 week ago

Please provide update

  1. Progress: "What is the current status of your project? What have you completed and what is left to do?"
  2. Blockers: "Difficulties or errors encountered."
  3. Availability: "How much time will you have this week to work on this issue?"
  4. ETA: "When do you expect this issue to be completed?"
  5. Pictures or links* (if necessary): "Add any pictures or links that will help illustrate what you are working on."