Fixes #11704 - consider no reports as warning if reports are expected
fixes #8521 - fix classes accessors, copy overrides on host clone
The various 'classes' accessors that are used in the UI for displayingthe Puppet classes tab only really worked for saved objects, so they'rechanged to work better on an unsaved cloned object. Tests now check...
fixes #11415 - using the correct method for classification caster
Fixes #11665 - Removed to_s function from OpenStruct instance
Fixes #11663 - Empty lookup value not validated when use_puppet_default is checked
Fixes #10782 - global host status
Plugins can add their own substatuses. These are automatically...
Fixes #11407 - Uppercase logins from LDAP break external user group sync
On LDAP the login can contain uppercase chars, for instance, "FOO". Howeverwhen we log in Foreman for the first time and have that account auto-created,we can login using "foo". After that, our login will be saved as "foo" on...
Fixes #11428 - External user groups refresh shouldn't be case sensitive
group_list in ldap_fluff returns a list of lowercase LDAP GIDs.When AuthSourceLdap tries to run update_usergroups to refresh the externaluser groups, it will try to match these lowercase gids with external user...
Fixes #11673 - accept integer value when setting the integer via API
Fixes #11650 - show global parameter value inherited from parent taxonomy
fixes #10832 - separating lookup keys into puppet and variable
Refs #3809 - Stabby lambda syntax for oneliners
I started by spotting log.rb which didn't have a lambda wrapping itsdefault scope, as needed by Rails 4. Since the style guide and mostRails 4 documents used the stabby lambda, I turned on the cop so that we...
fixes #11570 - returning 'dependent destroy' to lookup values
fixes #11619 - only check template changes when persisted
Fixes #11031 - ignore identifiers of interfaces being destroyed
Fixes #10731 - Allow matches to merge with default values
fixes #11425 - adding lookup_value_matcher to host and hostgroup to make db schema more logical
Fixes #11451 - Changed bookmark name to be unique per controller.
Fixes #11282 - Search on numeric facts is broken if using "~"
Fixes #11303: Allow scoped search by name for permissions.
This both provides this functionality and fixes an issue with creatingfilters using hammer. Hammer attempts to search for a permission byname using scoped search syntax when creating a filter with the...
fixes #10232 - moving validations and casting out of lookup key and value
Fixes #11187 - explicitly pass resource_type and permission to check
Fixes #4419 - rearranging smart class parameters edit form
Fixes #10248 - cloning volume information for virtual machines
Fixes #1453 - add use_image and jumpstart helpers to Host jail
Fixes #11258 - validation handles blank provider
Fixes #7167 - names of settings marked for translation
Fixes #9591 - Added support for "inherit" state.
Fixes #11013 - Added common table css classes to the tables
Refs #3809 - Enable cop Style/AlignArray
Fixes #11150 - Allow searching of facts as types other than string
fixes #5897 - when user doesn't have an email, email isn't required
Fixes #11089 - Adapt tests to Rails 4
This commit contains all changes to tests in branchhttps://github.com/theforeman/foreman/pull/2055 that I found to beretrocompatible with Rails 3. The more of these we can get in, the lesscode we will have to review for Rails 4, and the more relevant it will...
Fixes #11035 - template preview feature
fixes #11095 - lookup keys do not get saved to db on setter invokation
Fixes #10915 - Deleting a host removes all host specific overrides
Fixes #11078 - Substitute find_all_by by where to comply with Rails 4
This commit takes away all instances up to this point of find_all_by toimprove Rails 4 compatibility. They are substituted by .where calls.
Fixes #10867 - OpenStack boot_from_volume is true only when checked
Fixes #10803: Return nil if no resource_type when creating a filter.
In some instances, such as during DB seed, when a filter is beingcreated for the first time the before_validation callback tobuild_taxonomy_search is triggered. Since, the filter hasn't been...
Fixes #10928 - Default dashboard widgets for new users
Fixes #10635 - Formalize deprecation warning
Fixes #10785 - force encoding for encrypted fields
fixes #10868 - use classify for a Symbol instead of humanize
fixes #10952 - remove empty test files
Fixes #10607 - match bonds based on identifier only
Fixes #10888 - skip attached_to updates if identifier was blank
Fixes #10727 - Added validation to require BMC Smart proxy in order to add BMC nic
Fixes #10633 - Associate architechture to OS during fact import
Fixes #10526 - Support for Cisco POAP
fixes #10829 - non-admin user cannot update admin password
fixes #10627 - apply host taxonomy scope to facts/report joins
Previous changes to perform a join onto hosts with authorisation resultin a query such as Report.joins(:hosts), which ignores anydefault_scope on Host::Base. This commit explicitly passes taxonomy...
Fixes #7096 - Adds STI to templates
This commit converts Ptables to be just another type of Template so itgets the same features as ConfigTemplate. ConfigTemplate was renamed toProvisioningTemplate to reflect UI and the name under it's commonly known.
fixes #10720 - Adds API to get host vm attributes
This exposes an API to fetch a host's vm_compute_attributes,such as vmware cpus and memory. It lives at a separate endpointbecause it involves a fetch for data from the compute resource,and may have different performance characteristics than the database.
fixes #9301 - make puppet environment optional for hosts
Fixes #10566 - allow identifier modifications that do not change interface type
Fixes #9187 - Overrideable empty class parameters don't validate default value
Fixes #10487: Add custom logging support
This change moves away from the Rails logger to the 'logging' gemto support more configurability of logging. Further, this allows forthe creation of custom loggers that plugins can then create duringregistration (with `logger`) or through settings....
fixes #10646 - disable NIC subnet taxonomy checks when feature's disabled
Fixes #10664 - map only physical interfaces in compute orchestration
fixes #10660 - taxonomies are able to have the same name for different classes
fixes #10397 - parse Windows Local_Area_Connection interface name
fixes #1510 - notification when host finishes building
Fixes #10583 - perform uniq in database instead of in memory when possible
fixes #9873 - generate unique alert mails for each user group member
To create distinct mails, new Mailer instances are required instead of usingthe same one - else, the last message changes the previous ones. The recipientlist is now determined in the ReportImporter, and the MailNotification helps...
Fixes #10288 - prevent audits on update of puppetclass total hosts counter
Fixes #10535 - building a token instead of creating it until host is saved
Fixes #10402: add to_bool function for converting to boolean.
This commit adds a to_bool function for casting values to booleanas well as an example usage.
http://projects.theforeman.org/issues/10402
fixes #10528 - lookup value should allow false and 0 values
fixes #10482 - get external user group members only once during refresh
fixes #1213 - Get email reports of audit changes
fixes #10509 - add toggle for LDAP usergroup updating
fixes #10493 - disable usergroup sync on login when $login is used
Fixes #10442 - dry up host managed logic
Fixes #9634 - creating a host with an interface and without os returns a validation message
Fixes #9613 - foreman_url can't be blank
Fixes #10379 - disables cloning if unattended mode is disabled
Fixes #9966 - More debug messages for matching nics from fog
Fixes #10212 - validate DNS name uniqueness of interfaces
fixes #10403 - resync names of unmanaged hosts to their primary NIC
MoveHostNicsToInterfaces previously ignored unmanaged hosts, but theyneed migrating too. Updated the existing migration to migrate both,then for existing hosts, add a new migration to ensure all primary NIC...
fixes #10298 - handle destroyed but present interfaces
When deleting a host and DHCP orchestration is removing reservations for NICs,it generates a dhcp_record that contains next-server data. Determining thenext-server IP causes the primary interface to be fetched for DNS resolution,...
Fixes #8333 - correct matcher values with multi-key matchers
Fixes #10382 - Allow lowercase IPMI provider
Fixes #10263 - Encrypt LDAP password in db
This commit includes a rake task to encrypt all encryptable resources.A helper function can be used to add more encryption tasks easily.
Fixes #5649 - unattended_url validation fix
fixes #10343 - only log cache deletion failures when saving settings
Fixes #8566 - reorganized settings categories
fixes #10287 - provide helper methods for proxy features
fixes #7743 - ensure name is unique in scope of major and minor
Fixes #5554 - fixed hostgroup and fqdn validations in multiple matchers
Refs #3809 - Remove semicolon cop
fixes #8817 - look up reports with all joins from host scoped_search
This changes the optimisation in d50c799 which caused errors for users withhost filters referencing tables other than hosts.
When retrieving all reports joined with authorised hosts, the nested joins need...
refs #10168 - fix test that created a duplicate primary interface
Subtle interaction between 4d5b979 and a5dc3e2, resulting in the testthat tried to add an interface to an unmanaged host duplicating the onethat was automatically added.
fixes #10168 - delegate fqdn/shortname to primary interface
Fixes #10111 - Use a dummy primary interface for unmanaged hosts
Unmanaged hosts require a host interface due to delegation of networkingattributes, and some others like 'name'. Since unmanaged hosts do notnecessarily have an interface associated (unless created through puppet...
fixes #10234 - Fix NIC taxonomies validation tests
Some of the tests in #9391 changed the way subnets should work regardingtaxonomies and some test data, this commit fixes that so tests are greenonce again.
Fixes #9391 - Added validation code to NIC, so it validates that host's location/org is compatible with the one set on NIC's subnet
fixes #10020 - add next-server/filename attrs to provision NIC DHCP record
A host's DHCP record used to be constructed with PXE attributes inOrchestration::DHCP, but moved to Nic::Managed during 43c4bd7. Nic::Manageddidn't add PXE attributes, so this commit adds these when provision? is set....
Fixes #10093 - VMware#create_vm calls clone_vm
Apply '.with_indifferent_access' to the args passed in to create_vm,ensuring symbol test for args[:image_id] succeeds when args["image_id"]is present.
fixes #9993 - Removes root password and partition table reqs unless build mode selected
Fixes #9947 - restrict user taxonomies if none is set