magma / domain-proxy

A Domain proxy for Magma
BSD 3-Clause "New" or "Revised" License
1 stars 6 forks source link

CBSD is removed if unset_frequency is called during grant removal #523

Closed hejjestemjarek closed 2 years ago

hejjestemjarek commented 2 years ago

In configuration controller's response processor _remove_grant_from_response might be called to remove existing grant. Sometimes when removing the grant the cbsd related to it also gets removed. Turns out that if grant.cbsd attribute is accessed then when removing the grant sql alchemy will also remove the cbsd object. This should not be happening.