dextra / redmine_issues_poll Goto Github PK
View Code? Open in Web Editor NEWA redmine plugin to elect issues.
License: Apache License 2.0
A redmine plugin to elect issues.
License: Apache License 2.0
/opt/redmine-1.2.1d3 # rake db:migrate_plugins RAILS_ENV=production --trace
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
Child already added
/opt/redmine-1.2.1d3/lib/redmine/menu_manager.rb:53:in add_at' /opt/redmine-1.2.1d3/lib/redmine/menu_manager.rb:363:in
push'
/opt/redmine-1.2.1d3/lib/redmine/plugin.rb:185:in menu' /opt/redmine-1.2.1d3/vendor/plugins/redmine_polls/init.rb:11:in
evaluate_init_rb'
/opt/redmine-1.2.1d3/lib/redmine/plugin.rb:67:in instance_eval' /opt/redmine-1.2.1d3/lib/redmine/plugin.rb:67:in
register'
/opt/redmine-1.2.1d3/vendor/plugins/redmine_polls/init.rb:5:in evaluate_init_rb' /opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/rails/plugin.rb:158:in
evaluate_init_rb'
/opt/redmine-1.2.1d3/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in silence_warnings' /opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/rails/plugin.rb:154:in
evaluate_init_rb'
/opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/rails/plugin.rb:48:in load' /opt/redmine-1.2.1d3/config/../vendor/plugins/engines/lib/engines/plugin.rb:44:in
load'
/opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:38:in load_plugins' /opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in
each'
/opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:37:in load_plugins' /opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/initializer.rb:369:in
load_plugins'
/opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/initializer.rb:165:in process' /opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/initializer.rb:113:in
send'
/opt/redmine-1.2.1d3/config/../vendor/rails/railties/lib/initializer.rb:113:in run' /opt/redmine-1.2.1d3/config/environment.rb:20 /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require' /opt/redmine-1.2.1d3/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in
require'
/opt/redmine-1.2.1d3/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in new_constants_in' /opt/redmine-1.2.1d3/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in
require'
/opt/redmine-1.2.1d3/vendor/plugins/redmine_digest/lib/tasks/digest.rake:31
/opt/redmine-1.2.1d3/vendor/rails/activesupport/lib/active_support/dependencies.rb:171:in load_without_new_constant_marking' /opt/redmine-1.2.1d3/vendor/rails/activesupport/lib/active_support/dependencies.rb:171:in
load'
/opt/redmine-1.2.1d3/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in new_constants_in' /opt/redmine-1.2.1d3/vendor/rails/activesupport/lib/active_support/dependencies.rb:171:in
load'
/opt/redmine-1.2.1d3/vendor/rails/railties/lib/tasks/rails.rb:13
/opt/redmine-1.2.1d3/vendor/rails/railties/lib/tasks/rails.rb:13:in each' /opt/redmine-1.2.1d3/vendor/rails/railties/lib/tasks/rails.rb:13 /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require' /opt/redmine-1.2.1d3/Rakefile:10 /usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in
load'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in load_rakefile' /usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:495:in
raw_load_rakefile'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:78:in load_rakefile' /usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in
standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:77:in load_rakefile' /usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:61:in
run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in standard_exception_handling' /usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in
run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/bin/rake:32
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
ActionController::RoutingError (No route matches [GET] "/plugin_assets/redmine_issues_poll/stylesheets/style.css"):
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in
call'
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:in
block in call'
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:in
call'
actionpack (3.2.13) 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.13) 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.13) lib/action_dispatch/middleware/static.rb:63: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.13) lib/rails/engine.rb:479:in
call'
railties (3.2.13) lib/rails/application.rb:223:in call' railties (3.2.13) lib/rails/railtie/configurable.rb:30:in
method_missing'
passenger (4.0.19) lib/phusion_passenger/rack/thread_handler_extension.rb:77:in process_request' passenger (4.0.19) lib/phusion_passenger/request_handler/thread_handler.rb:140:in
accept_and_process_next_request'
passenger (4.0.19) lib/phusion_passenger/request_handler/thread_handler.rb:108:in main_loop' passenger (4.0.19) lib/phusion_passenger/request_handler.rb:441:in
block (3 levels) in start_threads'
I see votes and who votes (in my case list is empty) but no button to vote.
Can u please add some documentation howto use and screenshots.
Tx alot
I tried installing the plugin from the old branch on a fresh install of redmine 1.4.4 and I am seeing this error when I try to view an issue:
NoMethodError in Issues#show
Showing vendor/plugins/redmine_issues_poll/app/views/hooks/_view_polls_form.rhtml where line #16 raised:
undefined method `errors' for :bet:Symbol
Extracted source (around line #16):
13: limitations under the License. -->
14:
15: <div id="rmipoll">
16: <%= error_messages_for :bet %>
17: <ul>
18: <li class="worktime">
19: <%= toggle_link t(:label_issue_votes), 'poll-members' %>
Trace of template inclusion: vendor/plugins/redmine_issues_poll/app/views/hooks/_view_polls_info.rhtml, app/views/issues/show.html.erb
RAILS_ROOT: /home/dan/dev/redmine
Application Trace | Framework Trace | Full Trace
/home/dan/dev/redmine/app/helpers/application_helper.rb:954:in `error_messages_for'
/home/dan/dev/redmine/app/helpers/application_helper.rb:954:in `map'
/home/dan/dev/redmine/app/helpers/application_helper.rb:954:in `error_messages_for'
/home/dan/dev/redmine/lib/redmine/hook.rb:113:in `send'
/home/dan/dev/redmine/lib/redmine/hook.rb:113:in `view_issues_show_description_bottom'
/home/dan/dev/redmine/lib/redmine/hook.rb:63:in `send'
/home/dan/dev/redmine/lib/redmine/hook.rb:63:in `call_hook'
/home/dan/dev/redmine/lib/redmine/hook.rb:63:in `each'
/home/dan/dev/redmine/lib/redmine/hook.rb:63:in `call_hook'
/home/dan/dev/redmine/lib/redmine/hook.rb:60:in `tap'
/home/dan/dev/redmine/lib/redmine/hook.rb:60:in `call_hook'
/home/dan/dev/redmine/lib/redmine/hook.rb:146:in `call_hook'
/home/dan/dev/redmine/app/views/issues/show.html.erb:85:in `_run_erb_app47views47issues47show46html46erb'
/home/dan/dev/redmine/app/controllers/issues_controller.rb:118:in `show'
/home/dan/dev/redmine/app/controllers/issues_controller.rb:115:in `show'
Request
Parameters:
{"id"=>"1"}
Hi
For me it seems more logical to assing votes that each user can assing to each issue in project.
General scenario is the you got many features, which will grow, and / ore will be resolved and closed.
And each user can add only 1 vote per issue, thus making it obvious what majority of people want to be implemented.
Maybe I am missing something how above behaviour can be achvieved.
Thanks.
Nice work!
Can u please publsich some screenshots from the ui?
I hate to even leave this because it is such a magnificent plugin. However . . .
Have you considered allowing an Aye/Nay (Yes/No . . .) capability where someone can record their vote if they feel like it's a bad idea? This would be really helpful to allow dissenters a voice :)
Really great Plugin but it doesn't work under will known and betller looking highrise theme (http://redminecrm.com/projects/highrisetheme/products).
The voting tool area overlays the redmine issue standard button on upper right, see screenshot.
It would be nice if Changes in Votes would not necessarily trigger an Event in the Activity view. In our case this would lead to clutter, which i would like to switch off.
Migrating redmine_questions (Redmine Q&A plugin)...
ActsAsVotableMigration: migrating =======================================
-- create_table(:votes)
rake aborted!
An error has occurred, all later migrations canceled:
Mysql2::Error: Table 'votes' already exists: CREATE TABLE votes
(id
int(11) DEFAULT NULL auto_increment PRIMARY KEY, votable_id
int(11), votable_type
varchar(255), voter_id
int(11), voter_type
varchar(255), vote_flag
tinyint(1), created_at
datetime NOT NULL, updated_at
datetime NOT NULL) ENGINE=InnoDB
The plugin https://github.com/dextra/redmine_issues_poll.git and http://redminecrm.com/projects/questions use same table name "votes". Please talk to the author that someone changes table name unique
When i click on the Issues view i get following error
NoMethodError (undefined method each' for nil:NilClass): app/models/query.rb:310:in
available_filters'
app/models/query.rb:351:in type_for' app/models/query.rb:217:in
block in validate_query_filters'
app/models/query.rb:215:in each_key' app/models/query.rb:215:in
validate_query_filters'
app/controllers/issues_controller.rb:61:in `index'
Votes should be given back to the users' pools when a vote is finished.
This might either be, when a ticket gets closed, or maybe when a ticket changes to a non-votable state.
Of course this would require to reset a poll, when a vote changes from a non-votable state to a votable one.
There are several deprecated calls in the code
Processing PollsController#index (for 172.16.104.6 at 2012-02-10 17:34:58) [GET]
I, [2012-02-10T17:34:58.540528 #11109] INFO -- : Parameters: {"project_id"=>"spielwiese", "action"=>"index", "controller"=>"polls"}
D, [2012-02-10T17:34:58.542652 #11109] DEBUG -- : �[4;36;1mSQL (1.4ms)�[0m �[0;1mSELECT max(settings
.updated_on) AS max_updated_on FROM settings
�[0m
D, [2012-02-10T17:34:58.544404 #11109] DEBUG -- : �[4;35;1mUser Load (1.0ms)�[0m �[0mSELECT * FROM users
WHERE (users
.id
= 3) AND (users.status = 1) AND ( (users
.type
= 'User' OR users
.type
= 'AnonymousUser' ) ) �[0m
D, [2012-02-10T17:34:58.545424 #11109] DEBUG -- : �[4;36;1mProject Load (0.3ms)�[0m �[0;1mSELECT * FROM projects
WHERE (projects
.identifier
= 'spielwiese') LIMIT 1�[0m
D, [2012-02-10T17:34:58.546406 #11109] DEBUG -- : �[4;35;1mEnabledModule Load (0.5ms)�[0m �[0mSELECT name FROM enabled_modules
WHERE (enabled_modules
.project_id = 105) �[0m
D, [2012-02-10T17:34:58.559199 #11109] DEBUG -- : �[4;36;1mIssueStatus Load (6.4ms)�[0m �[0;1mSELECT * FROM issue_statuses
ORDER BY position�[0m
D, [2012-02-10T17:34:58.560408 #11109] DEBUG -- : �[4;35;1mEligibleStatus Load (0.9ms)�[0m �[0mSELECT * FROM eligible_statuses
�[0m
D, [2012-02-10T17:34:58.560745 #11109] DEBUG -- : �[4;36;1mCACHE (0.0ms)�[0m �[0;1mSELECT * FROM projects
WHERE (projects
.identifier
= 'spielwiese') LIMIT 1�[0m
D, [2012-02-10T17:34:58.561148 #11109] DEBUG -- : �[4;35;1mCACHE (0.0ms)�[0m �[0mSELECT name FROM enabled_modules
WHERE (enabled_modules
.project_id = 105) �[0m
D, [2012-02-10T17:34:58.576189 #11109] DEBUG -- : �[4;36;1mVotingPoll Load (8.8ms)�[0m �[0;1mSELECT * FROM voting_polls
WHERE (voting_polls
.project_id
= 105) �[0m
I, [2012-02-10T17:34:58.578292 #11109] INFO -- : Rendering template within layouts/base
I, [2012-02-10T17:34:58.578351 #11109] INFO -- : Rendering polls/index
D, [2012-02-10T17:34:58.584540 #11109] DEBUG -- : Rendered polls/_config (3.2ms)
F, [2012-02-10T17:34:58.614064 #11109] FATAL -- :
ActionView::TemplateError (undefined method `empty?' for nil:NilClass) on line #15 of vendor/plugins/redmine_issues_poll/app/views/polls/_members.rhtml:
12: See the License for the specific language governing permissions and
13: limitations under the License. -->
14:
15: <% if @users.empty? %>
16:
17: <%= l(:label_no_data) %>
18:
vendor/plugins/redmine_issues_poll/app/views/polls/_members.rhtml:15:in `_run_rhtml_vendor47plugins47redmine_issues_poll47app47views47polls47_members46rhtml_locals_members_object_tab'
app/views/common/_tabs.rhtml:24:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
app/views/common/_tabs.rhtml:23:in `each'
app/views/common/_tabs.rhtml:23:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
app/helpers/application_helper.rb:218:in `render_tabs'
vendor/plugins/redmine_issues_poll/app/views/polls/index.rhtml:21:in `_run_rhtml_vendor47plugins47redmine_issues_poll47app47views47polls47index46rhtml'
passenger (3.0.8) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.8) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.8) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
passenger (3.0.8) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
passenger (3.0.8) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.8) helper-scripts/passenger-spawn-server:99
I, [2012-02-10T17:34:58.629631 #11109] INFO -- : Rendering /opt/redmine-1.2.1d3/public/500.html (500 Internal Server Error)
Hoi there,
I just installed that plugin in redmine:
Environment:
Redmine version 2.1.0.stable.10437
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.8
Environment production
Database adapter SQLite
Redmine plugins:
redmine_issues_poll 0.0.1
But when i try to open the polls overview at http://XXXX/projects/XXXX/polls i get an internal server error.
The log then says:
Started GET "/projects/XXXX/polls" for XXX.XXX.XXX.XXX at Mi Okt 31 XXXX 2012
Processing by PollsController#index as HTML
Parameters: {"project_id"=>"XXXX"}
Current user: XXXX(id=X)
Rendered plugins/redmine_issues_poll/app/views/polls/_config.html.erb (3.1ms)
Rendered plugins/redmine_issues_poll/app/views/polls/_members.html.erb (367.1ms)
Rendered common/_tabs.html.erb (372.7ms)
Rendered plugins/redmine_issues_poll/app/views/polls/index.html.erb within layouts/base (374.1ms)
Completed 500 Internal Server Error in 404ms
ActionView::Template::Error (undefined method `form_remote_tag' for #<#<Class:0x7ff9d861d2b0>:0x7ff9d82e9bc0>):
44: <td>
45: <span id="view_votes_<%=user['id']%>" class="view_votes_toggle" onclick="toggleForm(<%=user['id']%>);"><%= user['votes'] %></span>
46: <span id="view_form_<%=user['id']%>" class="form_votes_toggle" style="display:none;">
47: <%= form_remote_tag :url => {:action => 'update_votes', :user_id => user['id']} do %>
48: <%= text_field_tag :votes, user['votes']%>
49: <%= submit_tag t(:label_update_votes) %>
50: <%= button_to_function t(:button_cancel), "toggleForm(#{user['id']});"%>
app/views/common/_tabs.html.erb:24:in `_app_views_common__tabs_html_erb___1217135757_70355527784060'
app/views/common/_tabs.html.erb:23:in `each'
app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb___1217135757_70355527784060'
app/helpers/application_helper.rb:259:in `render_tabs'
The install path for plugins has changed to #{RAILS_ROOT}/plugins
and the rake command changed to rake redmine:plugins:migrate RAILS_ENV=production
Problem when add all votes for a issue. Do not save.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.