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

build api to approve/reject skill request #144

Merged
merged 2 commits into from
Aug 4, 2024

Conversation

yesyash
Copy link
Collaborator

@yesyash yesyash commented Aug 4, 2024

Date: 04 August 2024

Developer Name: yash raj


Issue Ticket Number

Description

  • update endorsement model to change the column type of message to text
  • create a v1/skills/requests/{skillId}/action API to approve / reject a skill request.

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1

Test Coverage

Screenshot 1

Additional Notes

@iamitprakash iamitprakash merged commit aee4b16 into yash/endorsement-api Aug 4, 2024
3 checks passed
@iamitprakash iamitprakash deleted the yash/approve-reject-skill-req branch August 4, 2024 18:19
prakashchoudhary07 added a commit that referenced this pull request Aug 5, 2024
* 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]>
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