Created attachment 1096519 [details] Video illustrating the issue Description of problem: This is a followup to bug # 1267866 I finally managed to reproduce this issue manually! The problem is NOT, that LOADING TASK DATA from the backend takes infinite time, but that the LOADING ANIMATION is displayed indefinitely until user moves the mouse. This happens in 30-50% of selenium tests and I was able to consistently reproduce this manually with remote database. Observe the problem in video attached. After clicking some tab (i.e. Active) you can see (in the firebug network panel below) that it takes about 0.5 seconds to do backend request to load task information (this is from DB from Boston lab to my laptop in Brno). But even after the request is finished, the loading animation remains to be displayed. To make it disappear I must move the mouse. Another problem is that for some tabs, the loading animation is not displayed at all. Instead the table remains empty until user moves the mouse (observe this after clicking Group tab in 0:13 in the video) I'm not sure if this is a blocker (I'll leave the decision to you), because the tasks ARE displayed after user moves the mouse. But from UX perspective this is very annoying and at least it must be documented in release notes. Version-Release number of selected component (if applicable): BPM Suite 6.2.0 CR1 How reproducible: Always with remote DB Steps to Reproduce: 0. Configure the server to connect to some remote DB (I can provide private info about how to do it using our DB Allocator tool if needed) 1. Create ad-hoc task in task list 2. Click various filter tabs Actual results: After some time clicking the tab headers the loading animation is displayed indefinitely - user has to move the mouse to make it disappear. Expected results: Loaded tasks should be displayed WITHOUT user having to move the mouse after he clicks the filter tab. Additional info: Information to be added to release notes: When displaying tasks in task list perspective, it might happen (especially when using remote / slow database), that after clicking filter tab (Active, Group, Personal etc.) there is a loading animation displayed indefinitely and no tasks are displayed. The workaround is simply to move the mouse.
Not sure if this will be useful, but we had a similar issue (no data shown until mouse moved) in the past in bz #1265211
We have added the same solution as the bz commented. Force the execution of the command at the end of the event treatment. We have generated two PR Master https://github.com/uberfire/uberfire-extensions/pull/155 and 0.7.x https://github.com/uberfire/uberfire-extensions/pull/154
Since both PRs were merged, moving this to MODIFIED.
I tested the fix after it was merged with 6.4.x Unfortunately the issue is still present without any change :-( When using database it happens with about the same frequency (roughly 30-50x times during test suite of 35 selenium tests = very often) and the symptoms are the same - loading animation displayed until mouse is moved.
The datagrid shows problems to redraw the results in some browsers (like firefox) when we are working on tabs, until the mouse is moved. After the first approach of putting the command launcher after the event execution(Deferred), we have tried to flush the results after they are loaded at the provider. I have tested it, and now works fine in places that before didn't. I think we need more testing with remote db, after the PR has been merged. Here are the PRs: Master https://github.com/uberfire/uberfire-extensions/pull/170 0.7.x https://github.com/uberfire/uberfire-extensions/pull/169
*** Bug 1295543 has been marked as a duplicate of this bug. ***
FYI: I just executed tests with the latest kie-wb 6.4.x snapshot and the issue is finally resolved :-) Good job! I will verify this bz once the fix appears in the next 6.2 product patch.
Verified with the 6.2.2 patch that the fix is present & working