Skip to content

DEV: fix vacancy catalog visibility and timestamps - #715

Merged
TThanos3000 merged 1 commit into
devfrom
feature/dev-vacancy-catalog-timestamps
Aug 28, 2026
Merged

DEV: fix vacancy catalog visibility and timestamps#715
TThanos3000 merged 1 commit into
devfrom
feature/dev-vacancy-catalog-timestamps

Conversation

@TThanos3000

@TThanos3000 TThanos3000 commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Что изменено

  • общий GET /vacancies/ ограничен активными вакансиями опубликованных публичных проектов;
  • сохранено текущее ограничение каталога в 90 дней;
  • project_id сохраняет management-сценарий: leader проекта, staff и superuser могут запрашивать закрытые вакансии проекта, а outsider/anonymous не получают draft/private/inactive данные;
  • scalar-фильтры project_id, role_contains, salary_min и salary_max используют полное значение; default is_active=true добавляется через безопасную копию QueryDict;
  • list contract дополнен read-only полями datetime_created и datetime_updated;
  • legacy date_create_time сохранено;
  • добавлены regression-тесты видимости, фильтров, management flow и реальных timestamps.

Проверки

Backend PostgreSQL CI — passed

Run: https://github.com/PROCOLLAB-github/api/actions/runs/33163084465

  • database vendor: postgresql;
  • select_for_update: True;
  • Django configuration/models checks: passed;
  • migration consistency и применение на пустую PostgreSQL 15: passed;
  • targeted locking/vacancy-response tests: 31/31 passed;
  • полный backend suite: 547/547 passed.

Push CI — passed

Run: https://github.com/PROCOLLAB-github/api/actions/runs/33163081181

  • Lint: passed;
  • Tests: passed.

Локально

  • Black для всех 5 изменённых Python-файлов: passed;
  • Flake8 для всех 5 изменённых Python-файлов: passed;
  • python manage.py check --tag models: passed;
  • python manage.py makemigrations --check --dry-run --skip-checks: passed, No changes detected;
  • python -m compileall vacancy: passed;
  • git diff --check: passed.

Локальные DB-тесты не запускались из-за отсутствующего PostgreSQL на localhost:5432; они полностью выполнены в PostgreSQL CI. Локальный полный manage.py check блокируется отсутствующей системной библиотекой WeasyPrint (gobject-2.0-0), в CI проверка passed.

Scope

VacancyResponse lifecycle, applicant state, PROCOLLAB CV, frontend, Docker, workflows и deploy не изменялись. Миграции не добавлялись; Vacancy.city и canonical hybrid сохранены.

@TThanos3000
TThanos3000 force-pushed the feature/dev-vacancy-catalog-timestamps branch 2 times, most recently from bf82c01 to f09726b Compare August 28, 2026 10:15
@TThanos3000
TThanos3000 force-pushed the feature/dev-vacancy-catalog-timestamps branch from f09726b to a229624 Compare August 28, 2026 10:22
@TThanos3000
TThanos3000 marked this pull request as ready for review August 28, 2026 10:31
@TThanos3000
TThanos3000 merged commit 790927e into dev Aug 28, 2026
3 checks passed
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.

1 participant