Repository navigation
Redmine Studio Plugin 2.4.0
Redmine Studio Plugin 2.4.0
この版で Redmine Studio で使えるようになること
- 個人設定がほかの PC とそろいます — Redmine Studio の個人設定を Redmine に自動で保存し、同じ人でつないだほかの PC でも、同じ設定で始められます。保存や読み込みの操作は要りません(Redmine Studio V8.14.0 以降)。
- サーバー診断(システム管理者向け) — Redmine のサーバーのログ(production.log)を読み、500 エラー・応答時間・アクセス数・停止などを、Redmine Studio の画面でカードとグラフにして見られます。サーバーに入れない管理者でも、数 GB のログでも、原因のリクエストまでたどれます(Redmine Studio V8.14.0 以降)。
更新後に管理者がする作業
- install コマンドを実行し直してください。 この版はデータベースを変えます(Redmine Studio の設定の表に列を足します)。install コマンドが、データベースの変更もまとめて行います。インストールのときと同じ利用者で、同じコマンドを実行してから、Redmine を再起動してください(下の「アップデートの手順」)。
- 新しい権限はありません。サーバー診断が読むのは Redmine の
logフォルダーのファイルだけで、読めるのはシステム管理者だけです。
新しい API
- サーバーログ API(システム管理者だけ) — Redmine の
logフォルダーのファイルの一覧と、指定したファイルの指定した範囲を返します。サーバーがするのはファイルの一部を返すことだけで、集計は Redmine Studio が行います。同時に読み出せるのはサーバー全体で 2 つまでで、ほかの利用者の操作を止めません。 - Info API — システム管理者には、Redmine を動かしているサーバーの種類と同時に処理できる数、ログのレベルも返します。
- Studio Settings API — 本人だけが使う設定(個人設定)を保存できるようにしました。設定に版を持たせ、ほかの PC で先に保存された設定を上書きしないようにしました。
改善・バグ修正
- Wiki のマクロ(Wiki Lists)
ref_issuesが、見る人に見えないカスタムフィールドの値を出さないようにしました。journals_listは、プライベートコメントを、見られる人にだけ出すようにしました。- マクロの中で探すプロジェクト・チケット・ユーザーを、見る人に見える範囲に限りました。
- 誤った条件や、同じ条件の重複を、エラーとして分かるように出すようにしました。複数の値を持つ条件の値を、すべて使うようにしました。マクロの中にマクロを入れ子にしたときは止めるようにしました。
ref_issuesを置いたページで、チケット一覧の CSV・PDF の出力や列の設定が、マクロの条件に変わってしまう不具合を修正しました。ref_issuesを通知メールでも、簡単な一覧で出すようにしました。ref_issuesの-f:treatedに、ログイン名かユーザーの ID を書けるようにしました。wiki_listでプロジェクトを指定しないときは、見る人に見えるプロジェクトだけを読むようにしました(結果は同じで、読む量が減ります)。
- 返答回数・コメント履歴(Reply Count・Journals List) — 過去にグループが担当だったときに、グループの名前を出すようにしました。
- Teams Button — チャットを始めるメールアドレスを、見られる有効なユーザーの分だけにし、メールアドレスを隠す設定を守るようにしました。
- Redmine Studio への情報の受け渡し
- 実績の取り込みに使う活動の一覧で、1 件の組み立てに失敗しても、その 1 件だけを飛ばして残りを返すようにしました(失敗した件数と原因も返します)。
- Ruby 2.5・2.6 で動く Redmine 5.0 で、活動の一覧・Info・Studio Settings の API が失敗する不具合を修正しました。
- ほかのプロジェクトから共有されたバージョンも返すようにしました。
- 設定の共有(Studio Settings) — 入力の形や長さの誤りを、何が誤りかが分かる形で返すようにしました。設定の範囲(チーム・プロジェクト)を変えられるのは、管理者だけにしました。設定を割り当てられるのは、見られる有効なユーザーと、プロジェクトのメンバーだけにしました。
- ブラウザでサインイン — サインイン用のアプリが Redmine に重複して登録されていたときに、いちばん古いものにまとめるようにしました。
- install コマンド — 以前の Subtask List Accordion プラグインの設定を、設定の画面から保存した形や、Ruby 2.5 の環境でも引き継げるようにしました。
アップデートの手順
- プラグインのファイルを新しい版にする(
git pull、または zip を展開して置き換える) - install コマンドを、インストールのときと同じ利用者で実行する(適用済みの処理は飛ばされます)
cd /var/lib/redmine bundle exec rake redmine_studio_plugin:install RAILS_ENV=production
- Redmine を再起動する
対応 Redmine
V5.x / V6.x / V7.x で動作確認済み。
対応クライアント
従来どおり Redmine Studio V8.11.0 以降と組み合わせてご利用いただけます。個人設定の同期とサーバー診断は Redmine Studio V8.14.0 以降で使えます。
English summary
What changes in Redmine Studio:
- Personal settings follow you to other PCs. Redmine Studio saves your personal settings to Redmine automatically, so another PC connected as the same user starts with the same settings (Redmine Studio V8.14.0 or later).
- Server diagnostics for system administrators. Redmine Studio reads the Redmine server log (production.log) and shows 500 errors, response times, access counts and outages as cards and charts, down to the request that caused them (Redmine Studio V8.14.0 or later).
What administrators need to do: Update the plugin files, run the install command again as the same OS user as at installation (bundle exec rake redmine_studio_plugin:install RAILS_ENV=production), then restart Redmine. This version changes the database (it adds columns to the Redmine Studio settings table); the install command applies the change. No new permission.
New and changed APIs:
- Server Logs API (system administrators only): returns the list of files in the Redmine
logfolder and a byte range of a file. At most two reads run at the same time on the whole server. - Info API: for system administrators, also returns the application server type, its concurrency and the log level.
- Studio Settings API: can store settings used only by their owner (personal settings), with a version so that a setting saved earlier on another PC is not overwritten.
Improvements and fixes:
- Wiki Lists macros:
ref_issuesno longer shows custom field values the viewer cannot see, andjournals_listshows private notes only to users who can see them. Projects, issues and users looked up inside macros are limited to what the viewer can see. Wrong or duplicated conditions are reported as errors, all values of a multi-value condition are used, and nested macros are stopped. Fixed CSV/PDF export and column options of the issue list being replaced by the macro's conditions on a page withref_issues.ref_issuesis rendered as a simple list in notification emails, and-f:treatedaccepts a login or a user ID. - Reply Count and Journals List show the group name when a group was the past assignee.
- Teams Button uses only the email addresses of visible active users and respects the setting that hides email addresses.
- Data for Redmine Studio: one failing activity item is skipped instead of failing the whole list; fixed API failures on Redmine 5.0 with Ruby 2.5 / 2.6; versions shared from other projects are returned.
- Studio Settings: clearer validation errors; only administrators can change the scope of a setting; settings can be assigned only to visible active users and project members.
- Browser sign-in: duplicated sign-in applications registered in Redmine are merged into the oldest one.
- Install command: settings of the former Subtask List Accordion plugin are carried over also when saved from the settings screen and on Ruby 2.5.
Supported Redmine: 5.x / 6.x / 7.x. Supported client: Redmine Studio V8.11.0 or later (personal settings sync and server diagnostics need V8.14.0 or later).