foremancommunity-templatesforeman_api
Fixes #19789 - fix Layout/SpaceAroundOperators cop
Fixes #19781 - Fix Layout/LeadingCommentSpace cop
Fixes #19787 - Fix Layout/SpaceAfterComma cop
Fixes #23123 - Fix Rails/ActiveRecordAliases cop
Refs #22164 - use cheaper FactoryBot methods
in- test/unit/*- test/models/shared/taxonomies_base_test.rb- test/controllers/hosts_controller_test.rb
Fixes #22043 - Allow adding invalid orgs to locs (#5104)
And vice-versa. Currently when a taxonomy is invalid (e.g. because somemismatch with hosts and resources), it cannot be assigned to theopposite taxonomy. This is due to the fact that by default,`has_and_belongs_to_many` associations validate the associated object as...
Fixes #21424 - use factory_bot_rails
Fixes #20950 - Use 'distinct' in AR finders
Fixes #16884 - enforce granular filters even during save
Fixes #16982 - Scope properly when no taxonomies are set
The default scope for hosts and other objects did not restrictproperly by taxonomies. An user without organizations orlocations, could do anything it's permissions allow to.The list of hosts was unrestricted and showed hosts in...
View revisions
Also available in: Atom