Commit Graph

172 Commits

Author SHA1 Message Date
uu59
3071b3d2c4 Add config test button to running backup 2015-01-14 18:02:16 +09:00
uu59
2766ea95fe Revert "Ensure message as error" (logged_errors method is in the bug)
This reverts commit 8571bb04ee.
2015-01-14 17:45:47 +09:00
uu59
8571bb04ee Ensure message as error 2015-01-14 16:21:22 +09:00
uu59
a1579e186e Add configtest button for config history page 2015-01-14 16:06:54 +09:00
鳥井 雪
eab7f6188e Move comment to correct positon 2015-01-14 14:47:10 +09:00
鳥井 雪
aa0e68d653 Refactor #set_locale in applicaiton_controller
by dividing the method to 3 methods each decides locales from given conditions.
2015-01-14 14:24:00 +09:00
Ryan T. Hosford
6572b990bb Addresses duplicate code in agents_controller
- Adds agents_controller_spec
2015-01-13 00:33:58 -06:00
Ryan T. Hosford
cfb91634ac Drying up polling_controller 2015-01-12 21:46:40 -06:00
hassaku
9cc12f7bc3 Show exceptions if updating note fails. 2015-01-07 17:34:02 +09:00
hassaku
7e062f860f Add action to update a note. 2015-01-07 14:09:19 +09:00
鳥井 雪
92134654ea Make dir app/models/fluentd/setting_archive/
and move backup_file model under it. prepare for gathering models that concernig about archive
2014-12-26 14:59:50 +09:00
鳥井 雪
6105886705 Change to use application.yml setting instead of hard coded number 2014-12-17 18:44:17 +09:00
鳥井 雪
a61ba6f506 Change to use array.first(5) instead of array[0..4] 2014-12-17 17:08:30 +09:00
鳥井 雪
560035b185 Add UI for running bacukp config 2014-12-17 17:04:24 +09:00
鳥井 雪
0786fafb9b Remove keyword argument from methods
for Ruby 1.9
2014-12-16 19:03:06 +09:00
鳥井 雪
36bd26a37d Add UI to reuse backup config files 2014-12-16 17:58:34 +09:00
Koichi TANAKA
27807cf259 Add feature spec for /daemon/setting 2014-12-03 18:13:37 +09:00
hassaku
963307c7b5 Add forward input settings. 2014-12-03 15:17:04 +09:00
hassaku
155e33d6dd Add http input settings. 2014-12-03 15:17:04 +09:00
uu59
9ac66f05d3 Add out_stdout setting 2014-12-03 15:17:03 +09:00
uu59
f44e6791e7 Add in_monitor_agent setting 2014-12-03 15:17:03 +09:00
uu59
fd3302f42d Fix and refactor file preview 2014-11-27 17:35:20 +09:00
uu59
eb465221b8 Error handling 2014-11-26 15:44:11 +09:00
uu59
00c2eb1e5a CRUD for each setting section 2014-11-26 15:09:53 +09:00
uu59
763c3a4a95 Vue-ify setting display 2014-11-26 13:43:24 +09:00
uu59
86351718f3 Add JSON API for changing config by section 2014-11-25 18:05:25 +09:00
uu59
4bc6743841 Fix plugin setting page with errors 2014-11-25 13:33:41 +09:00
uu59
22dd9c4bdb Display current setting 2014-11-18 16:00:44 +09:00
uu59
3c7786f262 Refactor plugin setting
Adding support for some plugins was hard.
After this commit, easy to add a plugin that has commonly
setting style.

Before:
- Add model, controller, and views for it.

After:
- Add model and controller. view is shared.
2014-11-04 14:29:31 +09:00
hassaku
3d87c91524 Hide processing plugins not to uninstall. 2014-10-08 00:16:26 +09:00
Kyuden
8b07f217ff Display success message when password updated successfully 2014-10-03 12:41:51 +09:00
uu59
7a0c8de799 Merge pull request #85 from hassaku/show_processing_status
Show processing status of plugin install
2014-10-01 16:19:55 +09:00
hassaku
4e959c1fd2 Refactor logic in view using decorator. 2014-09-30 22:07:52 +09:00
Kouhei Sutou
f5c0aaf8f2 Converge codes for user name restriction
The current implementation accepts only "admin" user. Codes for the
restriction exist in several files.

This change converges codes for the restriction to
app/models/user.rb. This change will be helpful when we support more
user names.
2014-09-25 15:55:19 +09:00
Kouhei Sutou
ab903716bc Try to fix wrong try usage
`Object#try` checks "whether receiver is nil or not". It doesn't rescue
any exceptions raised in method call.

    > User.new(name: "admin", password_digest: "invalid-hash").authenticate("X")
    BCrypt::Errors::InvalidHash: invalid hash
            from /var/lib/gems/2.1.0/gems/bcrypt-3.1.7/lib/bcrypt/password.rb:60:in `initialize'
            ...
2014-08-19 21:21:35 +09:00
uu59
5e704969d2 tag_key is not config param 2014-08-13 18:20:24 +09:00
uu59
242e23732c Add out_elasticsearch setting 2014-08-13 18:12:28 +09:00
uu59
6551280ba0 Refactoring for commonly setting controllers to be concern 2014-08-13 17:40:24 +09:00
uu59
b2a6f0e9dc Remove duplicated validation (same code in the model). thanks @kou! 2014-08-12 22:25:48 +09:00
uu59
176cc4b1ef Fix can't login if password changed 2014-08-07 18:22:51 +09:00
Kouhei Sutou
8e8c95fce3 in_tail: Fix error on setting page for binary file
How to reproduce:

  * Create a binary file by the following command:

        "ruby -e 'puts "\u3042"' > /tmp/xxx"

  * Open /daemon/setting/in_tail
  * Select "/tmp/xxx"
  * Error page is rendered
  * log/production.log says:

        ActionView::Template::Error (undefined method `join' for nil:NilClass):
            12:     = f.text_field :path, class: "form-control", disabled: true
            13:   = render partial: "shared/vue/in_tail_format", locals: { file: f.object.path, formats: @setting.known_formats, initialSelected: f.object.format || @setting.guess_format }
            14:
            15:   %pre= file_tail(@setting.path).join("\n")
            16:
            17:   %p
            18:     = f.submit t('terms.next'), class: "btn btn-lg btn-primary pull-right"
          app/views/fluentd/settings/in_tail/after_file_choose.html.haml:15:in `block in _app_views_fluentd_settings_in_tail_after_file_choose_html_haml___1713159989942914940_40548520'
2014-08-06 17:34:23 +09:00
uu59
cf51f165cd setting_params should be normally 2014-07-31 18:30:46 +09:00
uu59
982b5b3d4e Only store password if default password is used 2014-07-31 18:30:46 +09:00
uu59
fd2ceda5a4 Display success flash should be succeed only 2014-07-31 17:25:31 +09:00
uu59
6374bd86ca Remove unnecessary return 2014-07-31 17:17:14 +09:00
uu59
1d5ad1f31e Add comment why using try method 2014-07-31 17:17:14 +09:00
uu59
93e1998016 Controller methods to be private 2014-07-31 17:17:14 +09:00
uu59
3d750a0c7a Display a message for the daemon start/stop/restart could take a long time 2014-07-31 11:42:17 +09:00
uu59
260a12e375 Add notation for permission on in_tail setting page 2014-07-30 16:02:56 +09:00
uu59
412022cfa8 Add uname -a to system_info.zip. Fix #66 2014-07-30 11:11:05 +09:00