Found this bug where a self_service_category can have it's display_in to false but if it is in the array, it will default to true anyways when posted to the API.
Example:
- I run the command:
policy.add_self_service_category 'Testing', display_in: false
- Validate the results are correct:
policy.self_service_categories which results to `[{:id=>18, :name=>"Testing", :display_in=>false, :feature_in=>false}]
- However, when I pull from the API again, and run
policy.self_service_categories which results to `[{:id=>18, :name=>"Testing", :display_in=>true, :feature_in=>false}]
Suggested fixes:
- If
display_in is set to false, throw and error
- if
display_in is set to false, remove from self_service_categories
- Force
display_in to be set to true, push user to use policy.remove_self_service_category(cat) to remove categories