Allow for empty "plan" setting when editing a user or group
This is a follow-up to "License plan check on namespaces" (#2019 & !1961 (merged)). With the current implementation, there is no way to unselect a plan for a user or group. Once a plan has been added, it can only be changed to another plan.
The way to address this would be to add the following to /app/views/admin/_namespace_plan.html.haml
:
{ include_blank: 'No Associated Plan' }
But I think some extra logic needs to be in place to translate that "blank" (empty string) response into nil
in the database, and I don't know enough about ActiveSupport to do this myself, and right now this change still trips the validator and produces the following error:
If a backend engineer could take this or just point me in the right direction, I'd appreciate it