Skip to content

user-story-1#35

Merged
Maslyna merged 8 commits intodevfrom
Task#8-Configure-project
Mar 24, 2023
Merged

user-story-1#35
Maslyna merged 8 commits intodevfrom
Task#8-Configure-project

Conversation

@Maslyna
Copy link

@Maslyna Maslyna commented Mar 24, 2023

Updated database content
Removed bug with pagination.properties
Refactored project structure
Added dev and prod profiles
GET(/talents) now returns Page

@Maslyna Maslyna added the 🐸 backend Tasks for backend team label Mar 24, 2023
@Maslyna Maslyna self-assigned this Mar 24, 2023
@Maslyna Maslyna linked an issue Mar 24, 2023 that may be closed by this pull request
2 tasks
@LordRenDS LordRenDS added this to the Sprint 1 milestone Mar 24, 2023
Copy link

@LordRenDS LordRenDS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready

@Maslyna Maslyna changed the title Task#8 user-story-1 Mar 24, 2023
@Maslyna Maslyna merged commit 73b787f into dev Mar 24, 2023
@Maslyna Maslyna deleted the Task#8-Configure-project branch March 24, 2023 19:47
@LordRenDS LordRenDS added the user story #1 Tasks for 1st user story label Mar 25, 2023
LordRenDS pushed a commit that referenced this pull request Mar 26, 2023
* Updated project structure

* Refactored code

* Added profiles
LordRenDS pushed a commit that referenced this pull request Mar 26, 2023
* Updated project structure

* Refactored code

* Added profiles

bugfix (#36)

bugfix: java.io.FileNotFoundException: Could not open ServletContext resource [/pagination.properties]

BUGFIX: `BeanDefinitionStoreException: Failed to parse configuration class [com.provedcode.config.PageConfig]` (#33)
LordRenDS pushed a commit that referenced this pull request Mar 29, 2023
* Updated project structure

* Refactored code

* Added profiles

bugfix (#36)

bugfix: java.io.FileNotFoundException: Could not open ServletContext resource [/pagination.properties]

BUGFIX: `BeanDefinitionStoreException: Failed to parse configuration class [com.provedcode.config.PageConfig]` (#33)
LordRenDS pushed a commit that referenced this pull request Mar 29, 2023
* Updated project structure

* Refactored code

* Added profiles
This was linked to issues Mar 30, 2023
Maslyna added a commit that referenced this pull request Apr 3, 2023
* Db repo (#31)

* Configure project

* Create prepopulate sql scripts

* Create DTO for talent

* Create talent entity and related tables

* Create base SecurityConfig and TalentRepository

* Edit config and add dependencies

* Edit data and schema

* Edit entity and dto: remove @NotNull from different linked tables, remove some fields from ShortTalent

* Add to schema table: user_info, authority and user_authority

* Create entity: UserInfo, Authority and UserAuthority

* Create UserInfoRepository

* Updated TalentController
Created TalentEntityRepository
Updated TalentRepository
Created PageConfig, that takes config from application.properties
Created ShortTalentDTO
Created TalentMapper and his impl
Created TalentService and his impl
------------
Added `GET(/api/talents)` endpoint, that returns us the `List<ShortTalentDTO>`
Added pagination to `GET(/api/talents)` endpoint
    - To use pagination you may use RequestParams:
         - page (gives us requested page)
         - size (gives us requested size of page)

* Created TalentExceptionHandler
Updated TalentController
Updated TalentRepository
Created TalentEntityRepository
Created FullTalentDTO
Created TalentServiceMock
Created PageConfig, that takes config from application.properties
Created ShortTalentDTO
Created TalentMapper and his impl
Created TalentService and his impl
------------
Added `GET(/api/talents)` endpoint, that returns us the `List<ShortTalentDTO>`
Added pagination to `GET(/api/talents)` endpoint
    - To use pagination you may use RequestParams:
         - page (gives us requested page)
         - size (gives us requested size of page)
Added simple exception handling

* Updated TalentController: Added new endpoint `GET(/talents/{id})`, that returns to us the FullTalentDTO
Updated FullTalentDTO
Updated TalentMapper
Updated TalentService

* Refactored project structure
Created pagination.properties

* BUGFIX: `BeanDefinitionStoreException: Failed to parse configuration class [com.provedcode.config.PageConfig]` (#33)

* user-story-1 (#35)

* Updated project structure

* Refactored code

* Added profiles

* bugfix (#36)

bugfix: java.io.FileNotFoundException: Could not open ServletContext resource [/pagination.properties]

* Add WebConfig (#48)

* Add @crossorigin to TalentController (#50)

* Delete WebConfig (#52)

* data.sql Update

* Edit data.sql and schema.sql

* Edit UserInfo: add user_id and @NotNull, @notempty validations

* Edit UserInfo: add @builder, @AllArgsConstructor, @NoArgsConstructor

* commit 1

* commit 2

* BugFix

* commit 3

* Edit UserAuthorityRepository, AuthenticationController, SecurityConfig and TalentServiceImpl

* Create trash in AuthenticationController

* Code refactor
BugFix: nullPointerExceptions in TalentMapperImpl were removed

* BugFix: don`t ask me

* Add enum Role, add findByAuthority to AuthorityRepository, do some refactor

* Refactored code
User registration returns jwt-token

* Refactored code
Created SessionInfoDTO

* Refactored code
Added annotation @UrlList

* Delete unused files

---------

Co-authored-by: Ren <75202059+LordRenDS@users.noreply.github.com>
Co-authored-by: Ren <sergeysolovyov2016@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐸 backend Tasks for backend team user story #1 Tasks for 1st user story

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task#8 Configure Project Task#7 Add security User story #1

4 participants