Code AI platform with Code Search & Cody
Go to file
Felix Kling a2e870793a
search: Move query state out of root component state (#24844)
This commit moves the "global" query state out of the state of the root component. Because the query state is updated on every keypress it caused excessive re-rendering of the whole application, which, depending on the page, causes massive performance issues.

The query state isn't really "global", rather it's information that is needed by a handful of components rendered in different parts of the page. This commit adds https://zustand.surge.sh/ to make this data available to those components without impacting the overall application (also as a potential solution for other similar use cases).
2021-09-16 07:50:34 +00:00
.buildkite add status check (#21674) 2021-06-02 22:26:24 +00:00
.github chore: correct PROJECT_ID var, rename other issue mover (#25018) 2021-09-16 00:32:36 +00:00
.vscode vscode: exclude *.scss.d.ts (generated) files from explorer (#22572) 2021-09-07 20:29:41 -07:00
client search: Move query state out of root component state (#24844) 2021-09-16 07:50:34 +00:00
cmd gitserver: Switch to internal actor when fetching remote url (#24987) 2021-09-15 16:57:21 +02:00
dev setup 3.32 (#25001) 2021-09-15 16:17:07 +00:00
doc monitoring: remove redundant new lines in generated docs (#25019) 2021-09-15 20:57:09 -04:00
docker-images bump libgcrypt package (#24992) 2021-09-15 14:19:34 +00:00
enterprise codeintel: Convert recordExpirer janitor job to expiredUploadDeleter (#24793) 2021-09-15 16:29:02 +00:00
internal repo-updater: Observe total repos synced (#24582) 2021-09-16 09:01:25 +02:00
lib Run golangci-lint in every Go project in repository (and fix all reported errors) (#24956) 2021-09-15 09:59:20 +02:00
migrations codeintel: Add missing foreign key indexes (#24969) 2021-09-14 16:58:25 +00:00
monitoring monitoring: remove redundant new lines in generated docs (#25019) 2021-09-15 20:57:09 -04:00
schema authz/github: validate provider against default github URL if not set (#24598) 2021-09-06 12:37:33 -04:00
third-party-licenses chore: update third-party licenses (#24862) 2021-09-13 00:15:37 +00:00
ui/assets Fix gitignore in ui/assets (#24680) 2021-09-07 17:18:47 +02:00
.dockerignore web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
.editorconfig sg: add run-set for core app (#23156) 2021-07-23 07:59:43 +00:00
.eslintignore web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
.eslintrc.js Allow default export for storybook stories (#23630) 2021-08-05 12:28:40 -07:00
.gitattributes monitoring: migrate monitoring docs to Sourcegraph API Docs (#22876) 2021-07-16 10:34:17 +08:00
.gitignore Add a sitemap for Sourcegraph.com covering over 400k+ Go symbols and packages (#24490) 2021-09-02 23:51:52 +00:00
.gitmodules Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
.golangci.yml Fix ioutil rule in golangci-lint (#24583) 2021-09-03 12:42:57 +02:00
.graphqlrc.yml Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
.mailmap Add Camden to mailmap (#19488) 2021-03-26 16:32:13 +00:00
.mocharc.js Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
.nvmrc Upgrade to node.js 16 (#24109) 2021-08-19 12:32:43 +02:00
.percy.yml Code Insights: another attempt to fix flaky screenshot tests (#24383) 2021-08-27 23:18:42 +00:00
.prettierignore monitoring: migrate monitoring docs to Sourcegraph API Docs (#22876) 2021-07-16 10:34:17 +08:00
.stylelintignore docs: extension architecture (#15679) 2020-12-02 21:17:24 -05:00
.stylelintrc.json Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
.tool-versions executors: Build AWS AMI in addition to google compute image (#24058) 2021-09-10 22:11:42 +02:00
.yarnrc Ignore workspace root check (#19608) 2021-03-31 15:30:11 +01:00
babel.config.js GraphQL Client: Add Apollo/client and implement on profile settings page (#22166) 2021-06-29 09:23:33 +01:00
CHANGELOG.md search: Move query state out of root component state (#24844) 2021-09-16 07:50:34 +00:00
CODENOTIFY Deglobalize CODENOTIFY settings for eseliger (#16710) 2020-12-14 15:50:22 +01:00
CONTRIBUTING.md fix: update broken link to code of conduct (#7781) 2020-01-15 13:45:14 -08:00
doc.go Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
go.mod monitoring: link directly to panels and dashsboards from alerts panels (#24920) 2021-09-14 18:36:04 +00:00
go.sum monitoring: link directly to panels and dashsboards from alerts panels (#24920) 2021-09-14 18:36:04 +00:00
graphql-schema-linter.config.js Support multiple GraphQL schema files (#20077) 2021-04-19 14:35:49 +02:00
gulpfile.js Improve integration test suite CI run script (#24666) 2021-09-07 16:07:11 +02:00
jest.config.base.js fix types for jest.config.base.js (using @jest/types package) (#24339) 2021-08-26 02:33:21 -07:00
jest.config.js fix types for jest.config.base.js (using @jest/types package) (#24339) 2021-08-26 02:33:21 -07:00
LICENSE move comma outside quotes in LICENSE (#24828) 2021-09-13 14:29:57 +00:00
LICENSE.apache Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
LICENSE.enterprise clarify license (#2543) 2019-03-03 16:39:46 +08:00
package.json search: Move query state out of root component state (#24844) 2021-09-16 07:50:34 +00:00
postcss.config.js extensibility: add featured extensions to registry (#21665) 2021-06-10 13:55:20 -04:00
prettier.config.js Publish Sourcegraph as open source 🚀 2018-09-30 23:13:36 -07:00
README.md doc: Clear up quickstart step order (#24098) 2021-08-24 09:27:45 +02:00
renovate.json update upstream alpine (#24896) 2021-09-13 12:27:29 -05:00
SECURITY.md consolidate security policy (#7906) 2020-01-21 10:03:11 -08:00
sg.config.yaml monitoring: link directly to panels and dashsboards from alerts panels (#24920) 2021-09-14 18:36:04 +00:00
shell.nix nix: use go 1.17 (#24716) 2021-09-08 10:18:58 +02:00
tsconfig.all.json extensibility: create integration test harness for browser extension (#23235) 2021-08-04 09:28:47 -04:00
tsconfig.json web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
yarn.lock search: Move query state out of root component state (#24844) 2021-09-16 07:50:34 +00:00

Sourcegraph

build apache license

Sourcegraph OSS edition is a fast, open-source, fully-featured code search and navigation engine. Enterprise editions are available.

sourcegraph com_github com_golang_go_-_blob_src_net_http_request go_L855_6

Features

Try it yourself

Installation

Prebuilt Docker images are the fastest way to use Sourcegraph Enterprise. See the quickstart installation guide.

To use Sourcegraph OSS:

  1. Ensure Docker is running
  2. Initialize the PostgreSQL database
  3. Configure the HTTPS reverse proxy
  4. Start the development server
    ./dev/start.sh
    

Sourcegraph should now be running at https://sourcegraph.test:3443.

For detailed instructions and troubleshooting, see the local development documentation.

Development

Refer to the Developing Sourcegraph guide to get started.

Documentation

The doc directory has additional documentation for developing and understanding Sourcegraph:

License

Sourcegraph OSS is available freely under the Apache 2 license. Sourcegraph OSS comprises all files in this repository except those in the enterprise/ and client/web/src/enterprise directories.

All files in the enterprise/ and client/web/src/enterprise/ directories are subject to the Sourcegraph Enterprise license.