Giter VIP home page Giter VIP logo

redmine_entity_generator's Introduction

Easy Redmine

Easy Redmine - plugin to Redmine (http://www.redmine.org) Copyright (C) 2008-2015 Easy Software, s.r.o. https://www.easyredmine.com

Requirements

Same as Redmine 3.0.3. See [redmine_root]/doc/INSTALL Only Ruby 1.9.3 and higher is supported. (Ruby version < 2.1 will be dropped soon)

Manual installation

  1. Make sure your Redmine 3.0.3. is working. For more details visit http://www.redmine.org/projects/redmine/wiki/Installation_Guide.

  2. Backup your Redmine database and folder if something make wrong. Do not make backup into [redmine] directory! You have to copy it outside!

  3. Extract zip package to the Redmine plugins directory ([redmine_root]/plugins). The directory structure will look like: [redmine_root]/plugins/easyproject/easy_helpers/* [redmine_root]/plugins/easyproject/easy_plugins/easy_extensions/* [redmine_root]/plugins/easyproject/easy_plugins/easy_redmine/* [redmine_root]/plugins/easyproject/easy_plugins/*

  4. More gems are required. Under the application main directory run: bundle install --without development test

    If ImageMagick is not installed on your system, you should skip the installation of the rmagick gem using: bundle install --without development test rmagick

    If you use linux BitNami you must run bundle install --without development test --binstubs --no-deployment

  5. Under the application main directory run (if you are using bitnami write 'sudo' before 'bundle'): bundle exec rake easyproject:install RAILS_ENV=production

  6. If you are migrating from older version of Ruby < 1.9 (e.g. 1.8.7) to Ruby version >= 1.9 you have to run: bundle exec rake easyproject:service_tasks:migrate_to_new_ruby RAILS_ENV=production

  7. Start your Redmine application server. E.g. under the application main directory run: bundle exec ruby script/rails server -e production

  8. You should create a maintenance task to CRON (on Linux) or Scheduled Tasks (on Windows) that will be running every 5-15 minutes. This one task aggregates all required tasks such as mail receiving, alerts evaluation etc. You should set up required parameters via administration -> scheduled tasks. Do not run this task under root, use same user that is used for web server.: bundle exec rake easyproject:scheduler:run_tasks RAILS_ENV=production

Automatic installation

  1. Make sure you have gem 'redmine-installer' gem install redmine-installer

  2. Download Easy Redmine and run: redmine install [PATH_TO_PACKAGE]

  3. Follow installation steps:

    • For example download Easy Redmine package to your home.
    • Let's say your server root dir is in /srv/easyproject/public_html FOR EXAMPLE a) run: redmine install ~/easyredmine.zip b) Choose: /srv/easyproject/public_html c) Choose your database server, type database name, username and password d) Choose your mailserver and type neccesary credentials e) Wait for complete installation
  4. You should create a maintenance task to CRON (on Linux) or Scheduled Tasks (on Windows) that will be running every 5-15 minutes. This one task aggregates all required tasks such as mail receiving, alerts evaluation etc. You should set up required parameters via administration -> scheduled tasks. Do not run this task under root, use same user that is used for web server.: bundle exec rake easyproject:scheduler:run_tasks RAILS_ENV=production

Notes

References

News are on: http://www.easyredmine.com/news Support is on: http://www.easyredmine.com/support

redmine_entity_generator's People

Contributors

ahorek avatar easy-petr avatar hosekp avatar luk4s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_entity_generator's Issues

Error in Redmine 4.1.3

Hi,
I I'm having problems creating a new entity, creating custom fields doesn't work

The single-table inheritance mechanism failed to locate the subclass: 'NewEntityNameCustomField'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite CustomField.inheritance_column to use another column for that information.

ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'NewEntityNameCustomField'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite CustomField.inheritance_column to use another column for that information.):

app/controllers/custom_fields_controller.rb:32:in `group_by'
app/controllers/custom_fields_controller.rb:32:in `block (2 levels) in index'
app/controllers/custom_fields_controller.rb:30:in `index'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'

```
`

Internal Server Error 500

here it is my environment information

Environment:
Redmine version 4.1.3.stable
Ruby version 2.6.8-p205 (2021-07-07) [x86_64-linux]
Rails version 5.2.5
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.10.4
Mercurial 4.8.2
Bazaar 2.8.0
Git 2.20.1
Filesystem
Redmine plugins:
nuovo_plugiin 2022
redmine_attachment_categories 2.0.0
redmine_checklists 3.1.19
redmine_contacts 4.3.4
redmine_custom_auto_complete 0.0.1
redmine_entity_generator 2016
redmine_lightbox2 0.5.1
redmine_smile_project_enumerations_custom_field_format 1.3.15

This is my Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.5)
actionpack (= 5.2.5)
nio4r (> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.5)
actionpack (= 5.2.5)
actionview (= 5.2.5)
activejob (= 5.2.5)
mail (
> 2.5, >= 2.5.4)
rails-dom-testing (> 2.0)
actionpack (5.2.5)
actionview (= 5.2.5)
activesupport (= 5.2.5)
rack (
> 2.0, >= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (> 2.0)
rails-html-sanitizer (
> 1.0, >= 1.0.2)
actionpack-xml_parser (2.0.1)
actionpack (>= 5.0)
railties (>= 5.0)
actionview (5.2.5)
activesupport (= 5.2.5)
builder (> 3.1)
erubi (
> 1.4)
rails-dom-testing (> 2.0)
rails-html-sanitizer (
> 1.0, >= 1.0.3)
activejob (5.2.5)
activesupport (= 5.2.5)
globalid (>= 0.3.6)
activemodel (5.2.5)
activesupport (= 5.2.5)
activerecord (5.2.5)
activemodel (= 5.2.5)
activesupport (= 5.2.5)
arel (>= 9.0)
activestorage (5.2.5)
actionpack (= 5.2.5)
activerecord (= 5.2.5)
marcel (> 1.0.0)
activesupport (5.2.5)
concurrent-ruby (
> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (> 5.1)
tzinfo (
> 1.1)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
arel (9.0.0)
ast (2.4.2)
builder (3.2.4)
capybara (3.25.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (> 1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
regexp_parser (
> 1.5)
xpath (> 3.2)
childprocess (3.0.0)
concurrent-ruby (1.1.9)
crass (1.0.6)
css_parser (1.9.0)
addressable
csv (3.1.9)
docile (1.4.0)
erubi (1.10.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
htmlentities (4.3.4)
i18n (1.6.0)
concurrent-ruby (
> 1.0)
jaro_winkler (1.5.4)
json (2.5.1)
liquid (2.6.3)
loofah (2.10.0)
crass (> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (1.0.1)
method_source (1.0.0)
mini_magick (4.9.5)
mini_mime (1.0.3)
mini_portile2 (2.5.3)
minitest (5.14.4)
mocha (1.13.0)
mysql2 (0.5.3)
net-ldap (0.16.3)
nio4r (2.5.7)
nokogiri (1.11.7)
mini_portile2 (
> 2.5.0)
racc (> 1.4)
parallel (1.20.1)
parser (3.0.2.0)
ast (
> 2.4.1)
public_suffix (4.0.6)
puma (3.12.6)
racc (1.5.2)
rack (2.2.3)
rack-openid (1.4.2)
rack (>= 1.1.0)
ruby-openid (>= 2.1.8)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.5)
actioncable (= 5.2.5)
actionmailer (= 5.2.5)
actionpack (= 5.2.5)
actionview (= 5.2.5)
activejob (= 5.2.5)
activemodel (= 5.2.5)
activerecord (= 5.2.5)
activestorage (= 5.2.5)
activesupport (= 5.2.5)
bundler (>= 1.3.0)
railties (= 5.2.5)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
loofah (> 2.3)
railties (5.2.5)
actionpack (= 5.2.5)
activesupport (= 5.2.5)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rainbow (3.0.0)
rake (13.0.6)
rbpdf (1.20.1)
htmlentities
rbpdf-font (
> 1.19.0)
rbpdf-font (1.19.1)
redcarpet (3.5.1)
redmine_crm (0.0.56)
liquid (< 2.6.4)
rails
rubyzip
redmine_extensions (0.4.3)
rails (>= 4.2, < 6.2)
regexp_parser (1.8.2)
request_store (1.4.1)
rack (>= 1.4)
roadie (4.0.0)
css_parser (> 1.4)
nokogiri (
> 1.8)
roadie-rails (2.1.1)
railties (>= 5.1, < 6.1)
roadie (>= 3.1, < 5.0)
rouge (3.12.0)
rubocop (0.76.0)
jaro_winkler (> 1.5.1)
parallel (
> 1.10)
parser (>= 2.6)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-performance (1.5.2)
rubocop (>= 0.71.0)
rubocop-rails (2.3.2)
rack (>= 1.1)
rubocop (>= 0.72.0)
ruby-ole (1.2.12.2)
ruby-openid (2.9.2)
ruby-progressbar (1.11.0)
rubyzip (2.3.2)
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
simplecov (0.17.1)
docile (
> 1.1)
json (>= 1.8, < 3)
simplecov-html (> 0.10.0)
simplecov-html (0.10.2)
spreadsheet (1.3.0)
ruby-ole
sprockets (4.0.2)
concurrent-ruby (
> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
thor (1.1.0)
thread_safe (0.3.6)
tzinfo (1.2.9)
thread_safe (> 0.1)
unicode-display_width (1.6.1)
vcard (0.3.0)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (
> 1.8)
yard (0.9.26)

PLATFORMS
ruby

DEPENDENCIES
actionpack-xml_parser
bundler (>= 1.5.0)
capybara (> 3.25.0)
csv (
> 3.1.1)
ffi
i18n (> 1.6.0)
mail (
> 2.7.1)
marcel
mini_magick (> 4.9.5)
mini_mime (
> 1.0.1)
mocha (>= 1.4.0)
mysql2 (> 0.5.0)
net-ldap (
> 0.16.0)
nokogiri (> 1.11.1)
puma (
> 3.7)
rack-openid
rails (= 5.2.5)
rails-dom-testing
rbpdf (> 1.20.0)
redcarpet (
> 3.5.1)
redmine_crm
redmine_extensions
request_store (> 1.4.1)
roadie-rails (
> 2.1.0)
rouge (> 3.12.0)
rubocop (
> 0.76.0)
rubocop-performance (> 1.5.0)
rubocop-rails (
> 2.3.0)
ruby-openid (> 2.9.2)
selenium-webdriver
simplecov (
> 0.17.0)
spreadsheet
tzinfo-data
vcard
yard

RUBY VERSION
ruby 2.6.8p205

BUNDLED WITH
1.17.2

i'm running thi with docker so when i create the entity i just restart the container cause in the docker-compose i have the migrate

i Tryied to switch a lot of redmine version but nothing works

i have this error when i access to the ./new_entity_created ("issues") page

image

i also had a similar error when (with other redmine versions) i reached to render the entity page and when i was creating a new entity

image
with this environment
image

Any possible tips for fix this?

error in the creation of an entity with custom fields

error in the creation of an entity with custom fields

I, [2019-06-27T14:55:02.915715 #31027] INFO -- : Started POST "/catalogo_de_servicios" for 192.168.100.101 at 2019-06-27 14:55:02 -0300
I, [2019-06-27T14:55:02.919261 #31027] INFO -- : Processing by CatalogoDeServiciosController#create as HTML
I, [2019-06-27T14:55:02.919440 #31027] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"CqwA/nj/AiHBmineFZpEW+SeNPFFdzmJ5SFod/HRCKq0XWtf79uoyWuzS4FmOt5ZNCyUkn4mmL42B3m9STqJaw==", "catalogo_de_servicio"=>{"project_id"=>"37", "name"=>"BBVA", "author_id"=>"84", "cliente_id"=>"1", "custom_field_values"=>{"66"=>["DigitalSignage", ""]}}, "commit"=>"Crear"}
I, [2019-06-27T14:55:03.059317 #31027] INFO -- : Current user: gschild (id=84)
I, [2019-06-27T14:55:03.638164 #31027] INFO -- : Rendered plugins/redmine_sidesys/app/views/catalogo_de_servicio_mailer/catalogo_de_servicio_added.text.erb within layouts/mailer (6.0ms)
I, [2019-06-27T14:55:03.664360 #31027] INFO -- : Rendered plugins/redmine_sidesys/app/views/catalogo_de_servicio_mailer/catalogo_de_servicio_added.html.erb within layouts/mailer (9.2ms)
I, [2019-06-27T14:55:03.994201 #31027] INFO -- : Redirected to http://192.168.100.192/catalogo_de_servicios/1
I, [2019-06-27T14:55:03.994540 #31027] INFO -- : Completed 302 Found in 1075ms (ActiveRecord: 415.1ms)
I, [2019-06-27T14:55:04.235940 #31027] INFO -- : Started GET "/catalogo_de_servicios/1" for 192.168.100.101 at 2019-06-27 14:55:04 -0300
I, [2019-06-27T14:55:04.245941 #31027] INFO -- : Processing by CatalogoDeServiciosController#show as HTML
I, [2019-06-27T14:55:04.246058 #31027] INFO -- : Parameters: {"id"=>"1"}
I, [2019-06-27T14:55:04.266677 #31027] INFO -- : Current user: gschild (id=84)
I, [2019-06-27T14:55:04.536156 #31027] INFO -- : Rendered vendor/bundle/ruby/2.3.0/gems/redmine_extensions-0.3.00/app/views/redmine_extensions/_custom_field_rows.html.erb (190.1ms)
I, [2019-06-27T14:55:04.541071 #31027] INFO -- : Rendered plugins/redmine_sidesys/app/views/catalogo_de_servicios/show.html.erb within layouts/base (219.9ms)
I, [2019-06-27T14:55:04.541823 #31027] INFO -- : Completed 500 Internal Server Error in 296ms (ActiveRecord: 24.3ms)
F, [2019-06-27T14:55:04.548984 #31027] FATAL -- :
ActionView::Template::Error (undefined method translated_name' for #<CatalogoDeServicioCustomField:0x00007f09b9708658> Did you mean? transaction): 3: left_value = custom_field_values[row] 4: right_value = custom_field_values[row + half_size] %> 5: <tr> 6: <th><%= left_value ? h(left_value.custom_field.translated_name) : '' %></th> 7: <td><%= left_value ? show_value(left_value, true) : '' %></td> 8: <th><%= right_value ? h(right_value.custom_field.translated_name) : '' %></th> 9: <td><%= right_value ? show_value(right_value, true) : '' %></td> plugins/redmine_workflow_enhancements/lib/workflow_enhancements/patches/action_view_rendering.rb:53:in render_with_workflow_enhancements'
plugins/redmine_sidesys/app/views/catalogo_de_servicios/show.html.erb:12:in _74faaf10c831384e1fd62ae31620c6f5' plugins/redmine_sidesys/app/controllers/catalogo_de_servicios_controller.rb:26:in show'
lib/redmine/sudo_mode.rb:63:in sudo_mode' plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware.rb:68:in call'

I, [2019-06-27T14:55:11.960214 #32608] INFO -- : Starting Maintenance Mode plugin for Redmine
W, [2019-06-27T14:55:12.259662 #32608] WARN -- : DEPRECATION WARNING: The acts_as_list plugin will be removed from Redmine 4 core, use the acts_as_list gem or similar implementation instead. (called from acts_as_list at /opt/bitnami/apps/redmine/htdocs/lib/plugins/acts_as_list/lib/active_record/acts/list.rb:34)

problem after updating the gem redmine_extensions 0.3.3

Hello, I have the following problem after updating the gem redmine_extensions 0.3.3, when I am generating the entities I throw the following error, why is that?

I, [2019-08-16T10:35:29.193841 #1470] INFO -- : Started GET "/entity_generator/new" for 192.168.133.1 at 2019-08-16 10:35:29 -0300
I, [2019-08-16T10:35:29.536318 #1470] INFO -- : Processing by EntityGeneratorController#new as HTML
I, [2019-08-16T10:35:29.546289 #1470] INFO -- : Current user: user (id=1)
I, [2019-08-16T10:35:29.654423 #1470] INFO -- : Rendered plugins/redmine_entity_generator/app/views/entity_generator/_new_entity.html.erb (9.3ms)
I, [2019-08-16T10:35:29.654599 #1470] INFO -- : Rendered plugins/redmine_entity_generator/app/views/entity_generator/_form.html.erb (24.1ms)
I, [2019-08-16T10:35:29.655888 #1470] INFO -- : Rendered plugins/redmine_entity_generator/app/views/entity_generator/new.html.erb within layouts/base (54.7ms)
I, [2019-08-16T10:35:29.669594 #1470] INFO -- : Rendered plugins/a_common_libs/app/views/hooks/a_common_libs/_html_head.html.erb (4.8ms)
I, [2019-08-16T10:35:29.670973 #1470] INFO -- : Rendered plugins/advanced_roadmap/app/views/hooks/_stylesheet.html.erb (0.5ms)
I, [2019-08-16T10:35:29.672098 #1470] INFO -- : Rendered plugins/extra_queries/app/views/extra_queries/hooks/_html_head.html.erb (0.3ms)
I, [2019-08-16T10:35:29.674004 #1470] INFO -- : Rendered plugins/global_roles/app/views/hooks/global_roles/_head.html.erb (0.3ms)
I, [2019-08-16T10:35:29.676107 #1470] INFO -- : Rendered plugins/redmine_contacts/app/views/contacts_issues/_additional_assets.html.erb (1.0ms)
I, [2019-08-16T10:35:29.677004 #1470] INFO -- : redmine_highlightjs2: supported browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
I, [2019-08-16T10:35:29.686025 #1470] INFO -- : Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_headers.html.erb (1.1ms)
I, [2019-08-16T10:35:29.712519 #1470] INFO -- : Rendered plugins/sidebar_hide/app/views/sidebar/_hideButton_partial.html.erb (0.2ms)
I, [2019-08-16T10:35:29.713708 #1470] INFO -- : Rendered plugins/global_roles/app/views/hooks/global_roles/_view_layouts_base_body_bottom.html.erb (0.3ms)
I, [2019-08-16T10:35:29.714801 #1470] INFO -- : Rendered plugins/redmine_contacts/app/views/common/_contacts_select2_data.html.erb (0.4ms)
I, [2019-08-16T10:35:29.723339 #1470] INFO -- : Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_add_form.html.erb (7.5ms)
I, [2019-08-16T10:35:29.724719 #1470] INFO -- : Rendered plugins/redmine_people/app/views/common/_people_select2_data.html.erb (0.4ms)
I, [2019-08-16T10:35:29.724830 #1470] INFO -- : Rendered plugins/redmine_people/app/views/common/_layout_bottom.html.erb (1.1ms)
I, [2019-08-16T10:35:29.725344 #1470] INFO -- : Completed 200 OK in 189ms (Views: 171.9ms | ActiveRecord: 3.7ms)
I, [2019-08-16T10:35:44.148310 #1470] INFO -- : Started POST "/entity_generator" for 192.168.133.1 at 2019-08-16 10:35:44 -0300
I, [2019-08-16T10:35:44.150153 #1470] INFO -- : Processing by EntityGeneratorController#create as HTML
I, [2019-08-16T10:35:44.150270 #1470] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"Fa5ID78wjwFltM24U8HIgsjR6dUw+VZuUT7YkQUdSvPyxjpu8gbGU/wMJzjbTLyvapyJpJYvlwhZSP890kr+jg==", "plugin_create"=>"1", "plugin_name"=>"Prueb", "entities"=>{"0"=>{"entity_name"=>"Prueba", "entity_options"=>["--mail", "--acts-as-activity_provider", "--acts-as-attachable", "--acts-as-customizable", "--acts-as-event", "--acts-as-searchable"], "basic_fields"=>["name", "--author", "--project"]}}, "commit"=>"Crear"}
I, [2019-08-16T10:35:44.162837 #1470] INFO -- : Current user: user (id=1)
I, [2019-08-16T10:35:45.045066 #1470] INFO -- : Completed 500 Internal Server Error in 895ms (ActiveRecord: 5.0ms)
F, [2019-08-16T10:35:45.047233 #1470] FATAL -- :
NameError (uninitialized constant ActiveRecord::Migration::Current):
plugins/redmine_entity_generator/app/controllers/entity_generator_controller.rb:23:in block in create' plugins/redmine_entity_generator/app/controllers/entity_generator_controller.rb:20:in each'
plugins/redmine_entity_generator/app/controllers/entity_generator_controller.rb:20:in each_with_index' plugins/redmine_entity_generator/app/controllers/entity_generator_controller.rb:20:in create'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Originally posted by @schildg in #10 (comment)

Two files generated with syntaxe errors

Hello, I don't know anything about ruby and I'm using this plugin. It is generating two files "_sidebar.html.erb" and "show.html.erb". In the first file, "%>" is missing in line 6

_sidebar html erb

and in the second the error is in line 10 where there is an extra ":".

show html erb

translation missing: en.note_generator_head

Hello,

The string "note_generator_head" is missing in the locales files en.yml and ja.yml, only present in cs.yml

"note_generator_head: We recommend using only users with programmer's knowledge"

image

Pierre

Plugin not working on Redmine 4.2.9 (xxx is not a class)

Hi,

We installed this plugin on Redmine 4.2.9

image

and created a test entity

image

After rebooting the container, we get this from the plugin because there is a same Gem defined in module easy_mindmup.
image

If I remove the dependency from test_log, we get 'is not a class'

== 20230303140801132 CreateTestLogs: migrating ================================
-- create_table(:test_logs)
-> 0.0579s
== 20230303140801132 CreateTestLogs: migrated (0.0580s) =======================
2023-03-03T14:24:03.314378220Z
/usr/src/redmine/plugins/test_log/app/models/test_log.rb:1:in <top (required)>': TestLog is not a class (TypeError) /usr/src/redmine/plugins/test_log/lib/test_log/internals.rb:2: previous definition of TestLog was here from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in require'
from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in block in require' from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in load_dependency'
from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in require' from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:378:in block in require_or_load'
from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:37:in block in load_interlock' from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies/interlock.rb:14:in block in loading'
from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/concurrency/share_lock.rb:151:in exclusive' from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies/interlock.rb:13:in loading'
from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in block in require' from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in load_dependency'
from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in require' from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in block in require'
from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in load_dependency' from /usr/local/bundle/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in require'
from config.ru:3:in block in <main>' from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/builder.rb:116:in eval'
from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/builder.rb:116:in new_from_string' from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/builder.rb:105:in load_file'
from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/builder.rb:66:in parse_file' from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/server.rb:349:in build_app_and_options_from_config'
from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/server.rb:249:in app' from /usr/local/bundle/gems/railties-5.2.8.1/lib/rails/commands/server/server_command.rb:27:in app'
from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/server.rb:422:in wrapped_app' from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/server.rb:312:in block in start'
from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/server.rb:379:in handle_profiling' from /usr/local/bundle/gems/rack-2.2.6.2/lib/rack/server.rb:311:in start'
from /usr/local/bundle/gems/railties-5.2.8.1/lib/rails/commands/server/server_command.rb:53:in start' from /usr/local/bundle/gems/railties-5.2.8.1/lib/rails/commands/server/server_command.rb:147:in block in perform'
from /usr/local/bundle/gems/railties-5.2.8.1/lib/rails/commands/server/server_command.rb:142:in tap' from /usr/local/bundle/gems/railties-5.2.8.1/lib/rails/commands/server/server_command.rb:142:in perform'
from /usr/local/bundle/gems/thor-1.2.1/lib/thor/command.rb:27:in run' from /usr/local/bundle/gems/thor-1.2.1/lib/thor/invocation.rb:127:in invoke_command'
from /usr/local/bundle/gems/thor-1.2.1/lib/thor.rb:392:in dispatch' from /usr/local/bundle/gems/railties-5.2.8.1/lib/rails/command/base.rb:69:in perform'
from /usr/local/bundle/gems/railties-5.2.8.1/lib/rails/command.rb:46:in invoke' from /usr/local/bundle/gems/railties-5.2.8.1/lib/rails/commands.rb:18:in <top (required)>'
from bin/rails:4:in require' from bin/rails:4:in

'

Error

Only clicking by mouse is not enough to get plugin working ?
(plugins migrated - webserver restarted)
Please add some basic README.md
Thank you

Started GET "/redmine/pokusna_entita" for 80.188.183.211 at 2017-04-12 23:17:05 +0200
Processing by PokusnaEntitaController#index as HTML
Current user: vitex (id=3)
Rendered queries/_filters.html.erb (17.0ms)
Rendered queries/_columns.html.erb (2.8ms)
Rendered /var/lib/gems/2.1.0/gems/redmine_extensions-0.1.20/app/views/easy_queries/_settings.html.erb (27.8ms)
Rendered /var/lib/gems/2.1.0/gems/redmine_extensions-0.1.20/app/views/easy_queries/_entities.html.erb (4.9ms)
Rendered /var/lib/gems/2.1.0/gems/redmine_extensions-0.1.20/app/views/easy_queries/_index.html.erb (38.3ms)
Rendered plugins/pokusny_plugin/app/views/pokusna_entita/_sidebar.html.erb (517.2ms)
Rendered plugins/pokusny_plugin/app/views/pokusna_entita/index.html.erb within layouts/base (562.1ms)
Completed 500 Internal Server Error in 718ms (ActiveRecord: 108.1ms)

ActionView::Template::Error (undefined method new_pokusna_entita_path' for #<#<Class:0x007fa659b81df0>:0x007fa65a0bdd78>): 3: <li><%= link_to l(:button_edit), edit_polymorphic_path([@project, @pokusna_entita]), title: l(:button_edit), class: 'icon icon-edit button' %></li> 4: <% end %> 5: <% if @pokusna_entita.nil? %> 6: <li><%= link_to l(:button_pokusna_entita_new), new_polymorphic_path([@project, :pokusna_entita]), title: l(:title_pokusna_entita_new), class: 'icon icon-add button button-positive' %></li> 7: <% end %> 8: <li><%= link_to l(:label_pokusna_entita), polymorphic_path([@project, :pokusna_entita], set_filter: '1'), title: l(:label_pokusna_entita), class: 'icon icon-folder button' %></li> 9: </ul> plugins/pokusny_plugin/app/views/pokusna_entita/_sidebar.html.erb:6:in _plugins_pokusny_plugin_app_views_pokusna_entita__sidebar_html_erb__1189581221126470717_70176224245120'
plugins/pokusny_plugin/app/views/pokusna_entita/index.html.erb:5:in block in _plugins_pokusny_plugin_app_views_pokusna_entita_index_html_erb___498590249353769104_70176223324260' plugins/pokusny_plugin/app/views/pokusna_entita/index.html.erb:4:in _plugins_pokusny_plugin_app_views_pokusna_entita_index_html_erb___498590249353769104_70176223324260'
lib/redmine/sudo_mode.rb:63:in sudo_mode' plugins/redmine_dmsf/lib/redmine_dmsf/webdav/no_parse.rb:33:in call'

Fatal in Redmine 4.1.3

Hi!

I'm trying this plugin with fresh install of Redmine 4.1.3. No other plugins installed, except this one and generated entity:

Environment:
  Redmine version                4.1.3.stable
  Ruby version                   2.6.8-p205 (2021-07-07) [x86_64-linux]
  Rails version                  5.2.5
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.10.4
  Mercurial                      4.8.2
  Bazaar                         2.8.0
  Git                            2.20.1
  Filesystem                     
Redmine plugins:
  plug_one                       2021
  redmine_entity_generator       2016

When I try to create a new task, I get an error:

I, INFO -- : Processing by EntOnesController#new as HTML
I, INFO -- :   Current user: admin (id=1)
I, INFO -- :   Rendering plugins/plug_one/app/views/ent_ones/new.html.erb within layouts/base
I, INFO -- :   Rendered attachments/_form.html.erb (1.8ms)
I, INFO -- :   Rendered plugins/plug_one/app/views/ent_ones/_form.html.erb (7.9ms)
I, INFO -- :   Rendered plugins/plug_one/app/views/ent_ones/_sidebar.html.erb (0.7ms)
I, INFO -- :   Rendered plugins/plug_one/app/views/ent_ones/new.html.erb within layouts/base (9.3ms)
I, INFO -- : Completed 500 Internal Server Error in 20ms (ActiveRecord: 5.6ms)
F, FATAL -- :
F, FATAL -- : SyntaxError (/usr/src/redmine/plugins/plug_one/app/views/ent_ones/_sidebar.html.erb:7: syntax error, unexpected '<', expecting ')'
  <% end );@output_buffer.safe_a...
  ^
/usr/src/redmine/plugins/plug_one/app/views/ent_ones/_sidebar.html.erb:12: syntax error, unexpected ensure, expecting end
          ensure
          ^~~~~~
/usr/src/redmine/plugins/plug_one/app/views/ent_ones/_sidebar.html.erb:14: syntax error, unexpected end-of-input, expecting end):
F, [2021-07-09T16:35:28.736082 #105] FATAL -- :
F, [2021-07-09T16:35:28.736106 #105] FATAL -- : plugins/plug_one/app/views/ent_ones/_sidebar.html.erb:7: syntax error, unexpected '<', expecting ')'
plugins/plug_one/app/views/ent_ones/_sidebar.html.erb:12: syntax error, unexpected ensure, expecting end
plugins/plug_one/app/views/ent_ones/_sidebar.html.erb:14: syntax error, unexpected end-of-input, expecting end
plugins/plug_one/app/views/ent_ones/new.html.erb:7:in `block in _plugins_plug_one_app_views_ent_ones_new_html_erb___3043133931509356661_70069681432080'
plugins/plug_one/app/views/ent_ones/new.html.erb:6:in `_plugins_plug_one_app_views_ent_ones_new_html_erb___3043133931509356661_70069681432080'

The generated object does not open

Hello.
When I open the generated plugin, I get an error "wrong number of arguments (given 1, expected 0)"
app/controllers/generator_entities_controller.rb:21 got retrieve_query(GeneratorEntityQuery)
retrieve_query which is located in app/helpers/queries_helper.rb looks like that

def retrieve_query
    if !params[:query_id].blank?
      cond = "project_id IS NULL"
      cond << " OR project_id = #{@project.id}" if @project
      @query = IssueQuery.where(cond).find(params[:query_id])
      raise ::Unauthorized unless @query.visible?
      @query.project = @project
      session[:query] = {:id => @query.id, :project_id => @query.project_id}
      sort_clear
    elsif api_request? || params[:set_filter] || session[:query].nil? || session[:query][:project_id] != (@project ? @project.id : nil)
      # Give it a name, required to be valid
      @query = IssueQuery.new(:name => "_")
      @query.project = @project
      @query.build_from_params(params)
      session[:query] = {:project_id => @query.project_id, :filters => @query.filters, :group_by => @query.group_by, :column_names => @query.column_names, :totalable_names => @query.totalable_names}
    else
      # retrieve from session
      @query = nil
      @query = IssueQuery.find_by_id(session[:query][:id]) if session[:query][:id]
      @query ||= IssueQuery.new(:name => "_", :filters => session[:query][:filters], :group_by => session[:query][:group_by], :column_names => session[:query][:column_names], :totalable_names => session[:query][:totalable_names])
      @query.project = @project
    end

so it's completely unclear why you are passing it GeneratorEntityQuery
or must be another retrieve_query? where?

Environment:
  Redmine version                3.3.4.stable
  Ruby version                   2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
  Rails version                  4.2.8

с наилучшими пожеланиями надеюсь поможете запустить ваш плагин, на видео неплохо а на практике такое вот...

undefined method `human_attribute_name' error

Everything seems to be working correctly. Plugin installed, and generating new plugin and entity works without any problems, migrated new plugin and restarted web server.

New plugin shows on the list.

However, when I try to open link for the new entity I get the error:

NoMethodError (undefined method human_attribute_name' for NewPlugin:Module):
plugins/new_plugin/app/models/new_plugin_query.rb:6:in initialize_available_filters' app/models/query.rb:597:in available_filters'
app/models/query.rb:374:in build_from_params' app/helpers/queries_helper.rb:299:in retrieve_query'
plugins/new_plugin/app/controllers/new_plugin_controller.rb:21:in index' lib/redmine/sudo_mode.rb:63:in sudo_mode'`

Any suggestions would be very much appreciated.

I am using the generator plugin from today's master zip.
Redmine version 3.4.5.stable
Ruby version 2.5.1-p57 (2018-03-29) [x86_64-linux]
Rails version 4.2.8

the filtering functionality is not displayed

Hello, I am using this plugin, it generated several simple entities and some others were integrated and also shared the same problems, it did not allow me to make the modification of the recently saved record, besides corroborate with several users / roles with their respective La habilitación para the generated entities, the behavior of the plugin is very different from what is sponsored in the youtube videos with respect to the generated entity.
Next, I pass the problems that I have:
(very important) does not show the box of filters, nor does it allow the selection of each one of the entities for its edition as it is shown in the youtube videos.

image

I tested its operation with the gem redmine_extensions 0.3.0 and 0.2.16 and in both I had the same problem, also commented that I am using the theme purple-mine and default of Redmine.

thank you!

First argument has to be a user, was # <generated model>

Throwed by:

 def process(action, *args)
    user = args.first
    raise ArgumentError, "First argument has to be a user, was #{user.inspect}" unless user.is_a?(User)

Occurs here:

  def send_create_notification
    # if Setting.notified_events.include?('my_model_added')
    MyModelMailer.my_model_added(self).deliver
    # end
  end

Error in Entity Generator

The following is cut and pasted from my internal_error.html file generated by EasyRedmine. It appears to me that it is missing the plugin name when calling dir_s_mkdir.


ActionView::Template::Error in EntityGenerator#create

Showing where line # raised:

Permission denied @ dir_s_mkdir - /plugins

Extracted source (around line #19):

17
18
19
20
21
22

if @plugin_name.present? && @entities.present?
  associations = association_table(@entities)
  Rails::Generators.invoke('redmine_extensions:plugin', [@plugin_name]) if params[:plugin_create].to_boolean
  @entities.each_with_index do |entity, index|
    generator_arguments = prepare_generator_arguments_from_entity(entity, associations)

Rails.root: /home/bruce/vanillaeasy
Application Trace | Framework Trace | Full Trace | Redmine environment | SCM | Redmine Plugins | Request details

plugins/redmine_entity_generator/app/controllers/entity_generator_controller.rb:19:in create' lib/redmine/sudo_mode.rb:63:in sudo_mode'
plugins/easysoftware/gems/rys/app/middleware/rys/feature_preload.rb:20:in `call'

Request

Parameters:

{"utf8"=>"\u2713",
"authenticity_token"=>"6AXiobHz3XjKeM/hq2nHgLftnhv4yxSNKVFZ1bn5v5KLdpPSWTRr9C0kG5s0TMUvgegyT2ecyIbAdMrEgcuw0g==",
"plugin_create"=>"1",
"plugin_name"=>"EasyAcnz",
"entities"=>{"0"=>{"entity_name"=>"EasyAcnzEntity",
"basic_fields"=>["name"]}},
"commit"=>"Save"}

Toggle session dump

_csrf_token: "Y3Nxc+jHtoznXNR6nyUCrzYFrFSfV9wL6SWTETgyD0A="
session_id: "66abaedab3c3c3dc44a5756856f03448"
sudo_timestamp: 1557103896
tk: "90329b9becdc4842e66daa0106957920015e01ae"
user_id: 1

Toggle env dump

GATEWAY_INTERFACE: "CGI/1.1"
HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8"
HTTP_ACCEPT_ENCODING: "gzip, deflate"
HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.5"
REMOTE_ADDR: "127.0.0.1"
REMOTE_HOST: "127.0.0.1"
SERVER_NAME: "localhost"
SERVER_PROTOCOL: "HTTP/1.1"

Response

Headers:

{"X-Frame-Options"=>"SAMEORIGIN",
"X-XSS-Protection"=>"1; mode=block",
"X-Content-Type-Options"=>"nosniff"}

ActionView::Template::Error (wrong number of arguments (given 1, expected 2..3))

Did a new install, created a plugin and a single entity. Going to that entity throws the above error. The exact trace is:

    14:           </th>
    15:
    16:           <% query.inline_columns.each do |column| %>
    17:             <%= column_header(column) %>
    18:           <% end %>
    19:

That is simply from hitting the index.html.erb for the newly created entity.

I downloaded the plugin today and the redmine_extensions plugin is version 0.1.24.

Not workin at bitnami 3.3.3

Hello,
I try to create a new entity on a:
Redmine version 3.3.3.stable
Ruby version 2.1.10-p492 (2016-04-01) [x86_64-linux]
Rails version 4.2.7.1
Environment production
Database adapter Mysql2

and have an 500 internal error.
Log shows like this:
NoMethodError (undefined method 'to_boolean' for "1":String
plugins/redmine_entity_generator/app/controllers/entity_generator_controller.rb:56:in 'find_plugin_name'

Can help me please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.