Open
Description
Overview
We need to update the User table model to include new fields and have the correct names for fields.
Details
- The initial model issue: Create Table: User #15
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 Issues |
---|---|---|---|---|
current_job_title | job_title_current_intake | varchar | ||
email_intake | EmailField | |||
first_name | name_first | varchar | ||
gmail | email_gmail | EmailField | ||
is_active | user_status_id | int | user_status_type | #35 |
last_name | name_last | varchar | ||
preferred_email | email_preferred | EmailField | ||
target_job_title | job_title_target_intake | varchar |
- Add the following items in the code
- [ ]
Name | Type | FK Table | FK table Issue(s) |
---|---|---|---|
practice_area_primary | int (practice_area_primary) | practice_area | #63 |
practice_area_secondary | int[] (practice_area_secondary) | practice_area | #63 |
practice_area_target_intake | int[] (practice_area_target_intake) | practice_area | #63 |
referred_by | int | referrer | #68 |
email_cognito | EmailField |
- 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 definition and post it in a comment below and add a link to it in the Update Schema dependency issue.
- For each of the FK Above if the FK table has not yet been created (i.e, the issue is still open), you will need to
- comment out the code after you create it
- add an action item on the open issue to uncomment the code line you commented out when that issue's table is created.
- Provide your file and line number as a permalink under resources in that issue
- Document the endpoint in ReDocs
After PR has been approved
- Release the dependency and move the issue out of the icebox for Update Schema: User model #436
Resources
- 1.01 Code locations
- 1.02 People Depot Resources wiki page for links
- ERD
- Table and Field Definitions
- API Endpoint
- 1.03 Spreadsheet, User view filter
FK status
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🏗In progress-actively working