-
Notifications
You must be signed in to change notification settings - Fork 0
add type-hints vacancy #312
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
base: dev
Are you sure you want to change the base?
Conversation
fix required skills
Присвоение одной специальности нескольким пользователям
Flexivanov237 pro 170
Лента, оценки и куча куча багов
added correct dates to feed
yakser
left a comment
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.
тесты упали
линтеры упали
куски кода какие то удалены, как будто случайно половину файлов поудалял
vacancy/filters.py
Outdated
|
|
||
|
|
||
| def project_id_filter(queryset, name, value): | ||
| def project_id_filter(queryset, name, value) -> queryset: |
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.
оно точно работает?
кажется тут должен быт QuerySet[Project] или что то такое
vacancy/filters.py
Outdated
| def __init__(self, *args, **kwargs): | ||
| """if is_active filter is not passed, default to True""" | ||
| super().__init__(*args, **kwargs) | ||
| super().init(*args, **kwargs) |
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.
почему так?
| class VacancyResponseDetailSerializer(serializers.ModelSerializer[VacancyResponse]): | ||
| user = UserDetailSerializer(many=False, read_only=True) | ||
| vacancy = VacancyListSerializer(many=False, read_only=True) | ||
| is_approved = serializers.BooleanField(read_only=True) |
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.
почему удалил кусок кода?
vacancy/serializers.py
Outdated
|
|
||
| class VacancyResponseAcceptSerializer(VacancyResponseDetailSerializer): | ||
| is_approved = serializers.BooleanField(required=True, read_only=False) | ||
| is_approve |
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.
что это вообще..
|
|
||
| class VacancyDetailSerializer( | ||
| serializers.ModelSerializer, RequiredSkillsWriteSerializerMixin | ||
| serializers.ModelSerializer, RequiredSkillsWriteSerializerMixin[Vacancy] |
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.
неправильный тайпхинт
vacancy/serializers.py
Outdated
|
|
||
|
|
||
| class RequiredSkillsWriteSerializerMixin(RequiredSkillsSerializerMixin): | ||
| class RequiredSkillsWriteSerializerMixin(RequiredSkillsSerializerMixin[Project]): |
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.
это миксин, тут не нужен тайпхинт потому что модели разные могут быть
vacancy/serializers.py
Outdated
|
|
||
| class ProjectVacancyListSerializer( | ||
| serializers.ModelSerializer, RequiredSkillsSerializerMixin | ||
| serializers.ModelSerializer, RequiredSkillsSerializerMixin[Project] |
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.
неправильно
vacancy/serializers.py
Outdated
|
|
||
| class ProjectVacancyCreateListSerializer( | ||
| serializers.ModelSerializer, RequiredSkillsWriteSerializerMixin | ||
| serializers.ModelSerializer, RequiredSkillsWriteSerializerMixin[Project] |
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.
неправильно
yakser
left a comment
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)
|
Пиши, пожалуйста, более осознанные названия комитов, они потом в общей истории будут |
No description provided.