[cloud][CLOUD-84] Create built-in organization search context
Created by: kopancek
Description
The PR adds a new type of auto defined search context - the organization one. It is only shown for users, that are members of organizations, that own at least 1 repository. The feature is only enabled on cloud (via the ENV flag check, that was already there for auto defined user context).
Related: https://sourcegraph.atlassian.net/browse/CLOUD-84
Screenshot
This is how it looks like if the user has one auto defined organization search context. Note, that there might be more, if the user is a member of multiple organizations with repositories.
Testing
To test locally, it is enough to have these prerequisites and the organization context should show up:
- The user should exist
- The user should be member of at least 1 organization
- Enable the organization code host connections and repositories feature for the organization (follow the guide specified in #26507)
- Add a code host connection and at least 1 repository to the organization
- Profit