Skip to content

Update Table: User #429

Open
Open
@ExperimentsInHonesty

Description

@ExperimentsInHonesty

Overview

We need to update the User table model to include new fields and have the correct names for fields.

Details

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 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

Resources

FK status

Metadata

Metadata

Assignees

Type

No type

Projects

Status

🏗In progress-actively working

Relationships

None yet

Development

No branches or pull requests

Issue actions