Bug 957151 - Newly created organization is not immediately added to Org selector
Summary: Newly created organization is not immediately added to Org selector
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Tomer Brisker
QA Contact: sthirugn@redhat.com
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-26 13:11 UTC by Og Maciel
Modified: 2019-09-26 17:44 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-11 12:22:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Missing org screenshot (29.14 KB, image/png)
2013-04-26 13:11 UTC, Og Maciel
no flags Details
Though organization 'DogFood' is created, it is not listed in the org selector (71.70 KB, image/png)
2014-07-29 15:41 UTC, Og Maciel
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 6831 0 None None None 2016-04-22 16:59:40 UTC

Description Og Maciel 2013-04-26 13:11:39 UTC
Created attachment 740388 [details]
Missing org screenshot

Description of problem:

Using the experimental UI with nightly build, when you add a new organization, it does not get added to the Org selector immediately. If you select one of the listed organizations (i.e. ACME_Corporation) and click the Org selector again, then the new organization is listed.

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

* candlepin-0.8.4-1.el6.noarch
* candlepin-selinux-0.8.4-1.el6.noarch
* candlepin-tomcat6-0.8.4-1.el6.noarch
* elasticsearch-0.19.9-7.el6.noarch
* katello-1.4.1-1.git.232.6fc8457.el6.noarch
* katello-all-1.4.1-1.git.232.6fc8457.el6.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.4.1-1.el6.noarch
* katello-cli-1.4.1-1.git.226.a7b0990.el6.noarch
* katello-cli-common-1.4.1-1.git.226.a7b0990.el6.noarch
* katello-common-1.4.1-1.git.232.6fc8457.el6.noarch
* katello-configure-1.4.1-1.git.111.f7f9fea.el6.noarch
* katello-glue-candlepin-1.4.1-1.git.232.6fc8457.el6.noarch
* katello-glue-elasticsearch-1.4.1-1.git.232.6fc8457.el6.noarch
* katello-glue-pulp-1.4.1-1.git.232.6fc8457.el6.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-repos-1.4.1-1.el6.noarch
* katello-selinux-1.4.1-1.el6.noarch
* pulp-rpm-plugins-2.1.1-0.5.1.beta.el6.noarch
* pulp-selinux-2.1.1-0.5.beta.el6.noarch
* pulp-server-2.1.1-0.5.beta.el6.noarch

How reproducible:


Steps to Reproduce:
1. Select the Manage Organizations link
2. Create a new Org
3. Click the Org selector
  
Actual results:

The new org is not listed in the Org selector

Expected results:

The new organization should be listed in the Org selector

Additional info:

Comment 1 Mike McCune 2013-04-30 16:43:51 UTC
bumping up the severity of this a bit, pretty confusing and a common use case would be to create an org and want to switch to it immediately.

Comment 2 Walden Raines 2013-05-07 21:12:26 UTC
commit f88da37826e7e42e833e84803fc2f78f63b3f6ae
Merge: 7e3178b 395cad0
Author: Walden Raines <walden>
Date:   Tue May 7 11:05:01 2013 -0700

    Merge pull request #2187 from waldenraines/fix_org_switcher_issues
    
    Fixing #2178 by repopulating the org switcher menu each time it's opened.

Comment 4 Sam Kottler 2013-05-23 23:41:37 UTC
Moving to ON_QA for drop 2.

Comment 5 Tazim Kolhar 2013-05-28 09:15:23 UTC
VERIFIED :

# rpm -qa | grep katello
ruby193-rubygem-foreman-katello-engine-0.0.7-1.el6sat.noarch
katello-common-1.4.2-7.el6sat.noarch
katello-1.4.2-7.el6sat.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
ruby193-rubygem-katello_api-0.0.3-2.el6_4.noarch
katello-glue-candlepin-1.4.2-7.el6sat.noarch
katello-configure-foreman-1.4.3-10.el6sat.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-certs-tools-1.4.2-2.el6sat.noarch
katello-cli-1.4.2-6.el6sat.noarch
signo-katello-0.0.12-1.el6sat.noarch
katello-selinux-1.4.3-3.el6sat.noarch
katello-glue-pulp-1.4.2-7.el6sat.noarch
katello-all-1.4.2-7.el6sat.noarch
katello-foreman-all-1.4.2-7.el6sat.noarch
katello-cli-common-1.4.2-6.el6sat.noarch
katello-glue-elasticsearch-1.4.2-7.el6sat.noarch
katello-configure-1.4.3-10.el6sat.noarch
ruby193-rubygem-katello-foreman-engine-0.0.1-1.el6_4.noarch

Comment 6 Mike McCune 2013-07-18 21:22:05 UTC
mass move to CLOSED:CURRENTRELEASE since MDP1 has been released.

Comment 7 Og Maciel 2014-07-29 15:40:06 UTC
Seeing this with latest code.

* Create new organization via UI
* Once you're done, click the Org dropdown widget
  * The new org is not displayed/listed

Environment:

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.19-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.19-1.el6_5.noarch
* candlepin-tomcat6-0.9.19-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-1.6.0.32-1.el6sat.noarch
* foreman-compute-1.6.0.32-1.el6sat.noarch
* foreman-gce-1.6.0.32-1.el6sat.noarch
* foreman-libvirt-1.6.0.32-1.el6sat.noarch
* foreman-ovirt-1.6.0.32-1.el6sat.noarch
* foreman-postgresql-1.6.0.32-1.el6sat.noarch
* foreman-proxy-1.6.0.22-1.el6sat.noarch
* foreman-selinux-1.6.0.3-1.el6sat.noarch
* foreman-vmware-1.6.0.32-1.el6sat.noarch
* katello-1.5.0-27.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-installer-0.0.56-1.el6sat.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.23.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.23.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.23.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.23.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.23.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.23.beta.el6sat.noarch
* pulp-server-2.4.0-0.23.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
* rubygem-hammer_cli-0.1.1-10.el6sat.noarch
* rubygem-hammer_cli_foreman-0.1.1-13.el6sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-3.el6sat.noarch
* rubygem-hammer_cli_katello-0.0.4-9.el6sat.noarch

Comment 8 Og Maciel 2014-07-29 15:40:07 UTC
Seeing this with latest code.

* Create new organization via UI
* Once you're done, click the Org dropdown widget
  * The new org is not displayed/listed

Environment:

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.19-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.19-1.el6_5.noarch
* candlepin-tomcat6-0.9.19-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-1.6.0.32-1.el6sat.noarch
* foreman-compute-1.6.0.32-1.el6sat.noarch
* foreman-gce-1.6.0.32-1.el6sat.noarch
* foreman-libvirt-1.6.0.32-1.el6sat.noarch
* foreman-ovirt-1.6.0.32-1.el6sat.noarch
* foreman-postgresql-1.6.0.32-1.el6sat.noarch
* foreman-proxy-1.6.0.22-1.el6sat.noarch
* foreman-selinux-1.6.0.3-1.el6sat.noarch
* foreman-vmware-1.6.0.32-1.el6sat.noarch
* katello-1.5.0-27.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-installer-0.0.56-1.el6sat.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.23.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.23.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.23.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.23.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.23.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.23.beta.el6sat.noarch
* pulp-server-2.4.0-0.23.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
* rubygem-hammer_cli-0.1.1-10.el6sat.noarch
* rubygem-hammer_cli_foreman-0.1.1-13.el6sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-3.el6sat.noarch
* rubygem-hammer_cli_katello-0.0.4-9.el6sat.noarch

Comment 9 Og Maciel 2014-07-29 15:41:56 UTC
Created attachment 922189 [details]
Though organization 'DogFood' is created, it is not listed in the org selector

Comment 10 Og Maciel 2014-07-29 15:43:09 UTC
Work around: click the Content > Lifecycle Environment menu to re-populate the org selector.

Comment 11 Og Maciel 2014-07-29 15:49:10 UTC
Regression was found on build Satellite-6.0.4-RHEL-6-20140723.0

Comment 12 Walden Raines 2014-07-29 15:51:09 UTC
Moving to Foreman since Katello no longer has it's own org selector.

Comment 14 Dominic Cleal 2014-07-30 09:10:47 UTC
Connecting redmine issue http://projects.theforeman.org/issues/6831 from this bug

Comment 15 Dustin Tsang 2014-08-01 13:54:06 UTC
Cannot reproduce for both admin and non-admin user.

Comment 16 Dominic Cleal 2014-08-01 13:56:22 UTC
(In reply to Dustin Tsang from comment #15)
> Cannot reproduce for both admin and non-admin user.

I reproduced it just fine.  Note that caching is only active in production mode.

Comment 17 Dustin Tsang 2014-08-01 14:02:09 UTC
Could be caching of the top menu bar in production mode.

Comment 18 Dominic Cleal 2014-08-01 14:11:43 UTC
Yes, it is.  The cause and likely solution are detailed in the associated issue.

Comment 19 Bryan Kearney 2014-08-18 16:01:16 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6831 has been closed
-------------
Dominic Cleal
https://github.com/theforeman/foreman/blob/develop/app/models/taxonomy.rb#L127 is the issue, it should be (users + User.only_admin).uniq or something

-------------
Anonymous
Applied in changeset commit:8fabe6618b36ca3d232e8241749405ed8217c656.

Comment 22 sthirugn@redhat.com 2014-08-20 19:46:46 UTC
Verified.

Now the new org I create in UI is immediately available for me to select in the dropdown.

Version Tested:
GA Snap 6 - Satellite-6.0.4-RHEL-6-20140820.1

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.23-1.el6_5.noarch
* candlepin-common-1.0.1-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.23-1.el6_5.noarch
* candlepin-tomcat6-0.9.23-1.el6_5.noarch
* elasticsearch-0.90.10-6.el6sat.noarch
* foreman-1.6.0.41-1.el6sat.noarch
* foreman-compute-1.6.0.41-1.el6sat.noarch
* foreman-gce-1.6.0.41-1.el6sat.noarch
* foreman-libvirt-1.6.0.41-1.el6sat.noarch
* foreman-ovirt-1.6.0.41-1.el6sat.noarch
* foreman-postgresql-1.6.0.41-1.el6sat.noarch
* foreman-proxy-1.6.0.29-1.el6sat.noarch
* foreman-selinux-1.6.0.7-1.el6sat.noarch
* foreman-vmware-1.6.0.41-1.el6sat.noarch
* katello-1.5.0-29.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-installer-0.0.60-1.el6sat.noarch
* openldap-2.4.23-34.el6_5.1.x86_64
* openldap-devel-2.4.23-34.el6_5.1.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.30.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.30.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.30.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.30.beta.el6sat.noarch
* pulp-server-2.4.0-0.30.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch

Comment 23 Bryan Kearney 2014-09-11 12:22:41 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.


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