happy-se-life / like Goto Github PK
View Code? Open in Web Editor NEWLike plugin for redmine
Home Page: https://it-managers-life.hatenablog.com/entry/2020/02/02/203908
License: MIT License
Like plugin for redmine
Home Page: https://it-managers-life.hatenablog.com/entry/2020/02/02/203908
License: MIT License
Add the number of likes received to the summary page.
URI.decode method is removed on Ruby 3.
My Redmine environment is as follows.
Environment:
Redmine version 5.1.0
Ruby version 3.1.4-p223 (2023-03-30) [x64-mingw-ucrt]
Rails version 6.1.7.6
The log at the time of the error occurrence is as follows.
Started GET "/product/projects/some_project_id/wiki" for 127.0.0.1 at 2023-11-21 07:32:13 +0900
Processing by WikiController#show as HTML
Parameters: {"project_id"=>"some_project_id"}
Current user: admin (id=1)
Rendered wiki/show.html.erb within layouts/base (Duration: 160.3ms | Allocations: 24625)
Rendered inline template (Duration: 0.5ms | Allocations: 282)
Rendered layout layouts/base.html.erb (Duration: 270.4ms | Allocations: 56613)
Completed 500 Internal Server Error in 339ms (ActiveRecord: 31.9ms | Allocations: 72977)
ActionView::Template::Error (undefined method `decode' for URI:Module
wiki_title = URI.decode(request.path.split("/").last)
^^^^^^^):
106: <%= view_layouts_base_sidebar_hook_response %>
107: </div>
108:
109: <div id="content">
110: <%= render_flash_messages %>
111: <%= yield %>
112: <%= call_hook :view_layouts_base_content %>
plugins/like/lib/like/hooks.rb:35:in `view_layouts_base_content'
lib/redmine/hook.rb:66:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:66:in `each'
lib/redmine/hook.rb:66:in `block in call_hook'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:101:in `call_hook'
app/views/layouts/base.html.erb:109
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
If you like it, the Wiki page with the same name in other projects will also like it.
Hello.
In current implementation of the tool, is there a way for admin user to remove Like of other users?
プラグインをRedmineVersion4.1にインストールしたところ、
ハートマークが複数出てしまう注記があります。(出るものと出ないものの法則性が分からず...)
解決方法をご教示頂けないでしょうか?
ちなみに、インストール時に以下エラーが出ました。
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
class CreateLikes < ActiveRecord::Migration[4.2]
そのため以下ステップを修正しています。
001_create_likes.rb
修正前
class CreateLikes < ActiveRecord::Migration
修正後
class CreateLikes < ActiveRecord::Migration[5.2]
どうぞよろしくお願い致します。
Hello,
Is there a way to get results of this like plugin using python redmine API?
現在いいね!されたカウント数が分かりますが、
誰がいいね!したか分かると、もっと嬉しいです。
(チケット作成者や注記を書いた人が、「誰が読んでいるか」が分かると、連絡を取れる手段にもなりモチベーションも上がるのかなと)
もしお時間等ありましたら、よろしくお願いいたします😀
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.