Uh oh!
There was an error while loading. Please reload this page.
Add program analytics access contract - #695
Merged
Merged
Conversation
TThanos3000
marked this pull request as ready for review
August 13, 2026 15:22
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Что изменено
GET /programs/<program_id>/manager-overview/дополнен полемparticipants.total.PartnerProgramUserProfile.user_idвнутри существующей агрегации регистраций.GET /programs/managed/для списка программ организатора.GET /programs/не изменён, моделей и миграций нет.Контракты и безопасность
Сводка сохраняет все существующие поля.
registrations.totalпродолжает считать все записи регистрации, включая записи с удалённым пользователем, аparticipants.totalисключаетuser=nullи считает пользователя один раз.Список управляемых программ возвращает только
id,nameиdraft, стабильно сортируется поname, затемid, и выполняется одним SQL-запросом без N+1.Проверки
py_compile— пройден.git diff --check— пройден.Локальный targeted и полный suite не смогли подключиться к PostgreSQL на
localhost:5432; окончательная проверка выполняется в PostgreSQL CI.