Skip to content

feat: update UserEmploymentHistory to use ModernJobTitle FK#656

Open
mrigasiyer wants to merge 2 commits intohackforla:mainfrom
mrigasiyer:userEmploymentHistory
Open

feat: update UserEmploymentHistory to use ModernJobTitle FK#656
mrigasiyer wants to merge 2 commits intohackforla:mainfrom
mrigasiyer:userEmploymentHistory

Conversation

@mrigasiyer
Copy link
Copy Markdown
Member

Fixes #618

Replaces the title CharField with a modern_job_title ForeignKey referencing the ModernJobTitle table. Updates admin, serializer, and tests accordingly.

What changes did you make?

  • Replaced title CharField with modern_job_title ForeignKey referencing the ModernJobTitle table in UserEmploymentHistory
  • Updated admin.py, serializers.py, and conftest.py to reflect the new field
  • Generated migration 0054 to apply the schema change
  • Updated model and API tests to use modern_job_title

Why did you make the changes (we will use this info to test)?

  • The title field stored freeform text with no validation or consistency
  • Linking to ModernJobTitle enforces data integrity and standardizes job titles across the system
  • Aligns the table with the design outlined in issue Update Table: UserEmploymentHistory #618

@mrigasiyer mrigasiyer changed the title feat: update UserEmploymentHistory to use ModernJobTitle FK #618 feat: update UserEmploymentHistory to use ModernJobTitle FK Mar 25, 2026
  Replaces the title CharField with a modern_job_title ForeignKey
  referencing the ModernJobTitle table. Updates admin, serializer,
  and tests accordingly. Closes hackforla#618
@fyliu fyliu force-pushed the userEmploymentHistory branch from c384bda to e66d036 Compare March 26, 2026 04:44
@fyliu fyliu moved this to PR Needs review (automated column, do not place items here manually) in P: PD: Project Board Mar 26, 2026
@fyliu
Copy link
Copy Markdown
Member

fyliu commented Mar 26, 2026

I had to update the main branch to fix some formatting, so I rebased this branch to that. There's no code changes.

@fyliu fyliu moved this from PR Needs review (automated column, do not place items here manually) to 👀PR being reviewed in P: PD: Project Board Mar 26, 2026
@fyliu
Copy link
Copy Markdown
Member

fyliu commented Mar 26, 2026

The changes look great and works well! I just wanted to discuss another change related to this table at the meeting before approving.

@mrigasiyer
Copy link
Copy Markdown
Member Author

hi fang! I'm actually going to be out traveling for the next week and half so I won't be able to join a meeting for while. I'm open to discuss on slack. PM me at your best convenience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀PR being reviewed

Development

Successfully merging this pull request may close these issues.

Update Table: UserEmploymentHistory

2 participants