Skip to content

Remove profileid Dependency#53

Open
JRS296 wants to merge 4 commits intoqafrom
remove-profileid
Open

Remove profileid Dependency#53
JRS296 wants to merge 4 commits intoqafrom
remove-profileid

Conversation

@JRS296
Copy link
Copy Markdown
Member

@JRS296 JRS296 commented Mar 26, 2026

  • Removed Profile Dependency from Dataforge
  • Added migration - Inclusion of support for profile ID to maintain GitHub Username (username) column
  • Removed unused ProfileId based controller routes
  • Removed unnecessary Health Endpoints

@JRS296 JRS296 self-assigned this Mar 26, 2026
@JRS296
Copy link
Copy Markdown
Member Author

JRS296 commented Mar 26, 2026

Resolves #52

"""Get all work experiences with locations by GitHub username"""
profile_service = ProfileService(self.session)
profile_id = profile_service.get_profile_id_by_github_username(github_username)
return self.get_work_experiences_by_profile_with_locations(profile_id) No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit longwinded right? We should just keep user name in WorkEx, Education so on

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get it. You mean it's unnecessray to have an endpoint to include complete location details of the work experience?

Comment on lines -43 to -51
@router.get("/profile/{profile_id}", response_model=List[ReadWorkExperience])
def get_work_experiences_by_profile_id(profile_id: UUID, session: Session = Depends(get_session)):
service = WorkExperienceService(session)
logger.info(f"Fetching Work Experiences for profile ID: {profile_id}")
work_experiences = service.get_work_experiences_by_profile_id(profile_id)
logger.info(f"Returned {len(work_experiences)} work experiences for profile {profile_id}")
return work_experiences


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im assuming since there was no change in the path being called in the Dijkstra web PR that this API was never used?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In an earlier version it was, but after we moved to TanStack, we moved to using GitHub Username as our primary means for calling the Backend

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants