Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
3a31019a 06/19/2018 12:15 PM Ewoud Kohl van Wijngaarden

Fixes #23825 - Add exporting to Rakefile.dist

The benefit is that you no longer need the full bundle stack installed.
We also output the generated filename for use in scripts.

f728bfd4 06/15/2018 03:10 PM Eric Helms

Fixes #23952 - Include all asset paths when precompiling plugins (#5699)

9d43fc71 06/14/2018 12:05 PM Michael Moll

Fixes #19789 - fix Layout/SpaceAroundOperators cop

630061d2 06/14/2018 09:50 AM Michael Moll

Fixes #19775 - Fix Layout/ExtraSpacing cop

b697e513 06/14/2018 09:50 AM Michael Moll

Refs #22058 - refresh rubocop config and apply autofixes

b5fc39ee 06/07/2018 11:56 AM Ewoud Kohl van Wijngaarden

Fixes #23842 - Load factory_bot only when needed

By moving the factory_bot loading to when it's only needed we make it a
soft dependency. Production installs typically don't have factory_bot
installed which breaks rake tasks.

7d36ad77 06/06/2018 11:29 AM Eric Helms

Fixes #23764: Ensure proper plugin asset generation for SCSS

If image-url or asset-url are used in SCSS then they are not properly
generated for plugins. This change has the nice side effect of
both simplifying the code and re-using the existing Rails and Sprockets...

48a2d491 06/05/2018 07:27 AM Ewoud Kohl van Wijngaarden

Fixes #19968: Add a rake task to seed your database

This uses FactoryBot to seed the database with trivial hosts.
It allows developers to easily set up a bunch of hosts to get some
realistic database size.

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

Fixes #23142,#23503 - telemetry improvements

a653e389 05/22/2018 03:18 PM Ewoud Kohl van Wijngaarden

Fixes #23635 - Centralize use of facter

We have a bundler group for facter. That implies it's optional but
before this change it wasn't With this change it's only required if no
domain and fqdn are set. This is still the default so in most cases it's
no difference, but at least we have centralized all use of facter to one...

53ecc7fc 05/22/2018 09:52 AM Ewoud Kohl van Wijngaarden

Fixes #23577 - Configurable security token path

In production setups we prefer to store this file in /etc/foreman and a
symlink in the rails root.

1d1e4dab 05/19/2018 02:54 PM Ewoud Kohl van Wijngaarden

Fixes #23646 - Remove storeconfig leftovers

In Foreman 1.1 sharing the database with Puppet's storeconfigs was
deprecated. We've given users sufficient time to migrate away from it
and possibly broke it along the way. I haven't checked.

5b183386 05/15/2018 12:36 PM Ewoud Kohl van Wijngaarden

Fixes #23587 - Verify webpack precompile is needed

Plugins like bastion do have a package.json but no webpack resources.

fd0f94de 05/12/2018 02:32 PM Lonneke Vuur

Fixes #15549 - Correct documentation for exports rake task

1cb6f147 05/02/2018 07:57 AM Ohad Levy

fixes #23387 - FOREMAN_RSS_LATEST_POSTS option now works

the rake task rss:create_notifications failed to
parse FOREMAN_RSS_LATEST_POSTS value correctly.

0399f6db 04/28/2018 02:52 PM Eric Helms

Fixes #23414 - Allow plugins to compile in production

e46403cd 04/26/2018 12:27 PM Ondřej Pražák

Refs #23147 - Fix style offences

d0644ecc 04/24/2018 04:15 PM Djebran Lezzoum

Fixes #23295 - Robottelo tests reporting (#5464)

b0ee9fd6 04/17/2018 01:29 PM Eric Helms

Fixes #23147 - Allow plugins to compile production webpack assets

3cd8c84b 04/11/2018 07:21 AM Michael Moll

Fixes #19787 - Fix Layout/SpaceAfterComma cop

72dddb83 04/09/2018 11:31 AM Julian Todt

Fixes #23040 - Anonymize old audits (#5393)

Adds a rake task similar to audits:expire that instead of
deleting the entries anonymizes them.

ee360810 04/05/2018 11:56 AM Michael Moll

Fixes #19894 - Fix Style/RedundantParentheses cop

85021506 04/05/2018 11:56 AM Michael Moll

Fixes #19839 - Fix Rails/Present cop

9ae8fa19 04/05/2018 11:56 AM Michael Moll

Fixes #23123 - Fix Rails/ActiveRecordAliases cop

ac15d3d4 04/04/2018 01:59 PM Michael Moll

Fixes #23077 - Fix Style/TrailingCommaInArrayLiteral cop

b42045f1 04/04/2018 11:51 AM Julian Todt

Fixes #23039 - Remove deleted LDAP users

Adds a rake task ldap:remove_deleted_users which checks all users
that authenticate via LDAP whether their users are valid and
deletes invalid ones.

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

Fixes #19910 - Fix Style/UnlessElse cop

9dc49cdd 04/01/2018 12:39 PM Michael Moll

Fixes #19901 - Fix Style/SpecialGlobalVars cop

4a3383c9 03/22/2018 07:51 AM Tomer Brisker

Fixes #22158 - Add rake task to delete old audits (#5343)

Set the default period to 90 days or older.

b6c243a0 03/13/2018 02:20 PM Marek Hulán

Refs #22310 - provide a script to set origin for existing reports

348ec9c0 03/09/2018 07:46 PM Sebastian Gräßl

Fixes #22779 - Calculate out of sync host via origin interval (#5221)

f2194f0a 03/08/2018 08:27 AM Tim Wade

fixes #22575 - clean up test report

  • Replace deprecated only_path with ignore_query
  • Don't log to stdout for skipped tests

~* Don't override capture~

~While this code might be helpful for debugging, leaving it in for~
~every test run clutters up the test report.~...

f020721d 02/23/2018 12:38 PM Lukas Zapletal

Fixes #18675 - telemetry foreman API

41a56a22 02/14/2018 10:48 AM Shimon Shtein

Fixes #19244 - added clean interfaces rake task

0564618b 02/09/2018 12:25 PM Tomer Brisker

Fixes #19801 - Enable Lint/AssignmentInCondition cop

9e428144 01/29/2018 01:04 PM Michael Moll

Fixes #19889 - Fix Style/PerlBackrefs cop

9c1d6111 01/16/2018 09:42 AM Timo Goebel

fixes #22271 - rake console works with rails 5.1 (#5175)

da9865b8 01/15/2018 04:28 PM Michael Moll

Fixes #19907 - Configure Style/TernaryParentheses cop

4fd601cd 01/15/2018 04:28 PM Michael Moll

Fixes #19881 - Fix Style/Not cop

f35f4a5f 01/15/2018 04:28 PM Michael Moll

Fixes #19871 - Fix Style/MethodDefParentheses cop

7e880437 01/15/2018 04:28 PM Michael Moll

Fixes #19877 - Fix Style/NegatedIf cop

845e47ca 01/15/2018 04:28 PM Michael Moll

Fixes #19902 - Fix Style/StringLiteralsInInterpolation cop

531cb94a 01/15/2018 04:28 PM Michael Moll

Fixes #19849 - Configure Style/AndOr cop

e4f876c4 12/29/2017 01:22 PM Daniel Lobato Garcia

Fixes #20536 - sprockets3 syntax in plugin_assets.rake

sprockets 3 deprecates the use of environment.register_engine. We should
instead register a transformer as per the migration guide
(https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#registering-all-versions-of-sprockets-in-processors)

2dfa83ab 12/27/2017 09:59 AM Michael Moll

Fixes #19853 - Fix Style/ColonMethodCall cop

2e372744 12/25/2017 02:44 PM Tomer Brisker

Fixes #19797 - fix Layout/SpaceInsideStringInterpolation cop

2e930867 12/25/2017 02:44 PM Tomer Brisker

Fixes #19795 - Fix Layout/SpaceInsideParens cop

8361c788 12/25/2017 02:44 PM Tomer Brisker

Fixes #19788 - fix Layout/SpaceAroundBlockParameters cop

ffedb85d 12/25/2017 02:44 PM Tomer Brisker

Fixes #19769 - Fix Layout/CommentIndentation cop

68b3c50d 12/25/2017 02:44 PM Tomer Brisker

Fixes #19780 - fix Layout/IndentationWidth cop

1b276e91 12/19/2017 08:55 AM Michael Moll

Fixes #22016 - update rubocop to 0.52

  • Refs #22016 - make rubocop 0.51 pass
  • Fixes #22016 - update rubocop to 0.52
272386b5 12/18/2017 06:13 PM Tomer Brisker

Fixes #19820, #19822, #19824 - Fix some performance cops

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...

596cf7cf 10/27/2017 03:52 PM Timo Goebel

refs #21394 - user login with access token api

ff1e9ffc 09/18/2017 10:50 AM Dominic Cleal

Fixes #20950 - Use 'distinct' in AR finders

a9396403 08/25/2017 07:05 AM Partha Aji

fixes #20699 - Rake task to selectively backup tables

This commit adds an optional param "tables" to db:dump task
One can use to this selectively dump data from desired tables.
Its main purpose is to curate debug data from customers for analysis.
For example one can run...

07a748a8 08/10/2017 12:10 PM Daniel Lobato Garcia

Fixes #20543 - implement asset_path for plugin_assets

Sprockets runs on its own context in the task plugin_assets.rake since
#20287. This means that the asset paths are not visible to it
immediately, the way we provide that functionality is by overriding a...

b8139123 07/26/2017 06:45 AM Michael Moll

Fixes #20287 - fix plugin assets precompilation

The error was only visible with RAILS_ENV=production

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).

466a6982 07/20/2017 05:29 AM Marek Hulán

Fixes #20321 - run puppet tasks under admin

6a8574d7 07/18/2017 05:50 PM Tomer Brisker

Fixes #19808 - Remove useless assignments

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....

c1ca2c0d 06/28/2017 06:42 AM Daniel Lobato Garcia

Fixes #20104 - fix_db_cache needs to run as admin

The rake task 'fix_db_cache' triggers CacheManager, and CacheManager
tries to find roles, user groups, etc.. without any permissions. This
will cause it to fail with an error similar to
https://gist.github.com/52da11cb368ec530bcf0247d3ee38855 ....

cd68b208 06/19/2017 06:11 AM Marek Hulán

Fixes #20017 - mail notifications work for global admins

d96635ce 06/19/2017 05:45 AM Ohad Levy

fixes #19913 - fixes rubocop Style/ZeroLengthPredicate

c42c98f0 06/16/2017 03:21 PM Tomer Brisker

Fixes #19798 - Fix Layout/TrailingBlankLines cop

56d54dc2 05/25/2017 07:22 AM Amir Fefer

Fixes #19034 - add tasks for clearing expired notifications

eb831f37 04/12/2017 10:14 AM Ivan Necas

Fixes #19241 - fix warning: already initialized constant ARGV

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...

89d84f63 03/09/2017 07:45 AM Marek Hulán

Fixes #12163 - add a rake task to clean up orphaned facts

d71a701f 01/25/2017 03:47 AM Shimon Shtein

Fixes #18213 - Added webpack folder to string extraction

f2c05b8d 01/11/2017 03:31 AM Marek Hulán

Fixes #17330 - skip admin email if it's unknown

When admin user is being seeded the Setting might not exist at that
moment. We can't just create it with value, since the setting would
be invalid because of other attributes. Therefore we split settings
creation from the setting list so we could create it from seed too....

0f791ba5 01/02/2017 10:49 AM Daniel Lobato Garcia

Fixes #17837 - Fix hosts:scan_out_of_sync task

The task relies on Ping, which was removed since Ruby 1.9. I've moved it
to rely on net-ping instead. Notice the ping now relies on the 'ping'
binary being in the foreman user path for this to work with foreman-rake

b1dad4cd 11/28/2016 10:35 AM Tomer Brisker

Fixes #1556, #11615 - Remove puppet rdoc support

Puppet rdoc support has been broken for a long time. Removing it from
Foreman.

c0cd333a 11/28/2016 05:40 AM Daniel Lobato Garcia

Fixes #17488 - Add confirmation to import db task

d39ced29 11/25/2016 08:12 AM Ohad Levy

fixes #17474 - DROP db prior to restore on postgres

when using postgres as a database, and restoring and
existing db dump, clean the target database prior to restore.

this allow the usage case when installing a new server,
running foreman-installer and then restoring the database.

afd5e512 11/18/2016 04:38 AM Ivan Necas

Fixes #17361 - ensure plugins migration paths are set

ea98080f 09/24/2016 03:20 AM Dominic Cleal

fixes #16557 - move tests into modern Rails layout

Models, controllers, mailers and helpers are now in test/ subdirs
matching app/ subdirs. Service, miscellaneous and old test/lib/ tests
are now in test/unit/ separated from models, which obsoletes the custom...

a29f3e39 09/19/2016 04:29 AM Tomer Brisker

Fixes #16565 - Correct host search by parameters

Overrides for parameters values caused incorrect results for when
searching by parameter value. This commit fixes those results, and
improves the handling of parameter priorities in general. A new rake
task, `parameters:reset_priorities` is introduced that should be invoked...

b79ef2a8 09/14/2016 03:21 AM Dominic Cleal

fixes #16529 - require rake/testtask explicitly

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...

55de1d1c 08/10/2016 10:49 AM Dominic Cleal

fixes #16046 - run webpack:compile as pre-req to test rake tasks

The webpack:compile task is now run before all rake test tasks,
including jenkins:*. Except for jenkins:integration, a failure in
webpack:compile is issued as a warning as unit tests don't require...

fef6cff7 07/19/2016 10:42 AM Tomer Brisker

Refs #12193 - Remove remaining cached counters

c773c0ef 07/19/2016 10:42 AM Tomer Brisker

Fixes #12193 - Stop using counter_cache for host[group] counts

This is aimed to prevent deadlocks caused by Rails' implementation of
counter_cache that is hit when multiple hosts are created or updated at
the same time. An added benefit is that the counters will now display...

f21ca7d5 07/06/2016 10:04 AM Dominic Cleal

fixes #13845 - remove 1.13 deprecations

a81a259c 06/23/2016 09:37 AM Lukas Zapletal

Fixes #15439 - improved error reporting for media

7c5bdba8 06/02/2016 10:18 AM Lukas Zapletal

Fixes #15092 - CSV exporter rake task

f0091ac8 05/06/2016 10:29 AM Dominic Cleal

fixes #14133 - update to rubocop 0.39.0

Replaces hirb-unicode with the maintained hirb-unicode-steakknife fork,
due to conflicting requirements on unicode-display_width with the older
hirb-unicode and new rubocop.

Rake is unpinned due to the newer rubocop's compatibility with it, and...

24859f28 05/04/2016 10:18 AM Ondřej Pražák

Fixes #14898 - Fix for config task
Removing undefined variable took care of it.

5b53236f 04/29/2016 11:26 AM Daniel Lobato Garcia

Fixes #14843 - Improve rake config error handling

Currently rake config doesn't give you any hint when you provide an
invalid setting. Instead, it should tell you what was wrong with the
input, and try to guide you to a valid one.

This commit provides error handling for wrong JSON values, and prints...

15f0884e 04/29/2016 07:11 AM Dominic Cleal

fixes #14866 - prod2dev Rails 4 compatibility

- change .first call which checked presence of id field, but would be
automatically sorted by the primary key ('id'), causing errors on
join tables without the column
- update use of offset/limit in model finders...

73d265f6 04/27/2016 03:20 AM Luis Fernandez Alvarez

Fixes #14778 - Ensure parsing complex types keep target type

Without this patch, the config task would send complex types as
strings to the setting model.

This patch makes the parsed object to keep the target type and it
assumes the setting model will do the internal conversion (now to...

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...

db851032 04/15/2016 04:54 AM Walden Raines

Fixes #14645: fix production images for plugins.

Images were going through the legacy asset helpers in
sprockets-rails, this commit sets some options on the context
class to ensure we are looking up digested images in the correct
path.

http://projects.theforeman.org/issues/14645

d395b951 04/11/2016 07:55 AM Dominique Quatravaux

Fixes #14508 - foreman-rake console can take arguments

One can now say e.g.

foreman-rake console -- --sandbox

We need the --, otherwise foreman-rake itself tries to interpret the flags

d8520a15 03/16/2016 04:10 AM Eric Helms

Fixes #14221: Use Sass Rails template when compiling plugin assets

The Sass::Rails::Template is needed to resolve css files imported
in an SCSS file without setting them to css imports which lead
to 404s in production.

be6e6efc 03/08/2016 03:37 AM Dominic Cleal

fixes #14076 - remove unused Puppetclass hostgroups counter

4406f5af 02/03/2016 07:46 AM Dominic Cleal

fixes #8874 - rework POT/PO updates for gettext 3's edit.po

3.1.13 adds an intermediate .edit.po file alongside each .po, which is meant
to be kept outside of SCM and updated by users, whereupon it's merged back into
the .po on the next rake gettext:find execution....

755ade45 01/21/2016 05:29 AM Stephen Benjamin

fixes #13033 - require new location of gettext_i18n_rails_js tasks

8eaa16f5 01/11/2016 09:37 AM Eric Helms

Fixes #13098: Set assets environment the same as core assets

The introduction of Sprockets 3+ led to the environment-version
being set to ActiveSupport::StringInquirer object instead of a
String. The Sprockets digest method does not support digesting
classes of type ActiveSupport::StringInquirer....