Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport jb-v7.12.x] Disable Intent Detection if Code Search Disabled (
#6756) Check for `codeSearchEnabled` using the [query](https://sourcegraph.sourcegraph.com/api/console#%7B%22query%22%3A%22query%20%7B%5Cn%20%20enterpriseLicenseHasFeature(feature%3A%5C%22code-search%5C%22)%5Cn%7D%5Cn%22%7D) to make sure intent detection is only available for users with code search enabled. Also display the intent selection dropdown only when code search is enabled. - test that intent detection is working as intended when connected to s2. - connect to an instance with code search disabled and intent detection should be totally disbled and hidden and there should be no intent selection dropdown as well. (cherry picked from commit 76cc36e) ## Test plan - test that intent detection is working as intended when connected to s2. - connect to an instance with code search disabled and intent detection should be totally disbled and hidden and there should be no intent selection dropdown as well. <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. --> Co-authored-by: Naman Kumar <[email protected]>
- Loading branch information