Skip to content

Conversation

apoorvdixit88
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

The new endpoint /resend_invite, add supports to send invitation to user again.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

To invite user:

curl --location 'http://localhost:8080/user/user/invite' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "[email protected]",
    "name": "test2",
    "role_id": "merchant_admin"
}
'

For resend invite:

curl --location 'http://localhost:8080/user/user/resend_invite' \
--header 'Authorization: Bearer JWT' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "[email protected]"
}'
Screenshot 2024-02-01 at 5 39 38 PM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

@apoorvdixit88 apoorvdixit88 added C-feature Category: Feature request or enhancement S-waiting-on-review Status: This PR has been implemented and needs to be reviewed R-waiting-on-L1 A-users Area: Users labels Feb 1, 2024
@apoorvdixit88 apoorvdixit88 self-assigned this Feb 1, 2024
@apoorvdixit88 apoorvdixit88 requested review from a team as code owners February 1, 2024 12:20
@apoorvdixit88 apoorvdixit88 linked an issue Feb 1, 2024 that may be closed by this pull request
Copy link
Contributor

@ThisIsMani ThisIsMani left a comment

Choose a reason for hiding this comment

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

LGTM

@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Feb 2, 2024
Merged via the queue into main with commit cf0e0b3 Feb 2, 2024
@Gnanasundari24 Gnanasundari24 deleted the resend_invite branch February 2, 2024 09:48
sagarnaikjuspay pushed a commit that referenced this pull request Feb 2, 2024
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
@SanchithHegde SanchithHegde removed S-waiting-on-review Status: This PR has been implemented and needs to be reviewed R-waiting-on-L1 labels Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-users Area: Users C-feature Category: Feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: resend user invite
6 participants