-
Notifications
You must be signed in to change notification settings - Fork 4
Добавил проверку на наличие скоупа print.file.send #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Добавил проверку на наличие скоупа print.file.send #88
The head ref may contain hidden characters: "80-\u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435-\u0430\u0443\u0442\u0445\u0430-\u0432-\u043F\u0440\u0438\u043D\u0442\u0435\u0440-\u043A\u0430\u043A-\u0432\u0442\u043E\u0440\u043E\u0433\u043E-\u043C\u0435\u0442\u043E\u0434\u0430-\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0438"
Conversation
В коде добавил опциональность для ввода номера билета, а так же проверку на наличие скоупа внутри имеющихся у юзера. в выводе оставил только имя юзера.
|
💩 Code linting failed, use |
Coverage Report
Summary
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
линтинг упал, пропиши |
|
тебе нужен был файл |
В POST запросе check_union_member вернул код в состояние до первого комита. Для функции send написал одну дополнительную функцию, чтоб проверять наличие скоупа через Depends, добавил опциональный ввод поля number и проверку его наличия уже в самой функции send
|
💩 Code linting failed, use |
parfenovma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделал все для ревью
|
💩 Code linting failed, use |
Осталось только разобраться с базой данных и тестами
Сделал локальную проверку на наличие скоупа print.file.send Пришлось вынести user = user.one_or_none() так как при разных условиях возвращаются разные типы данных (запрос в базу или UnionMember), а далее для создания пина нужен именно UnionMember. Изменение в файле __main__.py предложил сделать Стас, чтоб автоматически при обновлениях кода обновлялось и приложение в вебе
Temmmmmo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да вроде нормально
Ты тестил?
Temmmmmo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да вроде нормально
Ты тестил?
Temmmmmo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
как будто норм, пофикси последний комм и мерджим
Сделал крайний коммент
В коде добавил опциональность для ввода номера билета, а так же проверку на наличие скоупа внутри имеющихся у юзера. в выводе оставил только имя юзера.