GithubHelp home page GithubHelp logo

jrupesh / redmine_my_page Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 29.0 64 KB

Add options to list custom queries, Activities in the My Page of Redmine.

License: GNU General Public License v2.0

HTML 44.21% Ruby 53.08% JavaScript 2.72%

redmine_my_page's People

Contributors

algorys avatar archonwang avatar bilastom avatar hlubek avatar jrupesh avatar jwciss avatar sanak avatar smeagol74 avatar vsc55 avatar wrightie 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

redmine_my_page's Issues

Plugin ignores columns

Hi! Is it possible for plugin to show columns selected in custom query? It handles query but didn't handles columns, only default "#", Project, Tracker and Title...

Redmine 2.6 shows 500 internal server error for My Account page when this plugin is installed.

In Redmine 2.6, when going to the "My Account" page at /my/account, I receive a 500 internal server error. Uninstalling the plugin restores the My Account page.

The error message from production.log:

Completed 500 Internal Server Error in 63.3ms

ActionView::Template::Error (wrong number of arguments (2 for 1)):
    41: <fieldset class="box tabular">
    42:   <legend><%=l(:label_preferences)%></legend>
    43:   <%= render :partial => 'users/preferences' %>
    44:   <%= call_hook(:view_my_account_preferences, :user => @user, :form => f) %>
    45: </fieldset>
    46:
    47: </div>
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:158:in `call_hook'
  app/views/my/account.html.erb:44:in `block in _app_views_my_account_html_erb__3582855195318000207_47398840'
  app/helpers/application_helper.rb:1056:in `labelled_form_for'
  app/views/my/account.html.erb:9:in `_app_views_my_account_html_erb__3582855195318000207_47398840'

cant open activities

Started GET "/projects/emacs/issues/new" for xxx at 2015-04-24 10:05:31 +0200
Processing by IssuesController#new as HTML
Parameters: {"project_id"=>"emacs"}
Current user: xxx (id=3)
Rendered issues/_form_custom_fields.html.erb (8.7ms)
Rendered issues/_attributes.html.erb (30.4ms)
Rendered issues/_form.html.erb (58.2ms)
Rendered attachments/_form.html.erb (3.8ms)
Rendered issues/new.html.erb within layouts/base (104.2ms)
Completed 200 OK in 182ms (Views: 150.9ms | ActiveRecord: 10.1ms)
Started GET "/projects/emacs/activity" for 78.94.133.209 at 2015-04-24 10:05:33 +0200
Processing by ActivitiesController#index as HTML
Parameters: {"id"=>"emacs"}
Current user: mourningsun75 (id=3)
Rendered plugins/redmine_my_page/app/views/activities/index.html.erb within layouts/base (32.7ms)
Completed 500 Internal Server Error in 84ms

Compatibility for Redmine v4.x

Have tested installing on Redmine 4.x

Environment:
  Redmine version                4.2.9.stable
  Ruby version                   2.7.4-p191 (2021-07-07) [x86_64-linux-gnu]
  Rails version                  5.2.8.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Git                            2.30.2
  Filesystem                     
Redmine plugins:
  redcase                        1.0
  redmine_agile                  1.4.12
  redmine_auto_assign_group      0.1.2

'bundle exec rake redmine:plugins:migrate RAILS_ENV=production' results in:

(in /opt/redmine)
rake aborted!
NoMethodError: undefined method `to_prepare' for ActionDispatch::Callbacks:Class
Did you mean?  to_param
/opt/redmine/plugins/redmine_my_page/init.rb:7:in `<top (required)>'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `block in require'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/opt/redmine/lib/redmine/plugin.rb:187:in `block in load'
/opt/redmine/lib/redmine/plugin.rb:178:in `each'
/opt/redmine/lib/redmine/plugin.rb:178:in `load'
/opt/redmine/config/initializers/30-redmine.rb:20:in `<top (required)>'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:285:in `load'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:285:in `block in load'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:285:in `load'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/engine.rb:663:in `block in load_config_initializer'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/notifications.rb:170:in `instrument'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/engine.rb:662:in `load_config_initializer'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/engine.rb:619:in `each'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/engine.rb:619:in `block in <class:Engine>'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `instance_exec'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `run'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:50:in `each'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:60:in `run_initializers'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/application.rb:361:in `initialize!'
/opt/redmine/config/environment.rb:16:in `<top (required)>'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `block in require'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/application.rb:337:in `require_environment!'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment

This led me to https://www.redmine.org/boards/2/topics/60045, where I tried the fix described in https://www.redmine.org/boards/2/topics/60045?r=60157#message-60157

Which resulted in:

(in /opt/redmine)
rake aborted!
NoMethodError: undefined method `alias_method_chain' for ActivitiesController:Class
Did you mean?  alias_method
/opt/redmine/plugins/redmine_my_page/lib/my_page_patches/activities_controller_patch.rb:11:in `block in included'
/opt/redmine/plugins/redmine_my_page/lib/my_page_patches/activities_controller_patch.rb:7:in `class_eval'
/opt/redmine/plugins/redmine_my_page/lib/my_page_patches/activities_controller_patch.rb:7:in `included'
/opt/redmine/plugins/redmine_my_page/init.rb:22:in `include'
/opt/redmine/plugins/redmine_my_page/init.rb:22:in `block (2 levels) in <top (required)>'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:426:in `instance_exec'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:426:in `block in make_lambda'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:606:in `block (2 levels) in default_terminator'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:605:in `catch'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:605:in `block in default_terminator'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:199:in `block in halting'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:513:in `block in invoke_before'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:513:in `each'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:513:in `invoke_before'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/callbacks.rb:131:in `run_callbacks'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/reloader.rb:89:in `prepare!'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/application/finisher.rb:63:in `block in <module:Finisher>'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `instance_exec'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:32:in `run'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/initializable.rb:60:in `run_initializers'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/application.rb:361:in `initialize!'
/opt/redmine/config/environment.rb:16:in `<top (required)>'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `block in require'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.8.1/lib/active_support/dependencies.rb:291:in `require'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/application.rb:337:in `require_environment!'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/railties-5.2.8.1/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/opt/redmine/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment

Which led me to https://www.justinweiss.com/articles/rails-5-module-number-prepend-and-the-end-of-alias-method-chain/, but that's way over my head.

Hoping this plugin can be updated to work with Redmine 4.x+

error

DEPRECATION WARNING: User.rss_key is deprecated and will be removed in Redmine 6.0. Please use User.atom_key instead. (called from other_formats_links at /home/redmine/5.0.2/app/helpers/application_helper.rb:736)
DEPRECATION WARNING: User.rss_key is deprecated and will be removed in Redmine 6.0. Please use User.atom_key instead. (called from block (2 levels) in index_with_esi at /home/redmine/5.0.2/plugins/redmine_my_page/lib/my_page_patches/activities_controller_patch.rb:73)

Activity tab cannot be displayed

Description:
After adding redmine_my_page plugin to Redmine it is not possible to access the Activity tab.

Log shows the following lines:

Started GET "/activity" for 192.168.32.104 at 2020-06-17 15:26:51 +0200
Processing by ActivitiesController#index as HTML
  Current user: predrag.skokovic (id=5)
Completed 500 Internal Server Error in 88ms (ActiveRecord: 21.0ms)

NameError (undefined local variable or method `index_without_esi' for #<ActivitiesController:0x000055bcc62cd908>
Did you mean?  index_with_esi):

plugins/redmine_my_page/lib/my_page_patches/activities_controller_patch.rb:87:in `index_with_esi'
lib/redmine/sudo_mode.rb:65:in `sudo_mode'
Environment:
    Redmine version                4.1.1.stable
    Ruby version                   2.5.1-p57 (2018-03-29) [x86_64-linux-gnu]
    Rails version                  5.2.4.2
    Environment                    production
    Database adapter               Mysql2
    Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
    Mailer delivery                smtp
SCM:
    Git                            2.17.1
    Filesystem                     
Redmine plugins:
    external_links_in_new_window   0.9
    redmine_my_page                0.1.13

My page blocks added have an English name

It would be nice adding translations for the names of added blocks in my page.
In order to do so, we simply need to add strings labeled after My page block names:
en:
activities: Activity
custom_query_issues_list: Issue lists from my queries
my_custom_queries: My queries

in config/locales/en.yml

I can provide French and Russian files if you want.

Wrong version in redmine admin page

Hello,

I'm using your plugin and when I check for update in redmine >> administration >> plugins, it says most recent version is 1.10 and it display 0.1.10.

FYI, in init.rb number is 0.1.10.

Enable Activity listing status is always unchecked on reopened/refreshed configuration page.

Environment:
Redmine version 3.4.2.stable
Ruby version 2.4.2-p198 (2017-09-14) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter PostgreSQL

Redmine plugins:
redmine_my_page 0.1.10
....

When 'Enable Activity listing in MyPage.' status is checked it breaks activity log as it is written in the note.
But when the configuration page is reopen/refreshed, status is unselected.

To deselect user must select it and deselect to get activity log work again.
I am expecting to see the actual status the first time.

No logs are found.

how to select the default homepage?

hi,
per your documentation: "the plugin also provides the default page to be shown after login into the system. This can be the My Page or any Projects Issue List or Filtered Issue List."
Where can this setting be found? this is a great feature!
thanks in advance for your help
G

Hooks is not a module (Redmine 2.6)

Hi,

when I'm trying to install the plugin in a redmine 2.6 installation I get the following error on executing
bundle exec rake redmine:plugins:migrate RAILS_ENV=production

rake aborted!
Hooks is not a module
redmine/plugins/redmine_my_page/lib/hooks/redmine_my_page_hook.rb:1:in `<top (required)>'

is there any dependency missing?
Redmine 2.6
Ruby 2.0.0
Rails 3.2.22

Thanks for your suggestions.

Agile-Taskboard?

Is it possible to have the Agiletaskboard as startpage?

thanks ahead

404 error

hi,
I just tried your plugin on my v3 environment but I am getting a 404 on the admin page??

Redmine version 3.0.1.stable
Ruby version 2.2.1-p85 (2015-02-26) [x86_64-linux]
Rails version 4.2.0

I simply used the zip download tonight
thanks for your help

500 server error when trying to select custom queries on version 2.6

I am running on 2.6 and receiving a 500 error when trying to select custom queries. What are we missing?

Started GET "/my/my_custom_form?dashboard_id=0&object=user&type=my_cust_query" for 172.16.123.194 at 2016-04-08 10:12:03 -0600
Processing by MyController#my_custom_form as JS
  Parameters: {"dashboard_id"=>"0", "object"=>"user", "type"=>"my_cust_query"}
  Current user: bob (id=7)
Completed 500 Internal Server Error in 5.0ms

ArgumentError (wrong number of arguments (3 for 1)):
  activerecord (3.2.21) lib/active_record/relation/calculations.rb:179:in `pluck'
  plugins/redmine_my_page/lib/my_page_patches/my_controller_patch.rb:37:in `my_custom_form'
  actionpack (3.2.21) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  actionpack (3.2.21) lib/abstract_controller/base.rb:167:in `process_action'
  actionpack (3.2.21) lib/action_controller/metal/rendering.rb:10:in `process_action'
  actionpack (3.2.21) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
  activesupport (3.2.21) lib/active_support/callbacks.rb:491:in `_run__1027753261596879224__process_action__1707121830259629243__callbacks'
  activesupport (3.2.21) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.21) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
  activesupport (3.2.21) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.21) lib/abstract_controller/callbacks.rb:17:in `process_action'
  actionpack (3.2.21) lib/action_controller/metal/rescue.rb:29:in `process_action'
  actionpack (3.2.21) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
  activesupport (3.2.21) lib/active_support/notifications.rb:123:in `block in instrument'
  activesupport (3.2.21) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activesupport (3.2.21) lib/active_support/notifications.rb:123:in `instrument'
  actionpack (3.2.21) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
  actionpack (3.2.21) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
  activerecord (3.2.21) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  actionpack (3.2.21) lib/abstract_controller/base.rb:121:in `process'
  actionpack (3.2.21) lib/abstract_controller/rendering.rb:45:in `process'
  actionpack (3.2.21) lib/action_controller/metal.rb:203:in `dispatch'
  actionpack (3.2.21) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
  actionpack (3.2.21) lib/action_controller/metal.rb:246:in `block in action'
  actionpack (3.2.21) lib/action_dispatch/routing/route_set.rb:73:in `call'
  actionpack (3.2.21) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
  actionpack (3.2.21) lib/action_dispatch/routing/route_set.rb:36:in `call'
  journey (1.0.4) lib/journey/router.rb:68:in `block in call'
  journey (1.0.4) lib/journey/router.rb:56:in `each'
  journey (1.0.4) lib/journey/router.rb:56:in `call'
  actionpack (3.2.21) lib/action_dispatch/routing/route_set.rb:608:in `call'
  rack-openid (1.4.2) lib/rack/openid.rb:98:in `call'
  request_store (1.0.5) lib/request_store/middleware.rb:9:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  rack (1.4.5) lib/rack/etag.rb:23:in `call'
  rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/head.rb:14:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/flash.rb:242:in `call'
  rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
  rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/cookies.rb:341:in `call'
  activerecord (3.2.21) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.21) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
  activesupport (3.2.21) lib/active_support/callbacks.rb:405:in `_run__1685529229128167129__call__1943703303259666936__callbacks'
  activesupport (3.2.21) lib/active_support/callbacks.rb:405:in `__run_callback'
  activesupport (3.2.21) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
  activesupport (3.2.21) lib/active_support/callbacks.rb:81:in `run_callbacks'
  actionpack (3.2.21) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.21) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.21) lib/rails/rack/logger.rb:16:in `block in call'
  activesupport (3.2.21) lib/active_support/tagged_logging.rb:22:in `tagged'
  railties (3.2.21) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/request_id.rb:22:in `call'
  rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.5) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.21) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.5) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.21) lib/action_dispatch/middleware/static.rb:83:in `call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
  rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
  rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
  railties (3.2.21) lib/rails/engine.rb:484:in `call'
  railties (3.2.21) lib/rails/application.rb:231:in `call'
  railties (3.2.21) lib/rails/railtie/configurable.rb:30:in `method_missing'
  passenger (5.0.6) lib/phusion_passenger/rack/thread_handler_extension.rb:85:in `process_request'
  passenger (5.0.6) lib/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request'
  passenger (5.0.6) lib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
  passenger (5.0.6) lib/phusion_passenger/request_handler.rb:414:in `block (3 levels) in start_threads'
  passenger (5.0.6) lib/phusion_passenger/utils.rb:111:in `block in create_thread_and_abort_on_exception'

Error after removing redmine_my_page

I have removed this plugin and restarted system along with plugin migrate but I am left with the following error:
No route matches {:action=>"page_layout", :controller=>"my"}

I tried to reinstall the plugin, thinking I should reset mypage but this hasn't worked.

Please could you advise proper uninstall process and possibly update rm?

404 error when custom query is added into my page

Environment:
Redmine version 3.4.2.stable
Ruby version 2.4.2-p198 (2017-09-14) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter PostgreSQL

Redmine plugins:
redmine_my_page 0.1.10
....

Description:
After adding custom issue query "My page" always returns "404 - The page you were trying to access doesn't exist or has been removed."

To get it back I had to delete the added query from my saved queries.

Logs:
Started GET "/my/page" for 172.19.0.3 at 2017-10-04 07:19:57 +0000
Processing by MyController#page as HTML
Current user: user(id=6)
Rendered queries/_columns.html.erb (2.5ms)
Rendered issues/_list.html.erb (11.2ms)
Rendered my/blocks/_issues.erb (22.8ms)
Rendered plugins/redmine_dmsf/app/views/my/blocks/_open_approvals.html.erb (2.2ms)
Rendered news/_news.html.erb (0.0ms)
Rendered my/blocks/_news.html.erb (1.1ms)
Rendered queries/_columns.html.erb (2.3ms)
Rendered my/blocks/_issues.erb (8.7ms)
Rendered queries/_columns.html.erb (2.3ms)
Rendered my/blocks/_issues.erb (8.3ms)
Rendered plugins/redmine_my_page/app/views/my/_my_queries_issue_list.html.erb (35.3ms)
Rendered plugins/redmine_my_page/app/views/my/blocks/_custom_query_issues_list.html.erb (37.0ms)
Rendered my/page.html.erb within layouts/base (168.5ms)
Missing template, responding with 404
Rendered common/error.html.erb within layouts/base (1.4ms)
Rendered plugins/a_common_libs/app/views/hooks/a_common_libs/_html_head.html.erb (1.7ms)
Rendered plugins/redmine_contacts/app/views/contacts_issues/_additional_assets.html.erb (1.1ms)
Rendered inline template (1.5ms)
Rendered inline template (1.1ms)
Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_html_header.html.erb (0.7ms)
Rendered plugins/additionals/app/views/additionals/_html_head.html.erb (9.1ms)
Rendered plugins/progressive_projects_list/app/views/application/_progressive_sidebar.html.erb (0.8ms)
Rendered plugins/progressive_projects_list/app/views/application/_progressive_recent_projects.html.erb (0.7ms)
Rendered plugins/sidebar_hide/app/views/sidebar/_hideButton_partial.html.erb (0.6ms)
Rendered plugins/additionals/app/views/additionals/_content.html.erb (0.6ms)
Rendered plugins/redmine_contacts/app/views/common/_contacts_select2_data.html.erb (0.8ms)
Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_body_bottom.html.erb (0.6ms)
Rendered plugins/additionals/app/views/additionals/_body_bottom.html.erb (0.6ms)
Rendered plugins/redmine_people/app/views/common/_people_select2_data.html.erb (0.8ms)
Rendered plugins/redmine_people/app/views/common/_layout_bottom.html.erb (1.6ms)
Completed 404 Not Found in 239ms (Views: 45.7ms | ActiveRecord: 46.5ms)

Default Page after login could not be reset to default after set to My Page in the My account configuration.

Environment:
Redmine version 3.4.2.stable
Ruby version 2.4.2-p198 (2017-09-14) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter PostgreSQL

Redmine plugins:
redmine_my_page 0.1.10
....

Note: Redmine was upgraded from version 3.3.3.

Description:
I have set the setting "My account -> Default Page after login" to "My page" and aftervards I can not change it to anything else.
When ever I push the save button it gets changed back to the value "My page" and does not change the mapping.
Even when I am clicking on the Home item I am always redirected to the My page.
I would expect to be redirected to the My page when I login but if I want to go to the "Home" page that would be accessible to.

Here is log after Save button is clicked:

redmine | Started POST "/my/account" for 172.19.0.2 at 2017-10-19 08:43:25 +0000
redmine | Processing by MyController#account as HTML
redmine |   Parameters: {"utf8"=>"โœ“", "authenticity_token"=>"sometoken==", "user"=>{"firstname"=>"name", "lastname"=>"lastname", "mail"=>"my.mail", "language"=>"en", "mail_notification"=>"only_my_events", "notified_project_ids"=>[""]}, "pref"=>{"favourite_project_id"=>"1", "theme"=>"__default_theme__", "no_self_notified"=>"1", "hide_mail"=>"1", "time_zone"=>"MyZone", "comments_sorting"=>"asc", "warn_on_leaving_unsaved"=>"1", "textarea_font"=>"", "dmsf_tree_view"=>"0", "landing_page"=>""}, "commit"=>"Save"}
redmine |   Current user: MyUserName (id=6)
redmine | Redirected to http://192.168.79.128/my/account
redmine | Completed 302 Found in 36ms (ActiveRecord: 6.8ms)
redmine | Started GET "/my/account" for 172.19.0.2 at 2017-10-19 08:43:25 +0000
redmine | Processing by MyController#account as HTML
redmine |   Current user: MyUserName (id=6)
redmine |   Rendered plugins/a_common_libs/app/views/hooks/a_common_libs/_favourite_project.html.erb (5.9ms)
redmine |   Rendered plugins/redmine_theme_changer/app/views/my/_theme_changer_form.html.erb (0.7ms)
redmine |   Rendered plugins/redmine_people/app/views/my/_disabled_fields.html.erb (0.2ms)
redmine |   Rendered users/_mail_notifications.html.erb (4.9ms)
redmine |   Rendered users/_preferences.html.erb (10.4ms)
redmine |   Rendered plugins/redmine_dmsf/app/views/hooks/redmine_dmsf/_view_my_account.html.erb (0.4ms)
redmine |   Rendered plugins/additionals/app/views/users/_autowatch_involved_issue.html.erb (0.6ms)
redmine |   Rendered my/_sidebar.html.erb (6.7ms)
redmine |   Rendered my/account.html.erb within layouts/base (54.5ms)
redmine |   Rendered plugins/a_common_libs/app/views/hooks/a_common_libs/_html_head.html.erb (1.0ms)
redmine |   Rendered plugins/redmine_contacts/app/views/contacts_issues/_additional_assets.html.erb (0.5ms)
redmine |   Rendered inline template (0.5ms)
redmine |   Rendered inline template (0.4ms)
redmine |   Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_html_header.html.erb (0.2ms)
redmine |   Rendered plugins/additionals/app/views/additionals/_html_head.html.erb (6.5ms)
redmine |   Rendered plugins/progressive_projects_list/app/views/application/_progressive_sidebar.html.erb (0.3ms)
redmine |   Rendered plugins/progressive_projects_list/app/views/application/_progressive_recent_projects.html.erb (0.4ms)
redmine |   Rendered plugins/sidebar_hide/app/views/sidebar/_hideButton_partial.html.erb (1.3ms)
redmine |   Rendered plugins/additionals/app/views/additionals/_content.html.erb (0.2ms)
redmine |   Rendered plugins/redmine_contacts/app/views/common/_contacts_select2_data.html.erb (0.4ms)
redmine |   Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_body_bottom.html.erb (0.2ms)
redmine |   Rendered plugins/additionals/app/views/additionals/_body_bottom.html.erb (0.2ms)
redmine |   Rendered plugins/redmine_people/app/views/common/_people_select2_data.html.erb (0.3ms)
redmine |   Rendered plugins/redmine_people/app/views/common/_layout_bottom.html.erb (0.5ms)
redmine | Completed 200 OK in 100ms (Views: 80.1ms | ActiveRecord: 13.5ms)
redmine | Started GET "/people/avatar?id=6&size=80x80" for 172.19.0.2 at 2017-10-19 08:43:25 +0000
redmine | Processing by PeopleController#avatar as */*
redmine |   Parameters: {"id"=>"6", "size"=>"80x80"}
redmine |   Current user: MyUserName (id=6)
redmine | Completed 304 Not Modified in 10ms (ActiveRecord: 3.4ms)
redmine | Started GET "/people/avatar?id=6&size=50x50" for 172.19.0.2 at 2017-10-19 08:43:25 +0000
redmine | Processing by PeopleController#avatar as */*
redmine |   Parameters: {"id"=>"6", "size"=>"50x50"}
redmine |   Current user: MyUserName (id=6)
redmine | Completed 304 Not Modified in 15ms (ActiveRecord: 5.5ms)

If I click that same button again with no settings change, parameters are changed:

"landing_page"=>"my_page"

This is the value that is rewritten no metter what I select.

Admin could change default page

Could it be possible to let the administrator change the default page of the users? Either with a global default parameter, or for each user when editing its profile, or both? Thank you.

Redmine 4 support?

are there any plans to fix it for redmine 4?

now it show's error:

# bundle exec rake redmine:plugins:migrate RAILS_ENV=production
NoMethodError: undefined method `to_prepare' for ActionDispatch::Callbacks:Class
Did you mean?  to_param
/opt/redmine/redmine-4.0/plugins/redmine_my_page/init.rb:7:in `<top (required)>'
/usr/local/lib64/ruby/gems/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
/usr/local/lib64/ruby/gems/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
/usr/local/lib64/ruby/gems/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
/usr/local/lib64/ruby/gems/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
/opt/redmine/redmine-4.0/lib/redmine/plugin.rb:173:in `block in load'
/opt/redmine/redmine-4.0/lib/redmine/plugin.rb:164:in `each'
/opt/redmine/redmine-4.0/lib/redmine/plugin.rb:164:in `load'
/opt/redmine/redmine-4.0/config/initializers/30-redmine.rb:21:in `<top (required)>'
/usr/local/lib64/ruby/gems/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `load'
/usr/local/lib64/ruby/gems/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `block in load'
/usr/local/lib64/ruby/gems/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
/usr/local/lib64/ruby/gems/2.4.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in `load'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/engine.rb:657:in `block in load_config_initializer'
/usr/local/lib64/ruby/gems/2.4.0/gems/activesupport-5.2.2/lib/active_support/notifications.rb:170:in `instrument'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/engine.rb:656:in `load_config_initializer'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/engine.rb:614:in `block (2 levels) in <class:Engine>'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in `each'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in `block in <class:Engine>'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `instance_exec'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `run'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in `each'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in `tsort_each_child'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:in `run_initializers'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/application.rb:361:in `initialize!'
/opt/redmine/redmine-4.0/config/environment.rb:14:in `<top (required)>'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/application.rb:337:in `require'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/application.rb:337:in `require_environment!'
/usr/local/lib64/ruby/gems/2.4.0/gems/railties-5.2.2/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/usr/local/lib64/ruby/gems/2.4.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)

Spanish locale

Hi, this is the Spanish locale for the plugin.

Thanks a lot for your plugin!
es.txt

Redmine 3.2.1 with the plugin 500 error

the log is

Started GET "/settings/plugin/redmine_my_page" for 192.168.60.239 at 2016-04-15 14:03:07 +0800
Processing by SettingsController#plugin as HTML
Parameters: {"id"=>"redmine_my_page"}
Current user: admin (id=1)
Rendered plugins/redmine_my_page/app/views/settings/_my_page_option_settings.html.erb (10.4ms)
Rendered settings/plugin.html.erb within layouts/admin (25.3ms)
Completed 500 Internal Server Error in 60ms (ActiveRecord: 2.2ms)

ActionView::Template::Error (no implicit conversion of Symbol into Integer):
1:


2: <%= l(:label_my_activity_enable) %>
3: <%= check_box_tag 'settings[my_activity_enable]', 1, @settings[:my_activity_enable] == "1" %>
4:

5: <%= l(:em_my_activity_enable) %>
6:


plugins/redmine_my_page/app/views/settings/_my_page_option_settings.html.erb:3:in []' plugins/redmine_my_page/app/views/settings/_my_page_option_settings.html.erb:3:in_35e72d247994c46ef48a3e1e2bcd0573'
plugins/redmine_workflow_enhancements/lib/workflow_enhancements/patches/action_view_rendering.rb:53:in render_with_workflow_enhancements' app/views/settings/plugin.html.erb:6:inblock in _84aa70a722df0592159e77304cea73c0'
app/views/settings/plugin.html.erb:4:in _84aa70a722df0592159e77304cea73c0' lib/redmine/sudo_mode.rb:63:insudo_mode'

My environment is
Redmine 3.2.1 Stable
when I open the plugins - configuration the error occured? any solution?
Thanks.

error on opening my_site

Started GET "/my/page" for xxx.xxx.xxx.xxx at 2015-04-20 18:01:38 +0200
Processing by MyController#page as HTML
Current user: xxx (id=3)
Rendered my/blocks/_timelog.html.erb (676.7ms)
Rendered plugins/redmine_my_page/app/views/my/_my_queries_issue_list.html.erb (2.8ms)
Rendered plugins/redmine_my_page/app/views/my/blocks/_custom_query_issues_list.html.erb (3.2ms)
Rendered my/page.html.erb within layouts/base (680.7ms)
Completed 500 Internal Server Error in 701ms

ActionView::Template::Error (undefined method statement' for nil:NilClass): 1: <% query = IssueQuery.find_by_id(query_id) 2: query_issues = Issue.joins(:status, :tracker, :project, :priority).where( 3: query.statement).limit(query_limit).to_a 4: query_issues_count = Issue.joins(:status, :tracker, :project, :priority).where( 5: query.statement).count 6: param_hash = query.project_id.nil? ? { :query_id => query_id } : { :project_id => query.project_id, :query_id => query_id } app/views/my/page.html.erb:11:inblock in _app_views_my_page_html_erb__469832764_105562270'
app/views/my/page.html.erb:8:in each' app/views/my/page.html.erb:8:in_app_views_my_page_html_erb__469832764_105562270'

Sorting does not work

A created sorted issues query is printed unsorted in the custom queries list widget.

internal error after deleting "all" query

Dear Rupesh,

I'd like to firstly thank you for creating this useful plugin!

I deleted one query of "all" and then the plugin caused an error with this log:

Started GET "/redmine/my/page" for 14.26.73.224 at 2018-01-19 11:35:09 +0800
Processing by MyController#page as HTML
  Current user: tony.lyu (id=7)
  Rendered my/blocks/_issue_query_selection.html.erb (1.1ms)
  Rendered queries/_columns.html.erb (1.2ms)
  Rendered my/blocks/_issues.erb (4.7ms)
  Rendered plugins/redmine_my_page/app/views/my/_my_page_activities.html.erb (2.2ms)
  Rendered plugins/redmine_my_page/app/views/my/blocks/_activities.html.erb (2.5ms)
  Rendered my/page.html.erb within layouts/base (24.4ms)
Completed 500 Internal Server Error in 32ms (ActiveRecord: 8.0ms)

ActionView::Template::Error (undefined method `project_id' for nil:NilClass):
    18: 
    19:   <script type="text/javascript">
    20:     $.ajax({
    21:         url: "<%= query.project_id.nil? ? activity_path(:query_id => query_id) :
    22:                   project_activity_path( :id => query.project_id, :query_id => query_id ) %>",
    23:         cache: false,
    24:         success: function(html){$("#my-activities-"+ "<%= query_id %>").append(html);},
  plugins/redmine_my_page/app/views/my/_my_page_activities.html.erb:21:in `_plugins_redmine_my_page_app_views_my__my_page_activities_html_erb__1365772282778660569_70308165411940'
  plugins/redmine_my_page/app/views/my/blocks/_activities.html.erb:20:in `block in _plugins_redmine_my_page_app_views_my_blocks__activities_html_erb__3348487005950010121_70308165359160'
  plugins/redmine_my_page/app/views/my/blocks/_activities.html.erb:19:in `each'
  plugins/redmine_my_page/app/views/my/blocks/_activities.html.erb:19:in `_plugins_redmine_my_page_app_views_my_blocks__activities_html_erb__3348487005950010121_70308165359160'
  app/helpers/my_helper.rb:58:in `render_block_content'
  app/helpers/my_helper.rb:35:in `render_block'
  app/helpers/my_helper.rb:27:in `block in render_blocks'
  app/helpers/my_helper.rb:26:in `each'
  app/helpers/my_helper.rb:26:in `render_blocks'
  app/views/my/page.html.erb:13:in `block in _app_views_my_page_html_erb__1804990256705747609_70308149419160'
  app/views/my/page.html.erb:11:in `each'
  app/views/my/page.html.erb:11:in `_app_views_my_page_html_erb__1804990256705747609_70308149419160'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

it might not be a bug in this plugin but I really need a solution, can you help on this?

404 when trying to add a block to my page

As soon as I try to add one of the plugin blocks to my page, I get a 404 on the my page personalization page. This is happening with other my page plugins as well, so I don't think it's a problem with the plugin necessarily, but I'm hoping you might know what's going on.

Log below. It looks like it's having trouble finding a template. I'm not a ruby developer, but if you can point me in the right direction I can probably figure it out.

Processing by MyController#page as HTML
Current user: daywalker (id=4)
Rendered my/page.html.erb within layouts/base (2.3ms)
Missing template, responding with 404
Rendered common/error.html.erb within layouts/base (0.3ms)
Completed 404 Not Found in 37ms (Views: 22.8ms | ActiveRecord: 1.2ms)
Started GET "/my/page" for 50.196.5.22 at 2016-02-09 12:38:29 -0500
Processing by MyController#page as HTML
Current user: daywalker (id=4)
Rendered my/page.html.erb within layouts/base (43.6ms)
Missing template, responding with 404
Rendered common/error.html.erb within layouts/base (0.9ms)
Completed 404 Not Found in 661ms (Views: 394.8ms | ActiveRecord: 6.7ms)

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.