Skip to content

Cannot delete organization - violates foreign key constraint #1620

Closed

Description

@Punchwes

Hi,

I want to delete an organization, but it does not allow me to delete. It says:

image

The organization only has one user (me) alone and I am the owner.

Do you have any idea why this is happening?

Activity

  1. ihsaan-ullah commented on Oct 10, 2024

    @ihsaan-ullah
    Collaborator

    You have submitted a submission using your organization. I think if you delete that one, then you can delete the organization

  2. Punchwes commented on Oct 10, 2024

    @Punchwes
    Author

    emmm... I guess I cannot delete my submission (no such button in My Submissions), because that is the permission of the competition organizer. Does it mean that I can never delete the organization until the competition organizer delete my submission?

  3. ihsaan-ullah commented on Oct 10, 2024

    @ihsaan-ullah
    Collaborator

    I think yes.

  4. Didayolo commented on Oct 11, 2024

    @Didayolo
    Member

    We are working on adding the possibility to let users delete their own submissions without being organizers (#713).

    Not sure how we should handle this issue however.

  5. added
    Discussion
    on Oct 11, 2024
  6. ihsaan-ullah commented on Feb 19, 2025

    @ihsaan-ullah
    Collaborator

    Maybe we should allow people to delete their organizations when they have submitted submissions using that organization. We can warn the user and set the organization owner as the submission owner before deleting the organization.

  7. Didayolo commented on Feb 19, 2025

    @Didayolo
    Member

    Maybe we should allow people to delete their organizations when they have submitted submissions using that organization. We can warn the user and set the organization owner as the submission owner before deleting the organization.

    Not sure if that is fair. You could use this to "steal" the submissions from members of your organization:

    • I create an organization
    • People join it and make submissions as the organization
    • I delete the organization, now I am the owner of these submissions (I can now download them (maybe it was already possible?), be first on leaderboard, etc.)
  8. ihsaan-ullah commented on Feb 19, 2025

    @ihsaan-ullah
    Collaborator

    I think we should discuss and differentiate between Team and Organization. Currently the difference is not clear. Maybe we should have both team and organization and restrict organization role to the following:

    1. People mention organization like we do on GitHub like I work at this organization
    2. People can use organizations to host competition e.g. ChaLearn can create multiple competitions
    3. People can use organizations to host datasets/tasks etc

    Edit:

    We have a usecase for the mentioned role of organization in the FAIR Universe project but we use a codabench account and share password with multiple people to combinely use it for hosting comp/datasets/tasks

  9. self-assigned this
    on Jul 5, 2025
  10. ihsaan-ullah commented on Jul 5, 2025

    @ihsaan-ullah
    Collaborator

    This PR #1911 has updated the error message for better readability.

    We now have a new feature that soft-deletes submission. When a user soft-deletes a submission, we now remove the organization reference, this allows the organization owner to delete the organization after deleting the submission.

    SIDE NOTES

    I think we should allow people to delete their organizations. On delete we will just remove organization from submission and submission will go to its original owner rather than the organization owner. Before deletion we should clearly show to the organization owner what will happen to the organization submissions.

    NOTE: submission has both owner and organization, when you remove organization, owner is displayed on the leaderboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions