Skip to content

User Default organization setting

Problem

With the introduction of Organizations, a user can potentially be a user in one or many Organizations. The following use cases need to be accounted for:

  • When a user logs into GitLab they need to land within one of those Organizations.
  • If viewing a User Profile when outside an Organization (ie when logged out) to provide information about the user, the user must be presented in the context of an Organization.

Design

image

Proposal

  • Add a user setting to designate a Home Organization.

Engineering guide

  1. Create a organization_select.vue component in app/assets/javascripts/vue_shared/components/entity_select. The component should use entity_select.vue as the base component.
  2. Create a Vue application in app/views/profiles/preferences/show.html.haml#L65 that renders the organization select and updates a hidden input with the selected organization ID.
  3. Setting will not persist until #428668 (closed) is complete
Edited by Peter Hegman