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: delete organization and wallet #757

Merged
merged 9 commits into from
Jun 10, 2024

Conversation

KulkarniShashank
Copy link
Contributor

What

Delete both an organization and its associated wallet from the system. This involves:

  • Adding a new endpoint to handle the deletion process.
  • Ensuring that when an organization is deleted, its associated wallet is also deleted.
  • Updating the relevant documentation to reflect these changes.

Why

This feature is necessary to improve the user experience by allowing complete and clean removal of organizations.

How

  • Endpoint Addition: A new API endpoint /org/{orgId} is created to handle the delete request.

Database Operations:

  • Fetch the organization and its associated wallet details from the database.
  • Error Handling: Implement error handling to manage cases where the organization or wallet cannot be found, ensuring appropriate responses are returned.

KulkarniShashank added 7 commits June 5, 2024 17:31
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
Copy link
Contributor

@bhavanakarwade bhavanakarwade left a comment

Choose a reason for hiding this comment

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

LG

KulkarniShashank added 2 commits June 10, 2024 12:41
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@GHkrishna GHkrishna left a comment

Choose a reason for hiding this comment

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

LG

@KulkarniShashank KulkarniShashank merged commit ca00920 into develop Jun 10, 2024
2 checks passed
@KulkarniShashank KulkarniShashank linked an issue Jun 10, 2024 that may be closed by this pull request
4 tasks
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.

feat: Delete wallet & Organization (BE)
3 participants