Bug 1654281 - RHDS webui console is not loading other instances apart
Summary: RHDS webui console is not loading other instances apart
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: cockpit-389-ds
Version: 8.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: DS11.0
: dirsrv-11.0
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard: sync-to-jira
: 1654781 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-28 11:52 UTC by Arpit Tolani
Modified: 2019-11-06 12:42 UTC (History)
12 users (show)

Fixed In Version: 389-ds-base-1.4.0.20-1.module+el8+2553+e9a4c637
Doc Type: Known Issue
Doc Text:
.Directory Server settings that are changed outside the web console's window are not automatically visible Because of the design of the Directory Server module in the Red Hat Enterprise Linux 8 web console, the web console does not automatically display the latest settings if a user changes the configuration outside of the console's window. For example, if you change the configuration using the command line while the web console is open, the new settings are not automatically updated in the web console. This applies also if you change the configuration using the web console on a different computer. To work around the problem, manually refresh the web console in the browser if the configuration has been changed outside the console's window.
Clone Of:
Environment:
Last Closed: 2019-11-06 12:42:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
rhds cockpit webui (1.87 MB, video/mp4)
2018-11-28 11:52 UTC, Arpit Tolani
no flags Details
SS for update (127.08 KB, image/png)
2018-11-29 06:48 UTC, Anuj Borah
no flags Details
ajax (127.08 KB, image/png)
2018-11-29 07:20 UTC, Anuj Borah
no flags Details
WebUi (107.31 KB, image/png)
2019-01-08 15:42 UTC, Amita Sharma
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:3731 0 None None None 2019-11-06 12:42:24 UTC

Description Arpit Tolani 2018-11-28 11:52:49 UTC
Created attachment 1509462 [details]
rhds cockpit webui

Description of problem:
Atolani - RHDS webui console is not loading other instances apart from default when changing instance from top drop down menu. 


Additional info:
Adding Video file. Tried it with chrome & firefox both.

Comment 1 mreynolds 2018-11-28 15:57:36 UTC
I see this too.  After creating an instance you can not switch to it.  If you reload the page it works, but not immediately after creating the instance.  This was working before the React changes were applied, but I don't know if it's related yet.

Comment 2 mreynolds 2018-11-28 21:04:39 UTC
Identified a fix related to the jquery "on change" functions.  With the change to React we might be seeing more of these issues with "on change" functions.

Comment 3 Anuj Borah 2018-11-29 06:47:21 UTC
rhds cockpit webui

Description of problem:

If you create one Attributes from schema > Attributes , and delete it from CLI with:

dsconf Instancename schema attributetypes remove  Attributes-name


You can still search this on UI. One SS attached.

Comment 4 Anuj Borah 2018-11-29 06:48:19 UTC
Created attachment 1509736 [details]
SS for update

Comment 5 Anuj Borah 2018-11-29 07:18:18 UTC
rhds cockpit webui

Description of problem:

If you create one Attributes from schema > Attributes , and update it from CLI with:

dsconf Instancename schema attributetypes edit Attributes-name --desc 'Anuj here 2'


Changes does not reflect the webui . yes , it does reflect the changes , after refreshing the browser , we can use some thing like ajax call so that changes can be reflected without refreshing the browser .

One video added .

Comment 6 Anuj Borah 2018-11-29 07:20:05 UTC
Created attachment 1509746 [details]
ajax

Comment 7 Simon Pichugin 2018-11-29 14:06:34 UTC
(In reply to mreynolds from comment #2)
> Identified a fix related to the jquery "on change" functions.  With the
> change to React we might be seeing more of these issues with "on change"
> functions.

Yes, this is about it.
Jquery wouldn't work if we do 'addEventListner' vanilla JS way.

I've already fixed the issue in my React PR - https://pagure.io/389-ds-base/pull-request/50042 

(In reply to Anuj Borah from comment #5)
> Changes does not reflect the webui . yes , it does reflect the changes ,
> after refreshing the browser , we can use some thing like ajax call so that
> changes can be reflected without refreshing the browser .
> 
> One video added .

This is how our UI is built now. The issue doesn't relate only to Schema or Plugin tabs.
Any field we have in the WebUI Console (configuration, replication, etc) requires the page reload for the update.
We can do better and we should consider the improvement sooner than later.

Currently, the Web Console works like our old Java console worked too. 
Some race conditions are possible.

Anyway, let's discuss the implementation and the roadmap in a separate ticket.

The issue with this BZ is fixed in my PR #50042.

Comment 8 Simon Pichugin 2018-12-03 22:29:17 UTC
Fixed in upstream and merged.

Comment 9 mreynolds 2018-12-14 17:38:30 UTC
*** Bug 1654781 has been marked as a duplicate of this bug. ***

Comment 11 Amita Sharma 2019-01-08 13:34:12 UTC
(In reply to Arpit Tolani from comment #0)
> Created attachment 1509462 [details]
> rhds cockpit webui
> 
> Description of problem:
> Atolani - RHDS webui console is not loading other instances apart from
> default when changing instance from top drop down menu. 
> 
> 
> Additional info:
> Adding Video file. Tried it with chrome & firefox both.

This is working fine now with
[root@server-rhel8 ds]# rpm -qa | grep 389
389-ds-base-1.4.0.20-4.module+el8+2624+8b7e87b9.x86_64
389-ds-base-snmp-1.4.0.20-4.module+el8+2624+8b7e87b9.x86_64
389-ds-base-libs-1.4.0.20-4.module+el8+2624+8b7e87b9.x86_64
cockpit-389-ds-1.4.0.20-4.module+el8+2+a9256f9c.noarch
python3-lib389-1.4.0.20-4.module+el8+2624+8b7e87b9.noarch
389-ds-base-legacy-tools-1.4.0.20-4.module+el8+2624+8b7e87b9.x86_64

after I refresh the browser.

Comment 12 Amita Sharma 2019-01-08 14:01:25 UTC
(In reply to Anuj Borah from comment #5)
> rhds cockpit webui
> 
> Description of problem:
> 
> If you create one Attributes from schema > Attributes , and update it from
> CLI with:
> 
> dsconf Instancename schema attributetypes edit Attributes-name --desc 'Anuj
> here 2'
> 
> 
> Changes does not reflect the webui . yes , it does reflect the changes ,
> after refreshing the browser , we can use some thing like ajax call so that
> changes can be reflected without refreshing the browser .
> 
> One video added .

This is working after refresh only*

Comment 16 Amita Sharma 2019-01-08 15:41:37 UTC
Simon, no change reflects in web ui which is done in CLI without refresh.

Like I have created this instance in CLI with dscreate -
======================================================
Starting installation...
Created symlink /etc/systemd/system/multi-user.target.wants/dirsrv → /usr/lib/systemd/system/dirsrv@.service.
Completed installation for slapd-5

But in webui, it is not reflected, Please check attached screenshot. Thanks.

Comment 17 Amita Sharma 2019-01-08 15:42:13 UTC
Created attachment 1519225 [details]
WebUi

Comment 18 mreynolds 2019-01-08 16:35:44 UTC
(In reply to Amita Sharma from comment #16)
> Simon, no change reflects in web ui which is done in CLI without refresh.
> 
> Like I have created this instance in CLI with dscreate -
> ======================================================
> Starting installation...
> Created symlink
> /etc/systemd/system/multi-user.target.wants/dirsrv →
> /usr/lib/systemd/system/dirsrv@.service.
> Completed installation for slapd-5
> 
> But in webui, it is not reflected, Please check attached screenshot. Thanks.

Amita, that is the correct behavior in this case.  The UI can not detect configuration changes done outside of the UI.  So anything done via CLI "does" require a browser refresh.  Sorry I originally missed that detail in your comments.

Comment 19 Simon Pichugin 2019-01-08 18:27:51 UTC
Yeah, as I mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=1654281#c7 
it is like our old Java Console. 

We can improve the thing in the future but for now, the tool is designed like this.

Amita, please, check if the issue from https://bugzilla.redhat.com/show_bug.cgi?id=1654281#c0 is completely fixed.
Thanks!

P.S. I checked the thing on my RHEL 8 environment and it looks good.

Comment 20 Amita Sharma 2019-01-09 05:57:20 UTC
Thanks for clarification. Do we plan to communicate this fact explicitly somewhere that - "The UI can not detect configuration changes done outside of the UI.  So anything done via CLI "does" require a browser refresh."
Somewhere in documents?

I am marking this bug as verified but we should mention this information somewhere for our customers. Thanks.
Thank you so much Mark and Simon.

Comment 28 errata-xmlrpc 2019-11-06 12:42:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:3731


Note You need to log in before you can comment on or make changes to this bug.