Skip to content

Conversation

vikhyat187
Copy link
Contributor

@vikhyat187 vikhyat187 commented Nov 20, 2024

Date: 20 Nov 24

Developer Name: @vikhyat187 @pankajjs


Issue Ticket Number

Description

  • @vikhyat187 's change is for the discord command to grant AWS access to the developers, we can tag the developer and the group we wanted to add the user in.
  • @pankajjs's changes adds a delete api endpoint for removing a role from RDS discord server which is going to be used in website backend for deleting a group role when a super user deletes the group from group site

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No
  • We can see the command can be only ran by Super users (Ankush and Tejas)
image

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1 image

Test Coverage

Screenshot 1 image

Additional Notes

pankajjs and others added 4 commits November 12, 2024 21:28
* feat: add deleteGuildRole api route definition and handler

* fix: fix deleteGuildRole util and tests

* fix: return success and error message

* fix: clear mocks before each test and refactor tests

* refactor: refactor deleteGuildRole util and tests in separate file

* refactor: refactor deleteGuildRoleHandler and tests

* fix: import deleteGuildRoleHandler from correct file

* fix: remove ternary condition

* fix: change api name to /roles/:roleId

* refactor: change variable name for better readability

* fix: log error messages for debugging

* fix: change error response and validation order
* Discord slash command code to grant AWS access

* added test cases for the discord command

* added uuid as types

* Revert "remove feature flag (#275)" (#281)

This reverts commit b54d9c3.

* removed uuid, code refactoring and fixed test cases post changes

* correcting package.json file

* lint fix

* code refactoring to call the API outside if/else

* Updated the command options to valid one

* fix test cases

* Fixing test case - changing the return type to Promise<void>

* lint fix

* Updated the logic of signing JWT into seperate file

* added documentation for website backend API

* added feature flag to backend API

* Updated the backend route to /aws/groups/access

* Reverted the register command change

* remove package lock changes

* added the group id to config file and added more info to the async processing comment

* remove the unused import

* added feature flag

* fix the register command, as the value of ENV variable was being passed as undefined, due to recent change

* code refactor and made FF mandatory

---------

Co-authored-by: Vinit khandal <[email protected]>
* added the key in env

* format-fix
@pankajjs
Copy link
Contributor

pankajjs commented Nov 20, 2024

issue #272
Pr to sync #282
Desc - This PR adds a delete api endpoint for removing a role from RDS discord server which is going to be used in website backend for deleting a group role when a super user deletes the group from group site
@vikhyat187

@iamitprakash iamitprakash merged commit 2b05763 into main Nov 21, 2024
5 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.

3 participants