Prod: add project analytics attention and cases - #738
Merged
Merged
Conversation
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.
Что сделано
Semantic production port DEV #725, #726 и #730 в существующий legacy namespace
/project-analytics/.Base:
f300e3dcb96672260ace6c555f363afd043f0f46(актуальныйorigin/masterпосле #737).Final head:
c3827aa06f58bf7d2b87e20a3079822eaa1e342f.Добавлены read-only endpoints:
GET /programs/<program_id>/project-analytics/participants-without-team/GET /programs/<program_id>/project-analytics/projects-awaiting-evaluation/GET /programs/<program_id>/project-analytics/projects-not-submitted/Overview
GET /programs/<program_id>/project-analytics/дополнен полямиattention.projects_not_submittedи top-levelcases. Production/manager-overview/не менялся.Семантика
ProgramPermissionMixin+IsAuthenticated+IsAdminOrManagerOfProgramи поддерживают только чтение.limit=25, диапазон 1..100,offset>=0;searchобрезается и применяется в SQL до count/page.profile.project, production Team/TeamMember и другие программы не участвуют.PartnerProgramProject.submitted=false; detail применим только к competitive programs. Deadline/open берутся из существующих методов программы. Rawsolution_funnelне меняется.get_program_case_field()(name="case"). Сохраняются порядок options и нулевые строки; missing/blank/whitespace/obsolete values попадают вwithout_case.PartnerProgramProject; submitted/not_submitted берутся из raw link flag. Участники — уникальные зарегистрированные leader/Collaborator внутри bucket.solution_funnel.created/submitted/not_submitted.SQL impact
Проверки
Exact final head:
c3827aa06f58bf7d2b87e20a3079822eaa1e342f.Локально, Python 3.11 + PostgreSQL:
97/97— OK.partner_programs + project_rates + projects:929/929— OK.1477/1478; единственное unrelated падениеfeed.tests.test_feed_api.FeedAPITests.test_feed_returns_project_news_as_news_contentиз-за недетерминированного порядка двух feed-записей с близким timestamp. Изолированный повтор этого теста — OK; файлыfeedне изменялись. Оба Linux CI ниже прошли полный набор1478/1478.manage.py check— OK.manage.py check --tag models— OK.makemigrations --check --dry-run—No changes detected.git diff --check origin/master...HEAD— OK.GitHub Actions:
1478/1478,OK (skipped=5), 1283.050s — success (run).86/86, 15.999s; full backend —1478/1478, 496.261s — success (run).Scope
Нет новых models/migrations/endpoints вне перечисленных, нет scoring writes или lifecycle/deadline изменений. Не менялись production manager analytics, Angular, React, зависимости, Docker, workflows и deploy-конфигурация.