Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 988300

Summary: Missing tabs in perspective
Product: [Retired] JBoss BPMS Platform 6 Reporter: Sona Mala <smala>
Component: Business CentralAssignee: Toni Rikkola <trikkola>
Status: CLOSED CURRENTRELEASE QA Contact: Sona Mala <smala>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: crobson, etirelli, rrajasek, ruhan, trikkola
Target Milestone: ER4   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:07:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Video file - step to reproduce
none
Projects.perspective after step 4
none
Projects.perspective after step 12
none
File Explorer in dropdown menu for Administration Perspective
none
Missing File Explorer in dropdown menu for Asset Repository Perspective
none
Default panels for Asset Repository in ER4 (Problems tab is missing) none

Description Sona Mala 2013-07-25 09:25:17 UTC
Created attachment 778154 [details]
Video file - step to reproduce

Description of problem:
If an user deletes all tabs in view "Projects" and switch the system to another one than he never achieves the same functionality.

The reasons are:
  - if the user opens perspective "Projects" again, so the perspective is empty, no tabs in perspective. 
       (system saves the empty perspective into .niogit/system.git/.metadata/.user/<username>/.<perspectivename>/.Projects.perspective)

  - the user adds a new tab Project Explorer (menu items Explore/Projects), but this tab has not got the same behaviour.

See the attached video.


Version-Release number of selected component (if applicable):
6.0.0 DR6

How reproducible:


Steps to Reproduce (done in attached video):

Normal situation
----------------
1. open perspective "Projects"
2. open any file in the repository
3. switch system to another perspective (example "Administration")
4. open perspective "Projects" again.

Problem situation
-----------------
5. delete all tabs in perspective
6. switch system to another perspective
7. open perspective "Projects" again

Workaround
----------
8. add new panel "Project Explorer" (menu item Explore/Projects)
9. open any file in the repository
10. move new file to the new tab container
11. switch system to another perspective
12. open "Projects" perspective
13. open any file in the repository
14. move new file to the right tab container



Actual results:
After step 2: The tab is open in the right tab container.

After step 4: The perspective contains all tabs, which was opened when the user left this perspective.

After step 7: The perspective is empty. There is not any tab (Why does the user need an empty perspective?)

After step 9,13: The tab is open in the same tab container as Project Explorer.

Compare files ProjectsStep4.perspective and ProjectsStep12.perspective:
   - find string "org.kie.guvnor.explorer" and compare the xpath of this element (/root/children/PanelDefinitionImpl/parts X /root/parts/)


Expected results:
There are two options:
  - The first idea is that if the perspective is empty then the default setting is load (In this case - Projects Explorer). Steps for workaround are deprecated
       (After step 7: The perspective contains the default tabs)
       (Step 8 - 14 are deprecated)

  - The second idea is that the perspective stays empty and the user can restore the default setting of tabs.
        (After step 9, 13: The tab is open in the right tab container.)
        (Files ProjectsStep4.perspective and ProjectsStep12.perspective must be identical in structure)


Additional info:

Comment 1 Sona Mala 2013-07-25 09:27:22 UTC
Created attachment 778156 [details]
Projects.perspective after step 4

Comment 2 Sona Mala 2013-07-25 09:30:33 UTC
Created attachment 778158 [details]
Projects.perspective after step 12

Comment 3 Catherine Robson 2013-09-16 17:00:33 UTC
I believe this bug should have a larger scope.  In any perspective that allows you to "remove" all panels, you can get into unrecoverable situations where "reloading" the perspective does not get you back due to caching to maintain your window state.  The only way to recover on several screens is to delete your browser cache.

Comment 4 Edson Tirelli 2013-09-16 20:04:35 UTC
I am agreeing this is a beta blocker because the only way I found to restore the correct behaviour is reinstalling the workbench and starting from scratch, so we need a fix for this for Beta.

Comment 5 Toni Rikkola 2013-09-24 13:07:47 UTC
Ok in my opinion the problem is that the Project Explorer like any "Explorer", another example being File Explorer. Should open to the west side of the screen, even if there are no previous panels. 
The center is the default for any new panel. So when we open any editors they would then show up on the empty space on the east side of the Explorers.

Doing the fix with the approach that all Explorer windows in kie-wb should by default open to the west.

Comment 6 Catherine Robson 2013-09-24 13:51:34 UTC
Toni - I'm concerned that we're still not addressing a main problem here.  If you close the file explorer or project explorer itself, there is no way to bring those back onto the screen.  So, yes, items clicked on in the file explorer should open in the right hand area even if there is currently nothing there, but if a user closes the file explorer and the content, the whole page is empty!  What should they do to get back some panel to start from at that point?

Comment 7 Toni Rikkola 2013-09-25 15:11:48 UTC
To avoid the user from getting lost into the blank screen, the file and project explorer can be brought back from the menu bar.

Comment 9 Sona Mala 2013-10-15 12:48:09 UTC
Verified for ER4.

An actual solution is that an user can open Project/File Explorer. These explorers have same behaviour as the default ones.

Comment 10 Catherine Robson 2013-10-16 14:33:06 UTC
It appears that users cannot get back the following panels still in ER4 without a cache reset:

- Authoring -> Asset Repository -> File Explorer
- Authoring -> Asset Repository -> Problems
- Authoring -> Project Explorer -> Problems

Comment 11 Sona Mala 2013-10-17 07:15:34 UTC
(In reply to Catherine Robson from comment #10)
> It appears that users cannot get back the following panels still in ER4
> without a cache reset:
> 
> - Authoring -> Asset Repository -> File Explorer
   File Explorer is missing in "Explore" drop-down menu. I want to create a new issue for this problem or I can Assign this issue (I am sorry I miss comment #7). Catherine and Toni, can you write here which solution you prefer, please? 


> - Authoring -> Asset Repository -> Problems
   Problems tab is not a part for Asset Repository in default perspective.


> - Authoring -> Project Explorer -> Problems
   Problems tab is shown whenever you save any asset or build a project. I do not think that you need this panel for other situations.

Other solution is that problems should be in menu bar like Project Explorer. Catherine and Toni, can you give me your opinion for this issue?

Comment 12 Sona Mala 2013-10-17 07:18:13 UTC
Created attachment 813206 [details]
File Explorer in dropdown menu for Administration Perspective

Comment 13 Sona Mala 2013-10-17 07:19:14 UTC
Created attachment 813207 [details]
Missing File Explorer in dropdown menu for Asset Repository Perspective

Comment 14 Sona Mala 2013-10-17 07:21:02 UTC
Created attachment 813209 [details]
Default panels for Asset Repository in ER4 (Problems tab is missing)

Comment 15 Toni Rikkola 2014-06-16 06:13:46 UTC
Hi Sona,

Looks like I managed to miss this and just got a reminder about by unanswered tickets now after a long break from work.

I think it is better you make a new ticket, if you didn't already. It will be easier to keep track of.

Comment 16 Sona Mala 2014-06-16 07:19:58 UTC
I think that this is not a problem any more. File Explorer and Project Explorer do not support the "close" operation (X). So an user has no option how deletes these editors from perspectives.

Comment 17 Henry Han 2014-07-02 03:48:19 UTC
I am using BPMS 6.0.2 and has similar issue. 

The Authoring->Project Authoring west panel just disappears. I tried clear browser cache, reload, restart browser, but could not get it back. I did not restart Jboss server because I have no permission. 

If I use other user id to login, everything is ok. I tried to login on other person's machine (using my id), get same issue. So, that is a server side issue. It is a blocker to me.

Comment 18 Sona Mala 2014-07-02 05:54:08 UTC
Try to write #org.kie.guvnor.explorer at the end of URL.

Comment 19 Sona Mala 2014-07-02 05:56:45 UTC
Please, can you write here what you did? I need to "steps to reproduce" to open this issue.

Comment 20 Henry Han 2014-07-02 06:13:51 UTC
Hi Sona, 
Your #org.kie.guvnor.explorer works like a magic! The west panel is back. Thanks a lot. 

The answer to your next question is: I actually did not do anything special at all. I opened the designer, worked on some process diagrams (probably I used the full screen mode?) and save/quit it. When I continue with my process the next day, this problem happens. Btw, sometimes I close some east panels but never hit the west panel lost issue until this time.