Skip to content
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

Replace recruitment status values with constants #1285

Open
robines opened this issue Aug 22, 2024 · 0 comments
Open

Replace recruitment status values with constants #1285

robines opened this issue Aug 22, 2024 · 0 comments
Labels
priority: high recruitment Task related to the recruitment system

Comments

@robines
Copy link
Member

robines commented Aug 22, 2024

Ref: #1212 (comment)

So instead of

 recruitmentApplicant.recruiter_status == 0 &&

We should have something like

 recruitmentApplicant.recruiter_status == RECRUITMENT_STATUS_NOT_SET &&

Constants are already defined in backend, need to bring them to the frontend:

class RecruitmentPriorityChoices(models.IntegerChoices):
    NOT_SET = 0, _('Not Set')
    RESERVE = 1, _('Reserve')
    WANTED = 2, _('Wanted')
    NOT_WANTED = 3, _('Not Wanted')


class RecruitmentStatusChoices(models.IntegerChoices):
    NOT_SET = 0, _('Not Set')
    CALLED_AND_ACCEPTED = 1, _('Called and Accepted')
    CALLED_AND_REJECTED = 2, _('Called and Rejected')
    REJECTION = 3, _('Rejection')
    AUTOMATIC_REJECTION = 4, _('Automatic Rejection')
@Snorre98 Snorre98 added priority: high recruitment Task related to the recruitment system labels Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high recruitment Task related to the recruitment system
Projects
None yet
Development

No branches or pull requests

2 participants