Restream / redmine_tagging

Add simple tagging support to Redmine Issues/Wiki pages
113 stars 52 forks source link

Redmine 2 support #31

Closed alatarum closed 8 years ago

alatarum commented 12 years ago

Are you planning to update plugin for support redmine 2.0.x?

retorquere commented 12 years ago

No plans currently, will accept patches.

alatarum commented 12 years ago

Unfortunately I dont know ruby, but I can help with testing. Im trying to run plugin on 2.0.3 and https://github.com/mbleigh/acts-as-taggable-on 2.3.1. First issue is standard dispatcher problem. I`m replace

require 'dispatcher'
Dispatcher.to_prepare do

with

ActionDispatch::Callbacks.to_prepare do

Now I can create new issues with tags and add tags for existing issues, works tag suggestion, wiki not tested. Dont`t work issues list and search. Issues list page show error 500 with

  Rendered plugins/redmine_tagging/app/views/issues/index.api.rsb within layouts/base (0.8ms)
Completed 500 Internal Server Error in 193ms

ActionView::Template::Error (No builder for format ):
    1: api.array :issues, api_meta(:total_count => @issue_count, :offset => @offset, :limit => @limit) do
    2:   @issues.each do |issue|
    3:     api.issue do
    4:       api.id issue.id
  lib/redmine/views/builders.rb:25:in `for'
  app/controllers/issues_controller.rb:83:in `index'
  app/controllers/issues_controller.rb:82:in `index'

I cant find reason of this error and simply remove redmine_tagging/app/views/issues/index.api.rsb file. After that issues list are shown but there is no any tags information. Third problem is search - here I`m get MySQL error "Unknown column 'issue_tags.' in 'field list'" in very long query. Here is a part of that query:

 `journals`.`created_on` AS t2_r5, `issue_tags`.`` AS t3_r0, `issue_tags`.`id` AS t3_r1, `issue_tags`.`tag` AS t3_r2, `issue_tags`.`issue_id` AS t3_r3

I can`t find place where defined list of fields for query.

I`m hope you can help to solve this problems.

ksauzz commented 12 years ago

I resolved it partially... https://github.com/ksauzz/redmine_tagging/tree/redmine.2.x

But this still doesn't work the feature of inline editing. :cry:

alatarum commented 12 years ago

Thanks, it`s works for me.

retorquere commented 11 years ago

Will add to the plugin in the weekend.