add manager program overview api - #679
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.
Что реализовано
Добавлен read-only endpoint:
GET /programs/<program_id>/manager-overview/Endpoint возвращает обезличенную сводку по:
Доступ
Endpoint доступен manager указанной программы, staff и superuser.
Обычный участник и manager другой программы получают
403.Несуществующая программа возвращает
404.Архитектура
view.program.Безопасность данных
Ответ не содержит PII, анкет, содержимого решений, файлов, ссылок, комментариев и оценок отдельных экспертов.
Тесты
Добавлены тесты прав доступа, контрактов ответа, статусов, изоляции программ, отсутствия PII и фиксированного query budget.
Локальный запуск тестов заблокирован отсутствующим PostgreSQL на
localhost:5432. Полная проверка выполняется в Backend PostgreSQL CI.Не входит
Roadmap
Roadmap-IDs: DEV-076, DEV-056
Roadmap-Complete: DEV-076
Roadmap-Partial: DEV-056