Migrate search export to the core workflow
Created by: taras-yemets
Migrates search-export extension functionality into the core workflow. Closes https://github.com/sourcegraph/sourcegraph/issues/38379
Notes on implementation
- This PR migrates the existing extension functionality with known limitations (we do not actually export all search results found, but only a certain portion of it, what actually the
query SearchResults
returns). - There are 2 extension specific user settings:
searchExport.searchPatternType
andsearchExport.maxMatchContentLength
. We migrate the former but ignore the latter as it targets Sourcegraph versions prior to 3.29, and the migrated functionality will be available only for 4.0+ Sourcegraph users. - The only visual change in the regular UI is the export button text; notification behavior remains the same.
- Export search results button is added to the simple UI actions dropdown.
Extension | Core workflow feature |
---|---|
Test plan
sg start web-standalone
- Enable
sourcegraph/search-export
extension - Search for something, click "Export search results" button and download the suggested file
- Enable
extensionsAsCoreFeatures
experimental feature in user settings. - Repeat step 3 and ensure the same search results are downloaded.
App preview:
Check out the client app preview documentation to learn more.