https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292020-11-11T08:06:44ZRedmineRedmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=996872020-11-11T08:06:44ZAndrea Valle
<ul></ul><p>Note: There is an indentation error in the yml.</p>
<pre><code>redmine_data:<br /> driver: local</code></pre>
<p>must go left as the above maria_db volume.</p> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=997812020-11-18T09:47:31ZAndrea Valle
<ul></ul><p>I found the issue.</p>
<p>The problem is inside: </p>
<pre><code>public/javascripts/application.js</code></pre>
<p>inside this function:</p>
<pre>
$(function () {
$('[title]').tooltip({
show: {
delay: 400
},
position: {
my: "center bottom-5",
at: "center top"
}
});
});
</pre>
<p>If I count the title attributes in the page with 100 issue statuses, I have 34454 items.</p>
<p>When I remove this code, the page loads correctly.</p>
<p>However I do not know the right way to fix it.</p>
<p>Hope this can help the fix.</p> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=997822020-11-18T13:07:25ZMarius BĂLTEANU
<ul><li><strong>Assignee</strong> set to <i>Marius BĂLTEANU</i></li></ul> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=998392020-11-26T07:58:54ZAndrea Valle
<ul></ul><p>As a workaround at the moment I changed the line:</p>
<pre>
$('[title]').tooltip({
</pre>
<p>with this:</p>
<pre>
$("body:not('.controller-workflows.action-edit') [title]").tooltip({
</pre>
<p>It disables redmine tooltip on that page. <br />However browser still renders tooltip with its default behaviuor.</p> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=1001572020-12-12T12:30:42ZMarius BĂLTEANU
<ul><li><strong>File</strong> <a href="/attachments/26428">disable_tooltip_in_workflow_status_transition.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/26428/disable_tooltip_in_workflow_status_transition.patch">disable_tooltip_in_workflow_status_transition.patch</a> added</li><li><strong>Target version</strong> set to <i>4.1.2</i></li></ul><p>The attached patch changes the tooltip selector in order to ignore elements with class <code>no-tooltip</code> and add this class to all cells from workflow status transitions tab.</p>
<p>What else we can do is to add this class only when there are more than x transitions.</p> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=1001582020-12-12T12:31:32ZMarius BĂLTEANU
<ul><li><strong>Assignee</strong> deleted (<del><i>Marius BĂLTEANU</i></del>)</li></ul><p><a class="user active" href="https://www.redmine.org/users/5009">andrea andrea</a> Valle, can you test this solution and tell me if works for you?</p> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=1004162021-01-03T06:46:11ZGo MAEDA
<ul></ul><p>Thank you for posting the patch but I found that the patch breaks an existing test.</p>
<pre>
$ ruby test/functional/workflows_controller_test.rb
Run options: --seed 54329
# Running:
...F
Failure:
WorkflowsControllerTest#test_get_edit_should_show_checked_disabled_transition_checkbox_between_same_statuses [test/functional/workflows_controller_test.rb:125]:
Expected at least 1 element matching "td[title='New » New'][class="enabled"]", found 0..
Expected 0 to be >= 1.
bin/rails test test/functional/workflows_controller_test.rb:122
</pre>
<p>Applying the following patch before/after <a class="attachment" href="https://www.redmine.org/attachments/26428">disable_tooltip_in_workflow_status_transition.patch</a> fixes the error.</p>
<pre><code class="diff syntaxhl"><span class="gh">Index: test/functional/workflows_controller_test.rb
===================================================================
</span><span class="gd">--- test/functional/workflows_controller_test.rb (リビジョン 20700)
</span><span class="gi">+++ test/functional/workflows_controller_test.rb (作業コピー)
</span><span class="p">@@ -125,7 +125,7 @@</span>
assert_select 'table.workflows.transitions-always tbody tr:nth-child(2)' do
assert_select 'td.name', :text => 'New'
# assert that the td is enabled
<span class="gd">- assert_select "td[title='New » New'][class=?]", 'enabled'
</span><span class="gi">+ assert_select "td.enabled[title='New » New']"
</span> # assert that the checkbox is disabled and checked
assert_select "input[name='transitions[1][1][always]'][checked=?][disabled=?]", 'checked', 'disabled', 1
end
</code></pre> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=1005502021-01-15T08:59:26ZGo MAEDA
<ul></ul><p>Marius BALTEANU wrote:</p>
<blockquote>
<p>The attached patch changes the tooltip selector in order to ignore elements with class <code>no-tooltip</code> and add this class to all cells from workflow status transitions tab.</p>
</blockquote>
<p>I have confirmed the problem with 100 statuses. After applying the patch, Chrome finishes loading the page in 20 seconds and does not display "Page unresponsive" dialog box.</p>
<p>I will commit <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Web browser freezes when displaying workflow page with a large number of issue statuses (Closed)" href="https://www.redmine.org/issues/34247#note-7">#34247#note-7</a> and <a class="attachment" href="https://www.redmine.org/attachments/26428">disable_tooltip_in_workflow_status_transition.patch</a> soon.</p> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=1005632021-01-17T02:23:30ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>Show Workflow for all statuses hangs with about 100 issue statuses</i> to <i>Web browser freezes when displaying workflow page with a large number of issue statuses</i></li><li><strong>Category</strong> changed from <i>Issues workflow</i> to <i>Administration</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed the fix. Thank you for your contribution.</p> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=1005682021-01-18T12:12:57ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=1005782021-01-19T08:59:01ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/31441">Patch #31441</a>: Show elements titles using jQuery UI tooltips</i> added</li></ul> Redmine - Defect #34247: Web browser freezes when displaying workflow page with a large number of issue statuseshttps://www.redmine.org/issues/34247?journal_id=1018302021-04-05T08:36:56ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/35034">Patch #35034</a>: Improve loading speed of workflow page</i> added</li></ul>