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

feat: Add onboarding extension command to create an onboarding extension request #294

Conversation

pankajjs
Copy link
Member

@pankajjs pankajjs commented Dec 19, 2024

Date: 20 Dec, 2024

Developer Name: @pankajjs


Issue Ticket Number

Description

  • This PR creates a discord slash command /onboarding-extension <number-of-days> <reason> <username> which interacts with website backend and creates an onboarding extension request for onboarding user.
  • This command can only be executed for onboarding user.
  • Only the onboarding users themselves or the super users can execute this command.

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Working Videos
  • When super-users make request for onboarding users and do not pass username
output_time_0.mp4
  • When super-users make request for onboarding users
output_time_1.mp4
  • When non-onboarding users make a request
d2.mp4
  • When onboarding users make the request first time
d4.mp4
  • When onboarding users make a request
    • There exists a pending request.
    • When pending requests is approved
d5.mp4

Test Coverage

Screenshot 1 Screenshot 2024-12-20 at 4 45 24 PM Screenshot 2024-12-20 at 4 45 40 PM

Additional Notes

Design doc
PRD

@pankajjs pankajjs force-pushed the feat/create-onboarding-extension-command branch from 40742cd to 65ff578 Compare December 28, 2024 07:54
@pankajjs pankajjs marked this pull request as ready for review December 28, 2024 10:27
@pankajjs pankajjs changed the title Add onboarding extension command to create an onboarding extension request feat: Add onboarding extension command to create an onboarding extension request Dec 29, 2024
Copy link
Member

@Achintya-Chatterjee Achintya-Chatterjee left a comment

Choose a reason for hiding this comment

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

LGTM

@pankajjs pankajjs requested a review from AnujChhikara January 5, 2025 06:26
src/controllers/baseHandler.ts Show resolved Hide resolved
src/utils/sendReplyInDiscordChannel.ts Outdated Show resolved Hide resolved
@pankajjs pankajjs requested a review from vinit717 January 5, 2025 14:01
@Achintya-Chatterjee Achintya-Chatterjee self-requested a review January 6, 2025 08:56
- Added command and handler

- Changed required default value

- Added constant message

- Changed field name and argument

- Fixed function argument and types

- Added super user field

- Added validation for super-user and fixed reply

- Changed field, expectation message and test name as it was failing

- Restore all mocks in after-each hook

- Fixed lint issue

- Added assert statement to verify the function call signature and fixed test name

- Added tests to handle edge cases and fixed existing failing tests
@pankajjs pankajjs force-pushed the feat/create-onboarding-extension-command branch from 4a3bdc8 to 532e48f Compare January 8, 2025 12:13
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.

Feature : Extend Onboarding Override for Discord Server
4 participants