Closed acanedo closed 3 years ago
@warmbowski Was going through this and realized I had a bug. Would you mind re-approving/re-reviewing.
@warmbowski So I did some investigating and I found
DELETE /v1/organizations/:orgName @controllers.v1.Organizations.deleteOrganization(orgName: String)
but DIDN'T work :(. Or it behaves strangely.
So I'm not sure if the endpoint actually just does a soft delete on an organization.
But if I run a delete by org_name
and then try and run a getOrganization
then it tells me there's no org by that name. That seems correct.
The problem is that if I try and create a new org with the same org_name
(as the one previously deleted) then the response tells me the org_name is already taken. Which doesn't seem right given I deleted the organization already. I'm not sure if this intended by design?
Anyways, I also fixed the bogus emails to have @example.com and left the organization tests to NOT delete instead.
The problem is that if I try and create a new org with the
same org_name
(as the one previously deleted) then the response tells me the org_name is already taken. Which doesn't seem right given I deleted the organization already. I'm not sure if this intended by design?
From what I have heard, this is by design.
pushed new changes, it now soft deletes orgs.
dotenv
package to be able to use .env file in root directory.