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

Сделать Domain для Статьи (Article) #3

Closed
RaingGOR opened this issue Aug 31, 2024 · 0 comments · Fixed by #14
Closed

Сделать Domain для Статьи (Article) #3

RaingGOR opened this issue Aug 31, 2024 · 0 comments · Fixed by #14
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@RaingGOR
Copy link
Member

RaingGOR commented Aug 31, 2024

Подтаск 1: Проектирование модели данных и базы данных

Цели:

  • Определить атрибуты и связи сущностей.
  • Спроектировать схему базы данных.
  • Создать интерфейс для работы с базой данных.

Задачи:

  1. Создать класс Article с необходимыми полями.
  2. Определить связи между Article и User (автор).
  3. Создать миграции для базы данных, если используете инструмент миграций.
  4. Реализовать интерфейс ArticleRepository, расширяющий JpaRepository.
@RaingGOR RaingGOR added enhancement New feature or request good first issue Good for newcomers labels Aug 31, 2024
@RaingGOR RaingGOR added this to InfoHub Aug 31, 2024
@RaingGOR RaingGOR pinned this issue Aug 31, 2024
RaingGOR added a commit that referenced this issue Sep 2, 2024
Отказ от прошлой системы в связи ее нагруженности и неремонтопригодности.

* Изменение ролей
* добавление CRUD
* добавление Security (заглушка)
* добавление кастомных эксепшенов
RaingGOR added a commit that referenced this issue Sep 15, 2024
* patch #1 НЕДОДЕЛАНО
Add Role model.

For us ->   * WebSite Moderation :

    HEAD_ADMINISTRATOR,
    ADMINISTRATOR,
    USER

For community blog's ->
   * Community Moderation :

    HEAD_MODERATOR,
    MODERATOR

 Add Security
 Add Community(plug v)
 Add Configs + files for roles

 NEED :"Создаем кастомный сервис проверки ролей"

* patch #2
Refactoring

* patch #3
Отказ от прошлой системы в связи ее нагруженности и неремонтопригодности.

* Изменение ролей
* добавление CRUD
* добавление Security (заглушка)
* добавление кастомных эксепшенов

* patch #4
фиксы с ревью

* patch #5
Добавлены тесты

* patch #6
Фикс бесконечного цикла

* patch #7
Правки по запросу белого кита=)

* patch #8
Слизал с прошлого проекта секьюр.
JWTValidationFilter.java нужно пересмотреть Claims, хрен что знает как эта хренобесина работает

* patch #8
Добавил пагинацию

* patch #9
возвращение к истокам

* patch #10 УРАА + РЕГИСТРАЦИЯ

* Добавление регистрации через Oauth2

* patch #11

* Теперь что бы получить профиль можно просто спросить через getCurrentUser
@RaingGOR RaingGOR self-assigned this Sep 15, 2024
@RaingGOR RaingGOR moved this from Todo to In Progress in InfoHub Sep 15, 2024
@RaingGOR RaingGOR changed the title Сделать CRUD для Статьи (Article) Сделать Domain для Статьи (Article) Sep 15, 2024
@RaingGOR RaingGOR unpinned this issue Sep 15, 2024
@RaingGOR RaingGOR linked a pull request Sep 15, 2024 that will close this issue
RaingGOR added a commit that referenced this issue Sep 17, 2024
* fix UserController
* delete deprecated method (delete User)
* create ArticleController, pagination
* update ArticleService
@RaingGOR RaingGOR closed this as completed by moving to Done in InfoHub Sep 29, 2024
@RaingGOR RaingGOR reopened this Sep 29, 2024
RaingGOR added a commit that referenced this issue Sep 30, 2024
* patch #1 Add Domain Article
* create domain Article, Comment
* Update User
* Update migrations

* patch #2 Add Service Article and fix anything
* fix domain Article, User,UserDTO
* Create ArticleDT,ArticleService, ArticleNotFoundException
* Update GlobalExceptionHandler, V.0.0.1__init_db.sql, UserConvertor

* patch #3 Controller
* fix UserController
* delete deprecated method (delete User)
* create ArticleController, pagination
* update ArticleService

* patch #4 Проверка на вшивость
* add check user Author or not

* patch #5 добавление тест контроллера против вшивых

* patch #6 проверка на администратора

* patch #7 убрал тестовую хрень
@github-project-automation github-project-automation bot moved this from Review to Done in InfoHub Sep 30, 2024
RaingGOR added a commit that referenced this issue Oct 3, 2024
RaingGOR added a commit that referenced this issue Oct 8, 2024
* patch #1 Add Domain Article
* create domain Article, Comment
* Update User
* Update migrations

* patch #2 Add Service Article and fix anything
* fix domain Article, User,UserDTO
* Create ArticleDT,ArticleService, ArticleNotFoundException
* Update GlobalExceptionHandler, V.0.0.1__init_db.sql, UserConvertor

* patch #3 Controller
* fix UserController
* delete deprecated method (delete User)
* create ArticleController, pagination
* update ArticleService

* patch #4 Проверка на вшивость
* add check user Author or not

* patch #5 добавление тест контроллера против вшивых

* patch #6 проверка на администратора

* patch #7 убрал тестовую хрень

* patch #1 Добавление фич
* add CommentNotFoundException,
CommentRepository, CommentRepository

* clean code SecurityAuthorizationManager,
SecurityConfig

* fix GlobalExceptionHandler,
UserNotAuthorArticleException

* Delete src/main/resources/application.yaml

* patch #2 Major update commentary system

* updated CommentService, CommentController, GlobalExceptionHandler

* more clean code and more

* patch #3 fix patch

* patch #4 upgrade exception system

* patch #4 create tests for commentary system

* patch #5 CleanUp Code

* patch #6 update migrations
RaingGOR added a commit that referenced this issue Oct 18, 2024
* update readme
* delete not need sh
RaingGOR added a commit that referenced this issue Oct 20, 2024
* patch #1
* add working swagger and docker(but it not work)

* patch #2
* docker work

* patch #3
* update readme
* delete not need sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant