Coder Social home page Coder Social logo

redmine_issues_poll's People

Contributors

cforce avatar edmagne avatar jfguedes avatar snv avatar zealot128 avatar

Stargazers

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

redmine_issues_poll's Issues

Migration error - Child already added

/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:inpush'
/opt/redmine-1.2.1d3/lib/redmine/plugin.rb:185:in menu' /opt/redmine-1.2.1d3/vendor/plugins/redmine_polls/init.rb:11:inevaluate_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:inregister'
/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:inevaluate_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:inevaluate_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:inload'
/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:ineach'
/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:inload_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:insend'
/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:ingem_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:inrequire'
/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:inrequire'
/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:inload'
/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:inload'
/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:ingem_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:inload'
/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:inraw_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:instandard_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:inrun'
/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:inrun'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2/bin/rake:32
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

404 error-The page you were trying to access doesn't exist or has been removed.

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:incall'
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock 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:incall'
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall'
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall'
rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:incall'
rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch'
rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.13) lib/rails/engine.rb:479:incall'
railties (3.2.13) lib/rails/application.rb:223:in call' railties (3.2.13) lib/rails/railtie/configurable.rb:30:inmethod_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:inaccept_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:inblock (3 levels) in start_threads'

where can i vote for my issue

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

NoMethodError in Issues#show

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"}

number of votes should be avalaible per issue / not project

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.

screeners

Nice work!
Can u please publsich some screenshots from the ui?

Allow Aye/Nay?

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

Disable Voting Activity

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.

[cross plugin bug - same table name] redmine_issues_poll and redmine_questions

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

See also http://redminecrm.com/boards/18/topics/483-cross-plugin-bug-same-table-name-redmine_issues_poll-and-redmine_questions

not wornking with redmine 2.3.1

When i click on the Issues view i get following error

NoMethodError (undefined method each' for nil:NilClass): app/models/query.rb:310:inavailable_filters'
app/models/query.rb:351:in type_for' app/models/query.rb:217:inblock in validate_query_filters'
app/models/query.rb:215:in each_key' app/models/query.rb:215:invalidate_query_filters'
app/controllers/issues_controller.rb:61:in `index'

Returning Votes

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.

users not checked if nil

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)

ActionView::Template::Error (undefined method `form_remote_tag'

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'

Vote problem

Problem when add all votes for a issue. Do not save.

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.