Project

General

Profile

Download (17 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
75ba4ecc 05/11/2024 06:03 PM Oleh Fedorenko

Fixes #37436 - Remove TimedCacheStore class

Foreman uses either redis or file store for quite some time.
This class is not being used anywhere.

65481d93 02/13/2024 02:27 PM Maria Agaphontzev

Fixes #37161 - load public/webpack when available

38aa4bbf 11/02/2023 03:56 PM Eric Helms

Refs #36815 - Require redis group if it is present

bb7b900b 11/02/2023 01:25 PM Evgeni Golov

Refs #36815 - explicitly require redis

ActiveSupport only loads the Redis gem when one enables RedisCacheStore,
but we need to obtain the default values before that.

For some reason this did not break on EL, but only on Debian.
Maybe because we use plain gems on the one vs bundler on the other....

76ec08d7 10/29/2023 04:52 PM Markus Bucher

Fixes #36842 - reduce impact of rails-cache issue

Original rails-issue: https://github.com/rails/rails/issues/49690

2ae0516b 10/17/2023 04:16 PM Eric Helms

Fixes #36815: Set Redis reconnect_attempts to default

ffeacdd4 07/12/2023 01:09 PM Ewoud Kohl van Wijngaarden

Fixes #36583 - Remove power_manager from autoload_paths

This directory no longer exists.

Fixes: 3484613f7fb7 ("fixes #2411 - move files in /models to /concerns, /services, /mailers, /observers")

f034a4fc 06/30/2023 03:19 PM Oleh Fedorenko

Fixes #35432 - Use Rails 6.1 defaults

8fd2bf42 05/17/2023 02:17 PM Adam Ruzicka

Refs #36330 - Place assets into plugin dir

d9e83315 05/10/2023 02:04 PM Adam Ruzicka

Fixes #36331 - Expose translation registration in plugin DSL

cc7af718 11/04/2022 02:46 PM Leos Stejskal

Fixes #35088 - Remove GCE Compute resource code

All code related to GCE compute resource
is now in Foreman Google plugin

https://github.com/theforeman/foreman_google

92fa7089 07/15/2022 07:42 AM Oleh Fedorenko

Fixes #35210 - Allow symbols and hashes in YAML columns

707d7fff 06/01/2022 10:48 AM Evgeni Golov

Fixes #34994 - require ApplicationRecord early for migrations

Without this migrations that use models fail with

PG::UndefinedTable: ERROR:  relation "application_records" does not exist
7fa5c261 03/30/2022 02:50 PM Ondřej Ezr

Fixes #34646 - move initialization into initializer (#9155)

Tidies up application.rb by moving initialization steps into initializer.
This also makes sure that Facets are not the first subclass inheriting from ApplicationRecord.
Facets being first derails Rails initialization.

8c4d848f 03/23/2022 06:23 AM Leos Stejskal

Fixes #34526 - rescue_from JSON params parse errors

Use rescue_from block instead of the CatchJsonParseErrors middleware
See https://github.com/rails/rails/pull/34341

13529490 03/15/2022 10:00 PM Ondřej Ezr

Fixes #34391 - use facets to expose reported data in API

We use only uptime_seconds in the API and not even properly.
Facets should have its own view to separate its data from the main host attributes.

0350ff55 03/09/2022 09:05 PM Tomer Brisker

Refs #10413 - Drop unattended mode check in app init

221d255d 02/21/2022 11:00 AM Ondřej Ezr

Fixes #30122 - remove usage of controller level force_ssl

Foreman's use case for HTTP-only is provisioning. Many installers, like Red
Hat's Anaconda or Debian Preseed, either do not support it or make it very hard
to use HTTPS. This is especially hard since often a custom CA is used so the...

7ccb4f68 02/14/2022 01:10 PM Leos Stejskal

Fixes #34353 - Fix early load of fog_extensions

213bbb1c 02/02/2022 10:04 AM Ondřej Ezr

Fixes #34366 - skip GraphQL types enhancements in migrations

GraphQL types try to touch database, but that is not possible during the db migration.
These fields enhancements needs to be disabled during migrations.

8bcdc783 01/05/2022 09:27 AM Leos Stejskal

Fixes #34165 - Require code from lib folder

47c9a48f 11/23/2021 02:33 PM Leos Stejskal

Fixes #33967 - Loading constants in initializers/active_record_extensions.rb

7f01e1b3 10/21/2021 12:20 PM Adam Ruzicka

Fixes #32328 - Infrastructure roles

Introduces things needed to assign infrastructure roles to hosts.

A host can now have an infrastructure facet, which can be used to mark a
host as foreman instance by setting a flag on the facet. The facet can
also be used to establish a relationship between the host and a smart...

264e4a70 10/12/2021 12:32 PM Lukas Zapletal

Fixes #14854 - connection libvirt leak fixed

99c385d3 07/22/2021 11:12 AM Justin Sherrill

Fixes #33008 - switch to sql schema dumping

f25a21e1 07/19/2021 12:26 PM Ewoud Kohl van Wijngaarden

Fixes #33013 - Silence bundler in production

In production deployments the Rails directory is usually not writable.
This leads to warnings. By using the silent UI this is hidden from
users.

76816b9d 06/29/2021 10:13 PM Lukas Zapletal

Fixes #32635 - fix already initialized constant

66e39019 04/19/2021 02:19 PM Eric Helms

Fixes #29782: Drop Passenger work arounds

8609ef84 03/18/2021 01:21 PM Ewoud Kohl van Wijngaarden

Fixes #30779 - Implement ActionDispatch::RemoteIp (#7960)

The ActionDispatch::RemoteIp middleware can provide the remote IP
correctly as a property of the request object. This looks at
X-Forwarded-For headers while stripping out reverse proxies and falls...

25820ea0 01/19/2021 08:43 AM Jonathon Turel

Fixes #31669 - Register RegistrationFacet in application.rb

2ab92492 09/17/2020 11:49 AM Adam Ruzicka

Refs #30667 - Use separate logger config for sidekiq workers

Sidekiq emits two log messages for each job it processes and those end up in
system journal and possibly /var/log/messages. Originally I opened a PR so
sidekiq workers would "inherit" their log levels from Dynflow loggers. This made...

5de05e85 07/16/2020 06:48 AM Ondřej Ezr

Fixes #30126 - use facets fact parsing

7895751c 07/12/2020 11:10 AM Ondřej Ezr

Refs #30098 - Drop trends models

8a32cb86 06/17/2020 12:45 PM Michael Moll

Fixes #30030 - use media_type where appropriate

Also, set config.action_dispatch.return_only_media_type_on_content_type
to false, as it will be in Rails 6.1.

c4c9114f 05/21/2020 03:54 PM Tomer Brisker

Refs #29872 - Always require test_unit railtie

It is required for defining the 'test' rake tasks.

140039fc 05/21/2020 12:28 PM Tomer Brisker

Fixes #29872 - Only load used Rails frameworks

6cb37796 05/04/2020 01:35 PM Tomer Brisker

Fixes #29284 - Drop Rackspace support

dc0983d5 05/01/2020 09:33 AM Tomer Brisker

Fixes #29642 - drop sqlite support

82b4a36d 03/18/2020 10:56 AM Michael Moll

Fixes #19892 - Fix Style/Proc cop

e8e637ba 03/12/2020 01:56 PM Chris Roberts

Fixes #29311 - Add Rails logging for API deprecation warnings.

29fe60a8 03/04/2020 03:16 PM Adam Ruzicka

Fixes #29258 - Initialize dynflow in puma workers

When running puma in clustered mode in production, Dynflow would get initialized
in the master process before workers were forked off and due to CoW the workers
would use the same world id.

With this commit we will eagerly initialize Dynflow only when running under...

44e19b35 02/28/2020 01:14 PM Michael Moll

Fixes #19792 - Fix Layout/SpaceInsideBlockBraces cop

d5dc07f3 12/26/2019 04:11 PM Michael Moll

Fixes #28576 - Fix Style/RedundantBegin cop

20492094 12/20/2019 12:58 PM Michael Moll

Fixes #28511 - Fix Lint/SendWithMixinArgument cop

f3350559 11/19/2019 05:07 PM Tomer Brisker

Fixes #24838 - Use integer representation for boolean on sqlite

We don't really need to migrate boolean fields as sqlite isn't supported
production database and is only used for running build tasks.

42feb26c 07/19/2019 09:31 AM Marek Hulán

Fixes #26393 - extract uptime to reported facet

A new Reported Data facet is introduced. This should be used for storing
reported information from various fact parsers. Fact Parser now defines
a new optional to implement method, to gather boot time in seconds. Some...

cdd87353 07/01/2019 09:49 AM Lukas Zapletal

Fixes #26681 - new logger named taxonomy

fbc49a43 06/17/2019 08:23 AM Timo Goebel

fixes #26541 - graphql: add plugin api

a3ef3bb6 06/11/2019 07:00 AM Ohad Levy

refs #26918 - adds redis support in docker-compose

this uses environment variables support introduced in 47aca03d3f3be870aab808b58480f281863de766
and also fixes a minor typo.

[skips ci]

fab71a61 06/07/2019 01:04 PM Timo Goebel

fixes #26918 - add a redis caching backend

d83d1ec0 03/05/2019 02:27 PM Lukas Zapletal

Fixes #26039 - disable blob logger by default

b24e0855 02/12/2019 02:57 PM Timo Goebel

fixes #26002 - set cors header via env variable

4850bbd2 01/11/2019 09:37 AM Tomer Brisker

Fixes #25829 - Remove notification for removed settings

The deprecated settings have been removed, so these notifications will
never be displayed anymore. Keeping the blueprint in place so we can
reuse it in the future if needed.

f1f369ab 12/18/2018 11:24 AM Lukas Zapletal

Fixes #25619 - refactor logging middleware

fabec129 11/29/2018 05:35 PM Tomer Brisker

Fixes #25492 - Remove the :login setting

70aaaa22 10/07/2018 12:58 PM Tomer Brisker

Fixes #24800 - Notify deprecation of taxonomy, login settings

10431849 08/27/2018 07:05 AM Marek Hulán

Fixes #24710 - extend audits in to_prepare

6c85563e 08/06/2018 09:35 AM Michael Moll

Fixes #24539 - don't initialize dynflow in db:create

It fails on Rails 5.2

d666c6c4 07/09/2018 02:25 PM Ewoud Kohl van Wijngaarden

Fixes #23579 - Use a bundler group for assets

b5eca9b3 06/22/2018 07:53 AM Michael Moll

Fixes #23962 - Fix Style/ExpandPathArguments cop

c030096e 06/01/2018 09:03 PM Lukas Zapletal

Fixes #23142,#23503 - telemetry improvements

68388bc2 04/26/2018 04:29 PM Michael Moll

Fixes #19781 - Fix Layout/LeadingCommentSpace cop

38a38b66 04/15/2018 06:08 PM Adam Ruzicka

Fixes #23223 - Don't allow Dynflow to initialize in db:drop rake

a3aaa02f 04/04/2018 10:36 AM Tomer Brisker

Fixes #23098 - Allow searching on all audited models by type (#5395)

This automatically adds all the audited models in an after_initilize
block so that models defined in plugins are also included. All the
search related definitions for audit have been extracted to a seperate...

5cbba9ec 04/01/2018 04:40 PM Tomer Brisker

Refs #22285 - Prepare tests for strong params enforcement

- Fix broken hosts api tests
- Fix role cloning tests
- Fix ssh key controller api test
- Fix http proxies controller test
- Fix lookup key override api controller test
- Fix puppetclass controller api test...

bd941767 04/01/2018 04:40 PM Tomer Brisker

Refs #22285 - add common parameters to strong_params whitelist

Despite the name, this list only prevents errors from being raised from
these parameters which are still filtered.

d33f754f 04/01/2018 12:39 PM Michael Moll

Fixes #19793 - Fix Layout/SpaceInsideReferenceBrackets cop

a4d31ec0 03/29/2018 08:53 PM Ivan Necas

Fixes #22888 - remove code around dynflow db_pool_size

Remove the code in favor of the Dynfow, where we can handle all the
logic at one place.

abbe2a04 03/13/2018 09:50 PM Lukas Zapletal

Fixes #22493 - structured logging support

4093de10 02/26/2018 03:23 PM Ewoud Kohl van Wijngaarden

Refs #18675 - Optionally load prometheus exporter

In case the bundler group telemetry is not installed, we should handle
that.

This moves the middleware loading to better match the other middleware.

a55600f4 12/11/2017 10:11 PM Dominic Cleal

Fixes #21097 - Update to Rails 5 configuration options

3cabaaaf 12/11/2017 01:58 PM Michael Moll

Fixes #21084 - Always Use Rails 5.0, Drop Rails 4.2

8c2262ac 11/29/2017 12:20 PM Daniel Lobato Garcia

Fixes #18292 - Make notifications from an RSS feed (#4240)

This adds a task to connect to an RSS feed, by default the one from our
community blog. The idea is to make this run every night with 'cron' on
every Foreman installation to keep people updated about changes, and...

c2e58b1b 10/18/2017 10:58 AM Ivan Necas

Fixes #21295 - load the routes before we load the controllers

After upgrade from Rails 4.1 to Rails 4.2 there was significant
drop on rails startup in production. I have tracked it down to
several changes in Rails, but it might also be affected by the
fact the we use the url_helpers on more places than older Foreman...

7f8fd14d 09/19/2017 09:29 AM Sebastian Gräßl

Fixes #20201 - Global HTTP proxy for outgoing requests

This introduce two new settings to proxy outgoing HTTP
requests and one to except certain hosts from it.

The extensions for Excon::Connection and Net::HTTP
allow setting a proxy on their requests.

0f225c99 09/13/2017 04:56 AM Ivan Necas

Fixes #20908 - postpone initialization of Dynflow runtime

In #18618, the initialization code was moved from foreman-tasks to
foreman. There was however one thing done differently, where the
initialization of dynflow world was moved directly to the time
`Rails.application.dynflow` was called. This is not right, as there are...

972adab0 07/31/2017 06:55 AM Dominic Cleal

fixes #10982 - configure RestClient log to 'proxy' logger

Request/response information is sent to the proxy logger, showing the
URLs called, headers, request body etc.

The X-Request-ID header is now also set in the proxy requests to a
random ID stored in the session, to prevent the user's real session ID...

1ed59c63 07/20/2017 10:41 AM Daniel Lobato Garcia

Fixes #18618 - Use Dynflow as an ActiveJob backend

This commit initializes the Dynflow world in a very similar manner to
foreman-tasks (if a Dynflow world is available from foreman-tasks, we
use that one).

fbbab0d8 07/07/2017 10:24 AM Michael Moll

fixes #18500 - replace quiet_assets with sprockets-rails flag

  • fixes #18512 - support sprockets-rails 3.x

The app.assets environment is no longer always configured, and instead
is only configured when the regular Rails environment is loaded. Loading
only the 'assets' group initializers isn't sufficient....

6d9f34fe 07/05/2017 08:26 AM Dominic Cleal

fixes #19050 - add Ruby on Rails 5.0 support

Adds configurable support for running on Ruby on Rails 5.0 or 4.2,
defaulting now to 5.0 on Ruby 2.3 or higher. Ruby versions with partial
or no support remain using 4.2 by default. Other points:

1. SETTINGS[:rails] is loaded pre-Rails boot, then post-boot the...

987aa983 06/07/2017 09:59 AM Lukas Zapletal

Fixes #19728 - set admin user in rake console

40fffe69 04/24/2017 12:37 PM Dominic Cleal

fixes #19317, #10927 - move registries to autoload_once path

Partially reverts 70ce8fe to reinstate autoload_once_paths as the
preferred way to load registry-type objects with class variables
containing data set up during app initialisation (e.g. plugin
registrations, menu items.)...

2e7dfc3d 04/12/2017 12:52 PM Ivan Necas

Refs #13772 - ensure ApplicationRecord is loaded soon enough

In `lib/core_extensions.rb` we define as `per_page` method, that gets
called by `will_paginate` at load time of the models. The issue is
we are using `Setting` model there, that inherits from the...

7923c95d 04/06/2017 07:19 AM Dominic Cleal

fixes #18445 - always define eager_load_paths, use require_dep

Allows `eager_load!` to be called or enabled in any environment without
loading files under lib/ twice. Switches many `require` calls to Rails'
`require_dependency` to always use its dependency loader, so when eager...

a36689ab 03/09/2017 07:45 AM Ohad Levy

fixes #18681 - moves polymorphic subject into notification object

also adds host build, destroyed and missing owner UI notifications

35c14172 01/26/2017 08:18 AM Ivan Necas

Refs #15779 - make background processing unavailable for now (#4217)

The original PR got vetted in the packaging phase and including
foreman-task as dependency of Foreman was refused. We need to rethink
our approach for getting the foreman-tasks functionality available...

1538b8d2 12/04/2016 04:48 PM Ivan Necas

Refs #15779 - move the foreman-tasks to own bundle group

This makes it easier to achieve a minimal setup, that might be needed for
things like plugins building etc.

27752930 11/25/2016 02:43 AM Kavita Gaikwad

Fixes #17343 - set deep munge config off

deep_munge was introduced as a solution to keep
Rails secure by default which results in
'empty array becomes nil in params'.
Thats why, set deep_munge config off in application.rb.
Also, added changes which will cast param argument to string...

f20020ce 09/26/2016 04:57 AM Daniel Lobato Garcia

Fixes #16643 - Display origin for facts

This commit sets the interfaces for the fact importers to start setting
a Fact origin, and display it in the UI

46e1ea9f 09/23/2016 05:09 AM Lukas Zapletal

Fixes #9016 - improved fact loading performance

This change improves fact loading performance by order of magnitude on
SQLite mostly thanks to explicit transaction. An extra optimization was
done for the most important "update" method call which is mostly used...

e834c3d4 09/16/2016 03:24 AM Dominic Cleal

fixes #16567 - use constants to register Rack middleware

4cbf879e 08/24/2016 06:41 AM Lukas Zapletal

Fixes #12634 - New HW Model flag pxe_loader

Implementation of

https://github.com/theforeman/rfcs/blob/master/text/0001-PXE-Booting-UEFI.md

In short, new host/hostgroup flag PXE loader is added to specify TFTP
DHCP filename and Foreman now orchestrates all PXE-capable templates...

d97deb49 07/28/2016 04:24 AM Dominic Cleal

fixes #15863 - add short session or request ID to logs

New middleware stores the session and request IDs (either from
X-Request-ID or a UUID generated by Rails) in the logger's thread
storage. The truncated session ID is now logged by default to minimise...

b28c934b 06/13/2016 06:12 AM Dominic Cleal

fixes #14913 - configure Hirb/Wirb via irbrc

Wirb 2.x can't be started before the IRB session itself, so use an irbrc
file per its docs to activate it and Hirb when starting a console.

f4459c11 05/12/2016 09:56 AM David Davis

Refs #3809 - Turning on some rubocop cops

e5b9e308 05/05/2016 01:24 PM Dominic Cleal

fixes #14912 - setup console gems under bundler_ext

96d32beb 04/28/2016 06:43 AM Dominic Cleal

fixes #14820 - override Rails log level with Foreman::Logging config

The log_level is expected to be explicitly configured in the Rails
config in the production environment.

85a97146 04/20/2016 10:06 AM Dominic Cleal

fixes #13244 - update Rails to 4.2.6

- Add responders gem to support class-level respond_to usage
- http://edgeguides.rubyonrails.org/4_2_release_notes.html#respond-with-class-level-respond-to
- Replace foreigner with native Rails 4.2 FK support
- uses a patch from Rails 5 to support Foreigner's...

32f3b017 04/13/2016 10:32 AM Marek Hulán

Fixes #14588 - introduce plugin API for extending template helpers

bd95cda6 04/05/2016 07:38 AM Dominic Cleal

fixes #14415 - check CR availability with Fog, not SETTINGS

Simplifies the code for checking compute resource availability, which
can easily be determined with the registered Fog providers instead of
being stored in SETTINGS in app initialisation. Plugins should always be...