-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change recruitment status and priority to be fetched from backend #1604
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
//recruiter_priority: [number, string][]; | ||
//recruiter_status: [number, string][]; | ||
getRecruitmentApplicationStateChoices().then((response) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//recruiter_priority: [number, string][]; | |
//recruiter_status: [number, string][]; | |
getRecruitmentApplicationStateChoices().then((response) => { | |
getRecruitmentApplicationStateChoices().then((response) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -23,21 +24,6 @@ type RecruitmentApplicantsStatusProps = { | |||
onInterviewChange: () => void; | |||
}; | |||
|
|||
// TODO add backend to fetch these | |||
const priorityOptions: DropdownOption<number>[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uenig i at dette er en god løsning. Vi kommer sannsynligvis aldri til å endre recruitment status options, så da er det fullstendig unødvendig å fetche fra backend bare for å populate en dropdown. Det blir ekstremt mange unødvendige api-kall. Mye bedre å bare la det være hardkodet i frontend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, men er mer for sikkerhet at inputtene i frontend og backend matcher.
Er mer sikkert når vi har siden, siden de alternativene alltid vil være like
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
robin mener dette er data vi ikke trenger å hente
closes #1575