Skip to content

Commit 948b57e

Browse files
authored
Merge branch 'sourcegraph:main' into main
2 parents 4420e4a + e1f590b commit 948b57e

File tree

357 files changed

+7901
-8236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+7901
-8236
lines changed

.eslintrc.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ const config = {
6666
// import/no-duplicates enabled as well, which does understand type imports
6767
'no-duplicate-imports': 'off',
6868
'id-length': 'off',
69+
'no-void': 'off',
6970
'@typescript-eslint/consistent-type-exports': 'warn',
7071
'@typescript-eslint/consistent-type-imports': [
7172
'warn',
@@ -108,12 +109,6 @@ const config = {
108109
},
109110
],
110111
patterns: [
111-
{
112-
group: ['**/enterprise/*'],
113-
message: `The OSS product may not pull in any code from the enterprise codebase, to stay a 100% open-source program.
114-
115-
See https://handbook.sourcegraph.com/community/faq#is-all-of-sourcegraph-open-source for more information.`,
116-
},
117112
{
118113
group: ['@sourcegraph/branded/src/search-ui/experimental'],
119114
message:

CHANGELOG.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ All notable changes to Sourcegraph are documented in this file.
1919

2020
- The `has.topic` filter now supports filtering by Gitlab topics. [#57649](https://github.com/sourcegraph/sourcegraph/pull/57649)
2121
- Batch Changes now allows changesets to be exported in CSV and JSON format. [#56721](https://github.com/sourcegraph/sourcegraph/pull/56721)
22+
- Supports custom ChatCompletion models in Cody clients for dotcom users. [#58158](https://github.com/sourcegraph/sourcegraph/pull/58158)
2223

2324
### Changed
2425

@@ -30,6 +31,9 @@ All notable changes to Sourcegraph are documented in this file.
3031
- Site configuration edit history no longer breaks when the user that made the edit is deleted. [#57656](https://github.com/sourcegraph/sourcegraph/pull/57656)
3132
- Drilling down into an insights query no longer mangles `content:` fields in your query. [#57679](https://github.com/sourcegraph/sourcegraph/pull/57679)
3233
- The blame column now shows correct blame information when a hunk starts in a folded code section. [#58042](https://github.com/sourcegraph/sourcegraph/pull/58042)
34+
- Fixed a bug where typing in the GraphQL editor in the Site Admin API console could cause the cursor to jump to the start of the editor. [#57862](https://github.com/sourcegraph/sourcegraph/pull/57862)
35+
- The blame column no longer ignores whitespace-only changes by default. [#58134](https://github.com/sourcegraph/sourcegraph/pull/58134)
36+
- Long lines now wrap correctly in the diff view. [#58138](https://github.com/sourcegraph/sourcegraph/pull/58138)
3337

3438
### Removed
3539

@@ -39,28 +43,38 @@ All notable changes to Sourcegraph are documented in this file.
3943
- The GitHub Proxy service is no longer required and has been removed from deployment options. [#55290](https://github.com/sourcegraph/sourcegraph/issues/55290)
4044
- The VSCode search extension "Sourcegraph for VS Code" has been sunset and removed from Sourcegraph
4145
repository. [#58023](https://github.com/sourcegraph/sourcegraph/pull/58023)
46+
- The feature flag `search-ranking` is now completely removed. [#58156](https://github.com/sourcegraph/sourcegraph/pull/58156)
47+
- The notepad UI, notebook creation feature. [#58217](https://github.com/sourcegraph/sourcegraph/pull/58217)
4248

4349
## Unreleased 5.2.3
4450

45-
## 5.2.2
46-
4751
### Added
4852

49-
- Added a new authorization configuration options to GitLab code host connections: "markInternalReposAsPublic". Setting "markInternalReposAsPublic" to true is useful for organizations that have a large amount of internal repositories that everyone on the instance should be able to access, removing the need to have permissions to access these repositories. Additionally, when configuring a GitLab auth provider, you can specify "syncInternalRepoPermissions": false, which will remove the need to sync permissions for these internal repositories. [#57858](https://github.com/sourcegraph/sourcegraph/pull/57858)
50-
- Experimental support for OpenAI powered autocomplete has been added. [#57872](https://github.com/sourcegraph/sourcegraph/pull/57872)
53+
-
5154

5255
### Changed
5356

5457
-
5558

5659
### Fixed
5760

58-
- Updated the endpoint used by the AWS Bedrock Claude provider. [#58028](https://github.com/sourcegraph/sourcegraph/pull/58028)
61+
-
5962

6063
### Removed
6164

6265
-
6366

67+
## 5.2.2
68+
69+
### Added
70+
71+
- Added a new authorization configuration options to GitLab code host connections: "markInternalReposAsPublic". Setting "markInternalReposAsPublic" to true is useful for organizations that have a large amount of internal repositories that everyone on the instance should be able to access, removing the need to have permissions to access these repositories. Additionally, when configuring a GitLab auth provider, you can specify "syncInternalRepoPermissions": false, which will remove the need to sync permissions for these internal repositories. [#57858](https://github.com/sourcegraph/sourcegraph/pull/57858)
72+
- Experimental support for OpenAI powered autocomplete has been added. [#57872](https://github.com/sourcegraph/sourcegraph/pull/57872)
73+
74+
### Fixed
75+
76+
- Updated the endpoint used by the AWS Bedrock Claude provider. [#58028](https://github.com/sourcegraph/sourcegraph/pull/58028)
77+
6478
## 5.2.1
6579

6680
### Added
@@ -73,10 +87,6 @@ All notable changes to Sourcegraph are documented in this file.
7387
- Customers with a license key created before October 3, 2023 will export only Cody-related events recorded in the new system, as covered by the [Cody Usage and Privacy Notice](https://about.sourcegraph.com/terms/cody-notice).
7488
- If you have a previous agreement regarding telemetry sharing, you account representative will reach out with more details.
7589

76-
### Changed
77-
78-
-
79-
8090
### Fixed
8191

8292
- Fixed a user's Permissions page being inaccessible if the user has had no permission syncs with an external account connected. [#57372](https://github.com/sourcegraph/sourcegraph/pull/57372)
@@ -86,8 +96,6 @@ All notable changes to Sourcegraph are documented in this file.
8696
- Fixed a bug where commit signing failed when creating a changeset if `batchChanges.enforceFork` is set to true. [#57520](https://github.com/sourcegraph/sourcegraph/pull/57520)
8797
- Fixed a regression in ranking of Go struct and interface in search results. [zoekt#655](https://github.com/sourcegraph/zoekt/pull/655)
8898

89-
### Removed
90-
9199
## 5.2.0
92100

93101
### Added

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
## Getting started
4343

44-
- [**Download Sourcegraph**](https://about.sourcegraph.com/app) for macOS and Linux
4544
- [Use Sourcegraph on the cloud or self-hosted](https://docs.sourcegraph.com/)
4645
- [Sourcegraph.com public code search](https://sourcegraph.com/search)
4746

@@ -67,6 +66,4 @@ The `doc` directory has additional documentation for developing and understandin
6766

6867
## License
6968

70-
This repository contains primarily non-OSS-licensed files, and some OSS licensed files (for example, IDE extensions). We maintain one repository rather than two separate repositories mainly for development convenience.
71-
72-
See the [LICENSE](LICENSE) for an explanation of how files are licensed.
69+
This repository contains primarily non-OSS-licensed files. See [LICENSE](LICENSE).

client/branded/BUILD.bazel

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,16 @@ ts_project(
123123
"src/search-ui/input/experimental/CodeMirrorQueryInputWrapper.tsx",
124124
"src/search-ui/input/experimental/LazyCodeMirrorQueryInput.tsx",
125125
"src/search-ui/input/experimental/Suggestions.tsx",
126-
"src/search-ui/input/experimental/SyntaxHighlightedSearchQuery.tsx",
127126
"src/search-ui/input/experimental/codemirror/example-suggestions.ts",
128127
"src/search-ui/input/experimental/codemirror/history.ts",
129128
"src/search-ui/input/experimental/codemirror/searchcontext.ts",
130129
"src/search-ui/input/experimental/codemirror/syntax-highlighting.ts",
131130
"src/search-ui/input/experimental/filters.ts",
132131
"src/search-ui/input/experimental/index.ts",
133132
"src/search-ui/input/experimental/modes.ts",
134-
"src/search-ui/input/experimental/optionRenderer.tsx",
133+
"src/search-ui/input/experimental/placeholder.ts",
135134
"src/search-ui/input/experimental/suggestionsExtension.ts",
136135
"src/search-ui/input/experimental/utils.ts",
137-
"src/search-ui/input/toggles/CopyQueryButton.tsx",
138136
"src/search-ui/input/toggles/QueryInputToggle.tsx",
139137
"src/search-ui/input/toggles/SmartSearchToggle.tsx",
140138
"src/search-ui/input/toggles/Toggles.tsx",
@@ -184,7 +182,6 @@ ts_project(
184182
"//:node_modules/@types/lodash",
185183
"//:node_modules/@types/node",
186184
"//:node_modules/@types/react",
187-
"//:node_modules/@types/react-dom",
188185
"//:node_modules/classnames",
189186
"//:node_modules/copy-to-clipboard",
190187
"//:node_modules/date-fns",
@@ -194,7 +191,6 @@ ts_project(
194191
"//:node_modules/lodash",
195192
"//:node_modules/mdi-react",
196193
"//:node_modules/react",
197-
"//:node_modules/react-dom",
198194
"//:node_modules/react-router-dom",
199195
"//:node_modules/react-sticky-box",
200196
"//:node_modules/react-visibility-sensor",

client/branded/src/search-ui/input/SearchBox.story.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ export default config
2424

2525
const defaultProps: SearchBoxProps = {
2626
telemetryService: NOOP_TELEMETRY_SERVICE,
27-
settingsCascade: {
28-
final: null,
29-
subjects: null,
30-
},
3127
queryState: { query: 'hello repo:test' },
3228
isSourcegraphDotCom: false,
3329
patternType: SearchPatternType.standard,

client/branded/src/search-ui/input/SearchBox.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export interface SearchBoxProps
4949
/** Called with the underlying editor instance on creation. */
5050
onEditorCreated?: (editor: IEditor) => void
5151

52-
/** Whether or not to show the search history button. Also disables the
52+
/**
53+
* Whether or not to show the search history button. Also disables the
5354
* search button. Does not affect history in the search input itself (via
5455
* arrow up/down)
5556
*/
@@ -191,13 +192,10 @@ export const SearchBox: FC<SearchBoxProps> = props => {
191192
setCaseSensitivity={props.setCaseSensitivity}
192193
searchMode={props.searchMode}
193194
setSearchMode={props.setSearchMode}
194-
settingsCascade={props.settingsCascade}
195195
submitSearch={props.submitSearchOnToggle}
196196
navbarSearchQuery={queryState.query}
197197
className={styles.searchBoxToggles}
198-
showCopyQueryButton={props.showCopyQueryButton}
199198
structuralSearchDisabled={props.structuralSearchDisabled}
200-
selectedSearchContextSpec={props.selectedSearchContextSpec}
201199
/>
202200
</div>
203201
</div>

client/branded/src/search-ui/input/experimental/CodeMirrorQueryInputWrapper.module.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
@import 'wildcard/src/global-styles/breakpoints';
22

3+
:root {
4+
--search-box-color: var(--input-bg);
5+
--search-box-border: 1px solid var(--border-color-2);
6+
}
7+
38
.container {
49
width: 100%;
510
position: relative;
@@ -29,8 +34,8 @@
2934
min-height: 32px;
3035
padding: 0 0.25rem;
3136
border-radius: 4px;
32-
border: 1px solid var(--border-color-2);
33-
background-color: var(--input-bg);
37+
border: var(--search-box-border);
38+
background-color: var(--search-box-color);
3439
position: relative;
3540

3641
&:focus-within {

0 commit comments

Comments
 (0)