Open
Conversation
NiKuma0
requested changes
Dec 21, 2023
src/depends.py
Outdated
Comment on lines
38
to
39
| direct_friday_message = providers.Factory(FridayMessage, endpoints=endpoints) | ||
| direct_wednesday_message = providers.Factory(WednesdayMessage, endpoints=endpoints) |
Member
There was a problem hiding this comment.
Совсем не нравится что их название привязано ко дню их отправки. Что если измениться день с пятницы на субботу? Менять и название на direct_saturday_message?
Идеальное имя класса, должно отражать что он делает/содержит.
Не очень нравится идея хранить все в одном контейнере. По хорошему его нужно разделить на несколько - как в этом примере из документации.
Contributor
Author
There was a problem hiding this comment.
не стала разбивать на разные классы, тогда надо делать один объединяющий класс, но тогда чтоб добраться до данных в контейнере, надо менять везде путь. На мой взгляд, это не очень разумно делать сейчас. Нл если надо, сделаю.
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.
Description
попыталась сделать инкапсуляцию сообщений с кнопками, чтоб формировались один раз
Type of change
Пожалуйста, удалите варианты, которые не относятся к ПР-у.
How Has This Been Tested?
Опишите, пожалуйста, тесты, которые вы провели для проверки ваших изменений. Предоставьте инструкции, чтобы мы могли воспроизвести их. Также укажите все необходимые детали конфигурации тестов.
Checklist: