Prod: formalize program case field contract - #733
Merged
Merged
Conversation
TThanos3000
marked this pull request as ready for review
September 9, 2026 14:03
This was referenced Sep 9, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Основа и границы
dca8789e31f168614818797b57890b853d40171a(merge production Prod: harden program project access and expert filters #732).30c4e3132fd92371e528d777097a2428242c1a2f.f932586fc59818b445c473ec2a33990605f16524(DEV heade83004cba98695f5f4bcb2e437c07f797bc49992).Что перенесено
field.name == PROGRAM_CASE_FIELD_NAME == "case". Label, регистр, похожие имена и тип generic-поля не служат эвристиками.Canonical fields и адаптация к #732
GET/PUT /programs/partner-program-projects/<programLinkId>/fields/GET сохраняет ровно foundation-контракт #728:
{ "program_link_id": 700, "program_id": 12, "project_id": 55, "submitted": false, "fields": [ { "id": 5, "name": "case", "label": "Кейс", "field_type": "select", "is_required": true, "show_filter": true, "help_text": null, "options": ["A", "B"], "value": "A" } ] }projects.access.has_program_link_read_access; все три исходных helper Prod: harden program project access and expert filters #732 сохранены без изменений.PUT /projects/<projectId>/program-fields/: 0 links → 400, 1 → canonical service, 2+ → 409AmbiguousProgramLink, без выбора первой связи.ambiguous_program_linkсохраняет семантику DRFdefault_codeиз DEV: formalize program case field contract #728; JSON response по-прежнему содержитdetail, новый JSON error-code envelope не вводится.Scope audit
manager-overviewи scoped project detail/WRITE policy Prod: harden program project access and expert filters #732 unchanged.is_competitive,submission_open,submission_deadline,can_submit) не добавлена в GET fields.Проверки exact head
projects + partner_programs: 783 tests, OK.procollab.settings_ci.--keepdbи уникальной тестовой БД; после завершения процесса подтверждено отсутствие соединений, БД удалена.manage.py check,check --tag models: PASS.makemigrations --check --dry-run: No changes detected.partner_programs/models.pyиadmin.pyуже не проходит на exact base из-за старого форматирования неизменённых классов. Эти классы сверены с base и намеренно не переформатированы; repository-wide formatting не выполнялся.git diff --check: PASS.Ограничения и эксплуатация
docs/program-case-field.md.