Skip to content

Conversation

@ihsaan-ullah
Copy link
Collaborator

@ihsaan-ullah ihsaan-ullah commented Jul 5, 2025

Description

This PR has the following updates:

  1. Improved the error message for organization deletion
  2. Removed organization reference from submission on soft-delete

If an organization is used in a submission, it is not possible to delete it. The error message shown was not readable

Previous error message
Screenshot 2025-07-05 at 2 23 42 PM

New error message
Screenshot 2025-07-05 at 2 20 04 PM

Issues this PR resolves

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

@ihsaan-ullah ihsaan-ullah changed the title Improved organization delete error Improved organization delete error + Remove organization reference from submission on soft detetion Jul 6, 2025
@ihsaan-ullah
Copy link
Collaborator Author

ihsaan-ullah commented Jul 6, 2025

Please check this reply in the Issue #1620 (comment)

@ihsaan-ullah ihsaan-ullah linked an issue Jul 6, 2025 that may be closed by this pull request
@Didayolo Didayolo self-assigned this Jul 8, 2025
@Didayolo
Copy link
Member

Didayolo commented Jul 15, 2025

This PR improving the error message works fine.

I agree with you that we need to allow people to delete organizations. With the current system, it is too hard for an user to remove their own organization.

@Didayolo Didayolo merged commit 645c852 into develop Jul 15, 2025
1 check passed
@Didayolo Didayolo deleted the organization_delete branch July 15, 2025 11:00
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.

Cannot delete organization - violates foreign key constraint

3 participants