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
Proposal
- Add a user setting to designate a Home Organization.
Engineering guide
- Create a
organization_select.vue
component inapp/assets/javascripts/vue_shared/components/entity_select
. The component should useentity_select.vue
as the base component. - 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.
- Setting will not persist until #428668 (closed) is complete
Edited by Peter Hegman