Fixes #11704 - consider no reports as warning if reports are expected
refs #11776 - do not set default taxonomy settings by default
This reverts commit 8809a63b93b3f79eecb33a4757c4c13d2cbf4421.
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 #10106 - Make tests run in parallel
Run rake parallel:test to run tests in several processes. The gem willauto split the tests in as many cores as you have available.
Keep in mind running tests in parallel could highlight race conditionswe would've missed otherwise, so some tests might to be fixed to ensure...
fixes #9108 - parent parameters are now overrideable
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 #11693 - removed 'destroy' for smart class parameter from API controllers
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 #11426 - remove puppet class paremeters no longer possible during edit in UI
fixes #9654 - mark seeded org/loc as default
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 #1477 - Hostgroup no longer looses puppet classes when environment changed during hostgroup editing
Fixes #11650 - show global parameter value inherited from parent taxonomy
fixes #11649 - taxonomies api - add description to base.json.rabl
Adding the 'description' to the base.json.rabl so that it is displayedwhen a user performs commands like 'organization list' from hammer-cli-katello.
E.g.
hammer> organization list---|----------------------|----------------------|---------------...
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 #11579 - Reports show/destroy restricted by host authorization (CVE-2015-5233)
ReportsController 'show' and 'destroy' now perform a check to see ifthe User is authorized to see the Host associated with the Report. Incase it's not, it returns 404, as to not give hints whether a Report...
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 #9058 - interfaces should not be affected when changing loc/org
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 #11255 - Fixed inheritance checks for explicit input on host clone
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 #10929 - Add removed widgets to dashboard
This commit allows users to re-add widgets. At this point it's onlypossible to recover removed widgets by clicking on "Reset to default".
To do this I populate the 'Add widgets' list by getting a diffbetween the current widgets and the available ones. The code calls any...
Fixes #4830 - Added a new template to show when no trend data is collected.
Fixes #10550 - Settings API will not update when value parameter is missing
Fixes #11011 - notifications are removed when window is changed
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 #8343 - Consolidated code paths, and removed unnecessary DB calls for parent object
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 #10356 - changed the POST/PUT RABL template to be the same as the GET template
HTTP response code standardized to 201 on create.
Fixes #10438 - Removed trends:clean task, as it is no longer needed
Fixes #11025: Allow skip test runner to run through Jenkins test task.
The Jenkins CI gem implements its own custom test runner. When tryingto use a custom test runner in the jenkins environment, this testrunner needs to be inherited from and included as the last argument....
Fixes #10867 - OpenStack boot_from_volume is true only when checked
Refs #3809 - Style/blocks cop enabled
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 #10963 - partition table can't access os ids
Fixes #10785 - force encoding for encrypted fields
fixes #10868 - use classify for a Symbol instead of humanize
fixes #10952 - remove empty test files
Fixes #10729 - clear notifications on login
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
Refs #10720 - Use API v2 response for vm_compute_attributes
Fixes #10780 - factory girl examples for provisioning
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 #6976 - Build default PXE menu should be POST request
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 #10715 - api build_pxe_default returns non-JSON message
The fix adds a new method `render_message` for responding with a statustext.
fixes #9301 - make puppet environment optional for hosts
fixes #10695 - don't seed initial taxonomies if there are any already
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 #3711 - usergroup name can't be null
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 #9031 - Add routes to view template_combinations per hostgroup / environment
fixes #10586 - make the 401 status comparison actually match.
fixes #1510 - notification when host finishes building
Fixes #10583 - perform uniq in database instead of in memory when possible
fixes #8597 - escape slashes for ptable URL parameters
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 #10439 - add tests for trends:reduce task to deal with additions
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