OpenPNE Issue Tracking System: チケット
http://redmine.openpne.jp/
http://redmine.openpne.jp/favicon.ico
2017-06-09T03:46:10Z
OpenPNE Issue Tracking System
Redmine
opAlbumPlugin - Bug(バグ) #4206 (Pending Review(レビュー待ち)): アルバム一覧ページで画像の説明文が長文の場合に切り詰めされない
http://redmine.openpne.jp/issues/4206
2017-06-09T03:46:10Z
Shinichi Urabe
urabe+op3@nuts-choco.com
<a name="Overview-現象"></a>
<h3 >Overview (現象)<a href="#Overview-現象" class="wiki-anchor">¶</a></h3>
<p>pc_frontend のアルバム詳細ページで画像の説明文に改行がつかない。</p>
<a name="再現バージョン"></a>
<h3 >再現バージョン<a href="#再現バージョン" class="wiki-anchor">¶</a></h3>
<ul>
<li>opAlbumPlugin 1.0.0.1 and master (revision <a class="external" href="https://github.com/openpne-ospt/opAlbumPlugin/commit/caa06456c377a2afbdda8500de79667a2c2015b4">https://github.com/openpne-ospt/opAlbumPlugin/commit/caa06456c377a2afbdda8500de79667a2c2015b4</a>)</li>
</ul>
<a name="再現手順"></a>
<h3 >再現手順<a href="#再現手順" class="wiki-anchor">¶</a></h3>
<p>1. 長文の説明付きのアルバムを作成する。<br />2. アップロード後、アルバム一覧ページ(/album/listMember)にアクセスすると、説明文が切り詰めされず、全文表示される</p>
<p><img src="http://redmine.openpne.jp/attachments/download/658/long-desc.png" style="width:80%;height:80%;" alt="" /></p>
<a name="Causes-原因"></a>
<h3 >Causes (原因)<a href="#Causes-原因" class="wiki-anchor">¶</a></h3>
<p>アルバム一覧の説明文に対して切り詰めの処理がない</p>
<a name="Way-to-fix-修正内容"></a>
<h3 >Way to fix (修正内容)<a href="#Way-to-fix-修正内容" class="wiki-anchor">¶</a></h3>
<p>op_truncate() 関数を使って、文字列を切り詰める処理をつける</p>
opAlbumPlugin - Bug(バグ) #4202 (Pending Review(レビュー待ち)): アルバム詳細ページで画像の説明文の改行がされない
http://redmine.openpne.jp/issues/4202
2017-06-06T06:49:05Z
Shinichi Urabe
urabe+op3@nuts-choco.com
<a name="Overview-現象"></a>
<h3 >Overview (現象)<a href="#Overview-現象" class="wiki-anchor">¶</a></h3>
<p>pc_frontend のアルバム詳細ページで画像の説明文に改行がつかない。</p>
<a name="再現バージョン"></a>
<h3 >再現バージョン<a href="#再現バージョン" class="wiki-anchor">¶</a></h3>
<ul>
<li>opAlbumPlugin 1.0.0.1 and master (revision <a class="external" href="https://github.com/openpne-ospt/opAlbumPlugin/commit/caa06456c377a2afbdda8500de79667a2c2015b4">https://github.com/openpne-ospt/opAlbumPlugin/commit/caa06456c377a2afbdda8500de79667a2c2015b4</a>)</li>
</ul>
<a name="再現手順"></a>
<h3 >再現手順<a href="#再現手順" class="wiki-anchor">¶</a></h3>
<p>1.pc_frontendでアルバムを作成したあと、アルバム画像を説明文付き(改行あり)でアップロードする。<br />2.アップロード後、アルバム詳細ページ(album/:id)にアクセスするが説明文が改行されず、1行で表示される。</p>
<a name="Causes-原因"></a>
<h3 >Causes (原因)<a href="#Causes-原因" class="wiki-anchor">¶</a></h3>
<p>アルバム説明文に対して改行を変換していない</p>
<a name="Way-to-fix-修正内容"></a>
<h3 >Way to fix (修正内容)<a href="#Way-to-fix-修正内容" class="wiki-anchor">¶</a></h3>
<p><code>nl2br()</code> 関数で、説明文の改行を表現する</p>
opMessagePlugin - Enhancement(機能追加・改善) #4192 (New(新規)): メッセージに貼った URL からサムネイル画像を表示させたい
http://redmine.openpne.jp/issues/4192
2017-05-10T07:18:17Z
Shinichi Urabe
urabe+op3@nuts-choco.com
opMessagePlugin - Backport(バックポート) #4185 (New(新規)): MySQLのSTRICT_TRANS_TABLESが有効な状態でテスト用fixtureのロ...
http://redmine.openpne.jp/issues/4185
2017-04-04T10:06:10Z
Shinichi Urabe
urabe+op3@nuts-choco.com
<a name="Overview-概要"></a>
<h3 >Overview (概要)<a href="#Overview-概要" class="wiki-anchor">¶</a></h3>
<p>MySQL 5.7 の Strict Mode が有効な状態での動作確認 (<a class="issue tracker-5 status-2 priority-4 priority-default parent" title="Task(タスク): MySQLのStrict Modeを有効にした場合に生じる問題を調査 (Accepted(着手))" href="http://redmine.openpne.jp/issues/4033">#4033</a>) を行った際に発生した。</p>
<p>fixture の読み込みを必要とするテストコードを実行すると下記のエラーが発生する:</p>
<pre>
$ php plugins/opMessagePlugin/test/unit/model/SendMessageDataTest.php
PHP Fatal error: Uncaught exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[HY000]: General error: 1364 Field 'message_id' doesn't have a default value' in /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php:1082
Stack trace:
#0 /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/Statement.php(269): Doctrine_Connection->rethrowException(Object(PDOException), Object(Doctrine_Connection_Statement))
#1 /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php(1042): Doctrine_Connection_Statement->execute(Array)
#2 /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php(687): Doctrine_Connection->exec('INSERT INTO del...', Array)
#3 /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/UnitOfWork.php(647): Doctrine_Connection->insert(Object(DeletedMessageTable), Array)
#4 /vagrant/lib/ven in /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 1082
</pre>
<a name="Causes-原因"></a>
<h3 >Causes (原因)<a href="#Causes-原因" class="wiki-anchor">¶</a></h3>
<p><a class="source" href="http://redmine.openpne.jp/projects/plg-message/repository/revisions/6eef6b49/entry/test/fixtures/010_message.yml#L106">source:test/fixtures/010_message.yml@6eef6b49#L106</a>:<br /><pre><code class="yaml syntaxhl"><span class="CodeRay"><span class="key">DeletedMessage</span>:
<span class="key">dust_delete_mesage</span>:
<span class="key">id</span>: <span class="string"><span class="content">1</span></span>
<span class="key">Member</span>: <span class="string"><span class="content">first_member</span></span>
<span class="key">message_send_list_id</span>: <span class="string"><span class="content">3</span></span>
<span class="key">is_deleted</span>: <span class="string"><span class="content">0</span></span>
</span></code></pre></p>
<p>上記の fixture で、NOT NULL 制約のある deleted_message.member_id に値がセットされていないことが原因。</p>
opMessagePlugin - Backport(バックポート) #4184 (New(新規)): MySQLのSTRICT_TRANS_TABLESが有効な状態でテスト用fixtureのロ...
http://redmine.openpne.jp/issues/4184
2017-04-04T10:05:51Z
Shinichi Urabe
urabe+op3@nuts-choco.com
<a name="Overview-概要"></a>
<h3 >Overview (概要)<a href="#Overview-概要" class="wiki-anchor">¶</a></h3>
<p>MySQL 5.7 の Strict Mode が有効な状態での動作確認 (<a class="issue tracker-5 status-2 priority-4 priority-default parent" title="Task(タスク): MySQLのStrict Modeを有効にした場合に生じる問題を調査 (Accepted(着手))" href="http://redmine.openpne.jp/issues/4033">#4033</a>) を行った際に発生した。</p>
<p>fixture の読み込みを必要とするテストコードを実行すると下記のエラーが発生する:</p>
<pre>
$ php plugins/opMessagePlugin/test/unit/model/SendMessageDataTest.php
PHP Fatal error: Uncaught exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[HY000]: General error: 1364 Field 'message_id' doesn't have a default value' in /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php:1082
Stack trace:
#0 /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/Statement.php(269): Doctrine_Connection->rethrowException(Object(PDOException), Object(Doctrine_Connection_Statement))
#1 /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php(1042): Doctrine_Connection_Statement->execute(Array)
#2 /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php(687): Doctrine_Connection->exec('INSERT INTO del...', Array)
#3 /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/UnitOfWork.php(647): Doctrine_Connection->insert(Object(DeletedMessageTable), Array)
#4 /vagrant/lib/ven in /vagrant/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 1082
</pre>
<a name="Causes-原因"></a>
<h3 >Causes (原因)<a href="#Causes-原因" class="wiki-anchor">¶</a></h3>
<p><a class="source" href="http://redmine.openpne.jp/projects/plg-message/repository/revisions/6eef6b49/entry/test/fixtures/010_message.yml#L106">source:test/fixtures/010_message.yml@6eef6b49#L106</a>:<br /><pre><code class="yaml syntaxhl"><span class="CodeRay"><span class="key">DeletedMessage</span>:
<span class="key">dust_delete_mesage</span>:
<span class="key">id</span>: <span class="string"><span class="content">1</span></span>
<span class="key">Member</span>: <span class="string"><span class="content">first_member</span></span>
<span class="key">message_send_list_id</span>: <span class="string"><span class="content">3</span></span>
<span class="key">is_deleted</span>: <span class="string"><span class="content">0</span></span>
</span></code></pre></p>
<p>上記の fixture で、NOT NULL 制約のある deleted_message.member_id に値がセットされていないことが原因。</p>
opMessagePlugin - Enhancement(機能追加・改善) #4085 (Accepted(着手)): タイムライン形式のメッセージ機能に適したテーブル定義に変更
http://redmine.openpne.jp/issues/4085
2016-12-27T07:06:41Z
Shinichi Urabe
urabe+op3@nuts-choco.com
<p>テーブル定義変更案</p>
<pre>
<code>
options:
charset: utf8
actAs: [Timestampable]
Thread:
columns:
id: { type: integer(4), primary: true, autoincrement: true }
name: { type: string, notnull: true }
ThreadMember:
columns:
id: { type: integer(4), primary: true, autoincrement: true }
member_id: { type: integer(4) }
is_thread_block: { type: boolean, notnull: true, default: 0 }
is_notification: { type: boolean, notnull: true, default: 1 }
relations:
Member:
onDelete: set null
Message:
onDelete: cascade
Message:
columns:
id: { type: integer(4), primary: true, autoincrement: true }
thread_member_id: { type: integer(4), notnull: true }
thread_id: { type: integer(4), notnull: true }
body: { type: string, notnull: true }
is_deleted: { type: boolean, notnull: true, default: 0 }
return_message_id: { type: integer(4), default: null }
message_type_id: { type: integer(4), notnull: true }
relations:
Thread:
onDelete: cascade
ThreadMember:
onDelete: cascade
Message:
local: return_message_id
onDelete: set null
MessageType:
onDelete: cascade
indexes:
is_deleted_thread_id_id:
fields: [is_deleted, thread_id, id]
MessageUnread:
columns:
id: { type: integer(4), primary: true, autoincrement: true }
thread_member_id: { type: integer(4), notnull: true }
message_id: { type: integer(4), notnull: true }
relations:
ThreadMember:
onDelete: cascade
Message:
onDelete: cascade
indexes:
thread_member_id_message_id_UNIQUE:
fields: [thread_member_id, message_id]
type: unique
MessageFile:
columns:
id: { type: integer(4), primary: true, autoincrement: true }
message_id: { type: integer(4), notnull: true }
file_id: { type: integer(4), notnull: true }
relations:
Message:
onDelete: cascade
File:
onDelete: cascade
MessageType:
columns:
id: { type: integer(4), primary: true, autoincrement: true }
type_name: { type: string(256), notnull: true }
body: { type: string, notnull: true }
caption: { type: string, notnull: true }
info: { type: string, notnull: true }
</code><br /></pre>
opMessagePlugin - Enhancement(機能追加・改善) #4070 (New(新規)): PC のメッセージ表示もタイムライン形式とする
http://redmine.openpne.jp/issues/4070
2016-12-16T07:47:39Z
Shinichi Urabe
urabe+op3@nuts-choco.com
opCalendarPlugin - Bug(バグ) #3828 (Pending Review(レビュー待ち)): 翌月、前月の計算で意図しない結果となる箇所がある
http://redmine.openpne.jp/issues/3828
2015-06-30T10:36:17Z
Rimpei Ogawa
ogawa@tejimaya.com
<p>翌月、前月の計算で、実行する日付によっては意図しない結果となる箇所があります。</p>
<p>該当箇所の例</p>
<pre>
lib/task/opCalendarUpdategoogleapiTask.class.php
86: $endYear = date('Y', strtotime('+1 month'));
87: $endMonth = date('m', strtotime('+1 month'));
lib/task/opCalendarUpdategoogleapiTask.class.php
91: 'timeMin' => date('c', strtotime(sprintf('%s-01 00:00:00', date('Y-m', strtotime('-1 month'))))),
</pre>
<p><code>+1 month</code> や <code>-1 month</code> の結果は、翌月・前月になるとは限りません。</p>
<pre>
php > var_dump(date('Y-m-d', strtotime('+1 month', strtotime('2015-01-31'))));
string(10) "2015-03-03"
php > var_dump(date('Y-m-d', strtotime('-1 month', strtotime('2015-03-31'))));
string(10) "2015-03-03"
</pre>
<p>↑こんな具合です。</p>
opCalendarPlugin - Bug(バグ) #3827 (Pending Testing(テスト待ち)): MemberConfigTable::generateNameValueHa...
http://redmine.openpne.jp/issues/3827
2015-06-30T10:18:26Z
Rimpei Ogawa
ogawa@tejimaya.com
<pre>
lib/util/opCalendarPluginToolkit.class.php
64: md5('google_cron_update,1'),
</pre>
opCalendarPlugin - Bug(バグ) #3822 (Accepted(着手)): SNS内名称設定の「コミュニティ」に対応していない
http://redmine.openpne.jp/issues/3822
2015-06-30T09:29:37Z
Rimpei Ogawa
ogawa@tejimaya.com
<p>管理画面のSNS内名称設定で「コミュニティ」を変更しても反映されない箇所がある。</p>
<pre>
apps/pc_frontend/i18n/messages.ja.xml
266- <source>All Community Member's opened Schedule and Community Event</source>
267: <target>全メンバーのスケジュールとコミュニティイベントをカレンダーに表示</target>
274- <source>Only Community Event</source>
275: <target>コミュニティイベントのみカレンダーに表示</target>
</pre>
opCalendarPlugin - Bug(バグ) #3812 (Pending Testing(テスト待ち)): 不要ファイル opCalendarPlugin.js が残っている
http://redmine.openpne.jp/issues/3812
2015-06-30T05:59:52Z
Rimpei Ogawa
ogawa@tejimaya.com
<p>web/js/opCalendarPlugin.js<br /><a class="external" href="https://github.com/ShinichiU/opCalendarPlugin/blob/7ffc0d1a25ff3f4aceab90992395f1bc47a8980f/web/js/opCalendarPlugin.js">https://github.com/ShinichiU/opCalendarPlugin/blob/7ffc0d1a25ff3f4aceab90992395f1bc47a8980f/web/js/opCalendarPlugin.js</a></p>
<p>getElementsByClassName しかしておらず不要と思われます。<br />apps/pc_frontend/modules/schedule/config/view.yml に指定されています。</p>
OpenPNE 3 - Bug(バグ) #3623 (New(新規)): 携帯への招待メールを、SNS登録後にPCで開いた時、404画面ではなく携帯専用が表示される
http://redmine.openpne.jp/issues/3623
2014-06-12T06:40:52Z
Chiharu Nakajima
nakajima@tejimaya.com
<p>携帯への招待メールを、SNS登録後にPCで開いた時、404画面ではなく携帯専用が表示される。</p>
opMessagePlugin - Enhancement(機能追加・改善) #3574 (New(新規)): 【負荷対策】画像の呼び出しのためのリクエストを減らすために data スキームを使う
http://redmine.openpne.jp/issues/3574
2014-03-14T04:26:01Z
Shinichi Urabe
urabe+op3@nuts-choco.com
<a name="概要"></a>
<h4 >概要<a href="#概要" class="wiki-anchor">¶</a></h4>
<p>画像のリクエストを少しでも抑えるために data スキームを使うようにする<br />web サーバへのリクエスト回数が減るため、レスポンスが早くなることが期待される</p>
<p>懸念点として data スキームに対応していないスマートフォンがないか調査は必要 (IE での閲覧は考慮しなくてよいため、調査不要)<br />HTML ファイルのサイズや JSON のファイルサイズが大きくなる懸念はある</p>
opMessagePlugin - Enhancement(機能追加・改善) #3572 (New(新規)): 過去のメッセージはグルーピングして折りたたまれている状態にする仕組みがほしい
http://redmine.openpne.jp/issues/3572
2014-03-14T04:21:16Z
Shinichi Urabe
urabe+op3@nuts-choco.com
<a name="概要"></a>
<h4 >概要<a href="#概要" class="wiki-anchor">¶</a></h4>
<p>使用する側からすると最新のメッセージは折りたたまれていなくてもよいが<br />過去のメッセージは例えば日毎、もっと古いメッセージは月ごと、年ごとでグルーピングされていてほしい</p>
<a name="修正案"></a>
<h4 >修正案<a href="#修正案" class="wiki-anchor">¶</a></h4>
<ul>
<li>本日分のやりとりしたメッセージについてはグルーピングをしない</li>
<li>昨日以前のメッセージは日単位でグルーピングする</li>
<li>先月以前のメッセージは月単位でグルーピングする</li>
<li>去年以前のメッセージは年単位でグルーピングする
<ul>
<li>「もっと見る」をクリックするとグルーピングの内容が展開されるようにする</li>
</ul></li>
</ul>
opMessagePlugin - Enhancement(機能追加・改善) #3571 (New(新規)): 【負荷対策】5秒毎に最新メッセージを取得しているため、負荷対策を行う
http://redmine.openpne.jp/issues/3571
2014-03-14T03:59:27Z
Shinichi Urabe
urabe+op3@nuts-choco.com
<a name="概要"></a>
<h3 >概要<a href="#概要" class="wiki-anchor">¶</a></h3>
<p>5秒毎に最新のメッセージを取得するような仕組みとなっている</p>
<a name="対応案"></a>
<h4 >対応案<a href="#対応案" class="wiki-anchor">¶</a></h4>
<p>現状のテーブル構造のままでデータを取得すると負荷の懸念がある</p>
<p>案1) 最新のメッセージを返すためのキャッシュ機構を用意する<br />案2) websocket を使って、サーバ側から push する機構を用意する (接続数の上限の懸念がある)</p>