joyent / conch-api

Datacenter build and management service
Mozilla Public License 2.0
22 stars 11 forks source link

Removing an organization from a build removes the organization from all build memberships #948

Closed dustinryerson closed 4 years ago

dustinryerson commented 4 years ago

I've added an organization to three different builds, using the POST /build/:build_id_or_name/organization endpoint. All three ajax requests are sent and all three entries appear in the organization_build_role table as expected. When I remove the organization from one of these builds using DELETE /build/:build_id_or_name/organization/:organization_id_or_name, one ajax request is sent out as expected, but all the entries in the organization_build_role for that organization are deleted. I've also confirmed my findings via the conch development logs, which I'm happy to provide if needed.