-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
704 possibility to access interview notes from overview page3 (#986)
* Edit interview notes * Add putRecruitmentAdmissionInterview to edit interview in backend * Add help functions and util functions * Make putRecruitmentAdmissionInterview allow numbers * Edit comment on util func filterRecruitmentAdmission --------- Co-authored-by: Robin <[email protected]>
- Loading branch information
Showing
7 changed files
with
88 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 48 additions & 11 deletions
59
frontend/src/PagesAdmin/InterviewNotesAdminPage/InterviewNotesAdminPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { RecruitmentAdmissionDto } from '~/dto'; | ||
|
||
/** Filtrer recruitmentadmission based on positionId, InterviewId and interview time */ | ||
export function filterRecruitmentAdmission( | ||
recruitmentAdmissions: RecruitmentAdmissionDto[], | ||
positionId: string, | ||
interviewId: string, | ||
): RecruitmentAdmissionDto[] { | ||
return recruitmentAdmissions.filter( | ||
(admission) => | ||
admission.recruitment_position && | ||
admission.recruitment_position.toString() === positionId && | ||
admission.interview.id.toString() === interviewId && | ||
admission.interview.interview_time !== null, | ||
); | ||
} | ||
|
||
export function getNameUser(admission: RecruitmentAdmissionDto): string { | ||
return admission.user.first_name ? admission.user.first_name + ' ' + admission.user.last_name : ''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters