frontier
frontier copied to clipboard
Fix non-functional Update Resource API
Is your feature request related to a problem? Please describe. Shield's update resource API is just forwarding what user put and stores it in the DB. However this behaviour is not valid. The behaviour of Update API should be similar with Create resource API. In Update Resource API, we also need to remove and re-add org/owner/team to the resource and not just simply update the data in DB. Calling our current update resource API will leave our DB and AuthzDB in inconsistent state.
Describe the solution you'd like Fix the behaviour of Update resource DB or if it is not usable, better to remove it.
@kushsharma is this still applicable?