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

Dev to main merge #156

Merged
merged 13 commits into from
Sep 2, 2024
Merged

Dev to main merge #156

merged 13 commits into from
Sep 2, 2024

Conversation

yesyash and others added 13 commits June 8, 2024 00:47
* update readme

* revert application properties changes
* add setps to authenticate a user during development

* update copy
…te the db diagram to match the new erd diagram (#135)
* create a model to store user_skill and add remove unused columns in users and skills model

* create a model to store user_skill and add/remove unused columns in users and skills model

* change id to integer

* check if a skill already exists before creating one, make `updated_at` optional in TrackedProperties

* remove unit and integration test and remove skill service & skill service implementation

* add todo

* rename SkillType to SkillTypeEnum

* set logging level debug in application-dev instead of application

* add todo

* remove endorsements list

* add reference to user table in skills modal

* Build api to create a new endorsement

* create api to update an endorsement

* remove unused files

* remove unused code in endorsement controller

* chagne import order

* change the skills project structure to match the new one

* rename exceptions folder to small case exceptions and create user not found and skill already exists exceptions

* create enums folder and move skill type enum to the folder

* rename Conifg to config, move generic response and jwtAuthenticationFilter to utils

* add api to get all endorsements for a skill using skill id in skillsapi

* remove skills package

* fix build error

* move api to create a endorsement to the new folder structure

* add api to update endorsement in apis/endorsements api and remove old Endorsement folder

* move health check api to the api folder & metric service inside the services folder

* fix formatting

* create annotation and aspect to handle authorized roles to an api

* add authorizred roles annotation to skillsapi & endorsementsapi class

* set authorized role for creating a skill to only superuser

* fix formatting
…ils (#139)

* create a model to store user_skill and add remove unused columns in users and skills model

* create a model to store user_skill and add/remove unused columns in users and skills model

* change id to integer

* check if a skill already exists before creating one, make `updated_at` optional in TrackedProperties

* remove unit and integration test and remove skill service & skill service implementation

* add todo

* rename SkillType to SkillTypeEnum

* set logging level debug in application-dev instead of application

* add todo

* remove endorsements list

* add reference to user table in skills modal

* Build api to create a new endorsement

* create api to update an endorsement

* remove unused files

* remove unused code in endorsement controller

* chagne import order

* change the skills project structure to match the new one

* rename exceptions folder to small case exceptions and create user not found and skill already exists exceptions

* create enums folder and move skill type enum to the folder

* rename Conifg to config, move generic response and jwtAuthenticationFilter to utils

* add api to get all endorsements for a skill using skill id in skillsapi

* remove skills package

* fix build error

* move api to create a endorsement to the new folder structure

* add api to update endorsement in apis/endorsements api and remove old Endorsement folder

* move health check api to the api folder & metric service inside the services folder

* fix formatting

* create annotation and aspect to handle authorized roles to an api

* add authorizred roles annotation to skillsapi & endorsementsapi class

* set authorized role for creating a skill to only superuser

* fix formatting

* create api to get all skill requests

* apply spotless

* set endorsement id

* run spotlesscheck

* remove comments

* add super user role check in skills/requests api

* build the `skill/requests` api to get all skill requests and their endorsements

* fix duplicate data issue when getting all skill requests

* improve comment

* change data to requests in SkillRequestDto

* fix formatting

* fix wrong id being set in endorserDetails

* fix formatting error

* change yoe to float from int in RdsUserViewModel

* add try catch block to getUserDetails

* add try catch and create a constructor in SkillRequestViewModel
* create a model to store user_skill and add remove unused columns in users and skills model

* create a model to store user_skill and add/remove unused columns in users and skills model

* change id to integer

* check if a skill already exists before creating one, make `updated_at` optional in TrackedProperties

* remove unit and integration test and remove skill service & skill service implementation

* add todo

* rename SkillType to SkillTypeEnum

* set logging level debug in application-dev instead of application

* add todo

* remove endorsements list

* add reference to user table in skills modal

* Build api to create a new endorsement

* create api to update an endorsement

* remove unused files

* remove unused code in endorsement controller

* chagne import order

* change the skills project structure to match the new one

* rename exceptions folder to small case exceptions and create user not found and skill already exists exceptions

* create enums folder and move skill type enum to the folder

* rename Conifg to config, move generic response and jwtAuthenticationFilter to utils

* add api to get all endorsements for a skill using skill id in skillsapi

* remove skills package

* fix build error

* move api to create a endorsement to the new folder structure

* add api to update endorsement in apis/endorsements api and remove old Endorsement folder

* move health check api to the api folder & metric service inside the services folder

* fix formatting

* create annotation and aspect to handle authorized roles to an api

* add authorizred roles annotation to skillsapi & endorsementsapi class

* set authorized role for creating a skill to only superuser

* fix formatting

* create api to get all skill requests

* apply spotless

* set endorsement id

* run spotlesscheck

* remove comments

* add super user role check in skills/requests api

* build the `skill/requests` api to get all skill requests and their endorsements

* fix duplicate data issue when getting all skill requests

* improve comment

* change data to requests in SkillRequestDto

* fix formatting

* fix wrong id being set in endorserDetails

* fix formatting error

* create api to login via rds backend

* add permitted paths to security config

* fix formatting

* change permitted routes to non auth routes

* improve the internal server error exception handler by adding time stamp, error message and details

* fix formatting

* remove user table and use RdsUserViewModel instead

* remove auth api and fix logging in update endorsement api

* fix formatting

* change EndorsementViewModel to use builder pattern

* Remove commented code

* Change error to info

* Refactor: Move post endorsements in skills route (#143)

* build api to approve/reject skill request (#144)

* build api to approve/reject skill request

* fix formatting

---------

Co-authored-by: Prakash <[email protected]>
Co-authored-by: Prakash Choudhary <[email protected]>
* add flyway to handle migrations

* change generation type for id columsn to identity to allow database to generate ids
* ci: add SPRING_PROFILES_ACTIVE to accept env

* chore: remove sql file
* add status filter to get all skill requests api

* fix formatting

* fix method name
…sts not generated by non super users (#153)

* allow non super users to create endorsements

* filter out skill requests if the user is not superuser
@prakashchoudhary07 prakashchoudhary07 merged commit 1d09920 into main Sep 2, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants