プロジェクト

全般

プロフィール

気づき #755

奈良 裕記 さんが5年以上前に更新

PluginのRedmine本体バージョン間設計変更点収集(Redmine4/Rails5)対応分 
 "Redmine3.x/Rails4" #751 

 Redmineバージョン間の変更により、結果的にPluginに不具合が発生し、 
 運用コストが増える事が良くあります。 
 そのようなロスを減らすため、対応に必要な情報を収集蓄積してみます。(試行) 
 Rails5/Redmine4用に作成した機能のRails4/Redmine3環境backportも対象 

 対応方法が判れば、修正待ちではなく、自分で修正し動かすことも可能になる筈。 

 記入項目(案) 

 * 変更があったバージョン:項目名 
 * Redmine本体側変更内容(RAILS.Ruby変更含) 
 * Plugin側の変更方法、発生条件 
 * 対応サンプル 
 * 補足 

 --- 

 h1. 関連資料 

 Rails アップグレードガイド 
 https://railsguides.jp/upgrading_ruby_on_rails.html 

 Redmine4時代のプラグイン開発  
 https://www.slideshare.net/douhashi/redmine4-redminetokyo-13 
 P55 
 Rails5で消えるAPI 
 before_filter after_filter 
 alias_method_chain 

 Redmine次期バージョン 4.0・4.1 とその先の未来像 
 https://www.slideshare.net/g_maeda/redmine-4041/g_maeda/redmine-4041 

 Redmine本家 Rails5 検索結果 
 http://www.redmine.org/projects/redmine/search?utf8=%E2%9C%93&q=Rails5&scope=&all_words=&all_words=1&titles_only=&issues=1&news=1&changesets=1&wiki_pages=1&messages=1&redmine_plugins=1&commit=%E9%80%81%E4%BF%A1 

 Redmine4.0.0 Roadmap 
 http://www.redmine.org/versions/99 

 --- 

 対応作業事例 

 [WIP] Issue Template PluginのRails5対応作業追っかけ 
 https://github.com/akiko-pusu/redmine_issue_templates/pull/147 


 Redmine 4.0(Rails 5.2)に用語集(Glossary)プラグインを対応させる 
 https://qiita.com/boochnich/items/3f190782f33835d05b2f 

 --- 

 Rails5/Redmine4用に作成した機能のRails4/Redmine3環境対応も必要そう。 
 Redmine4がリリースされても、移行が順調に進むとは思えないので。 

 Too large avatar breaks gantt when assignee is a group 
 http://www.redmine.org/issues/28204 
 >The cause is that the HTML doesn't include "width" and "height" option  

 Rails 5.0から5.1へアップグレード時 
 Mysql2::Error: Table 'database.table_name' doesn't exist: SHOW FULL FIELDS FROM `table_name` 
 http://blog.digital-squad.net/article/450422548.html 
 >原因としてはRails 5.0から5.1へのアップデートでPrimary Keyカラムがintからbigintに変更されているので、 
 >5.0で作成したテーブルを参照する外部キーを含むマイグレーションを作成すると、 
 >もとのテーブルのIDがintであるのに対し、外部キーはbigintでミスマッチになるためエラーになるようだ。 


 Failed to run “rake db:migrate" command against clean database on MySQL5.7 under Redmine4.0 / Rails5 
 http://www.redmine.org/issues/27283 

 原因 
 Changed the default null value for timestamps to false". 
 http://guides.rubyonrails.org/5_0_release_notes.html 

 Rails側では現在対応予定無しの模様 
 https://github.com/rails/rails/issues/31804 
 https://github.com/rails/rails/pull/23553 

 > This change is for dumping native timestamp types correctly which was introduced at #23553. 
 >  
 > Historically, TIMESTAMP type has nonstandard behaviors for default values and NULL-value. 
 > But the nonstandard behaviors are deprecated and will be removed in a future MySQL release. 
 >  
 > So please enable explicit_defaults_for_timestamp on your server. 

戻る