Skip to content
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

Добавить категории к постам #3

Closed
Marcelinka opened this issue Jul 20, 2022 · 1 comment · Fixed by #6, #7 or #10
Closed

Добавить категории к постам #3

Marcelinka opened this issue Jul 20, 2022 · 1 comment · Fixed by #6, #7 or #10

Comments

@Marcelinka
Copy link
Collaborator

Marcelinka commented Jul 20, 2022

  1. Пользователь может посмотреть все созданные категории
  2. Админ может создать новую категорию
  3. Админ может задать одну категорию для конкретной задачи
@Yonnico Yonnico linked a pull request Aug 4, 2022 that will close this issue
@Yonnico Yonnico closed this as completed in #6 Aug 4, 2022
@Yonnico Yonnico linked a pull request Aug 4, 2022 that will close this issue
@Marcelinka
Copy link
Collaborator Author

Marcelinka commented Sep 3, 2022

  • get_short_post по сути отдает все посты, название некорректно
  • get_posts_with_category в первую очередь получает посты, поэтому это относится к сервисам поста
  • если удалить категорию и попытаться получить посты с этой категорией с описанием категории, то будет 500-я
  • категории у поста может не быть, предусмотреть эту ситуацию
  • в get_posts и get_post есть бизнес-логика связанная с тем что сначала мы находим пост, а потом его перерабатываем в short или full, это должно быть реализовано в сервисе

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant