-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add page for repo data on dot com, how to add repos to index #1711
Conversation
Notifying subscribers in CODENOTIFY files for diff 496118f...e975cb6.
|
handbook/engineering/distribution/repository_data_on_sourcegraph_dot_com.md
Outdated
Show resolved
Hide resolved
This will need to be changed to connect to the Cloud SQL database. The |
@daxmc99 got it, what's the right page to link to for setting up Also, the |
Yes, the The best way to setup the gcloud cli would be here https://cloud.google.com/sdk/docs/install |
12345678 | ||
``` | ||
|
||
- `INSERT INTO default_repos(repo_id) VALUES (12345678);` - add the ID to the table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rvantonder I ran into this access related error. Suggesting this addition for others who might run into this too.
Error
psql: error: could not connect to server: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
This can happen if you don't have access to the project you are trying to connect to. Contact the distribution team to get access.
I think it'd be best to actually dog food the work we've been doing to support user added repos in @sourcegraph/cloud instead of documenting direct database insertion into the default_repos table. This should be possible at the end of this week I believe. Please confirm @asdine @ryanslade. |
Agreed. Our work should be ready for dogfooding within the next day or so. |
I have just merged sourcegraph/sourcegraph#14341, all user-added external services will be indexed automatically alongside those already present in the |
We need to make a demo video to show teammates how this is done. |
Or perhaps that's a good subject for a Brain Food lightning talk? Since we now have an internal platform for presenting stuff to our teammates I think we should leverage it |
That's complementary — a demo video allows for easier sharing. We want to show our progress and be able to potentially publish these in release blog posts. |
I filed sourcegraph/sourcegraph#14438. In the meantime, do we need to enable any specific feature flags for all teammates to see the UI? |
Since this sounds confirmed, please open another PR for the handbook for this and I'll close this one? Video is nice but a very "online" mode of communicating something, there should be some textual description of how we index repo data :-) |
Agreed. Filed sourcegraph/sourcegraph#14477 |
There's a recurring use case/request for how to add custom repositories to index on Sourcegraph.com. It's not documented. This PR is a best effort to document how to do it currently.
Please check the commands for accuracy @daxmc99 (is it still OK to use
kubectl
instead ofgcloud
? is there an alternativegcloud
command?)Please check that this page lives in a sensible place @sourcegraph/distribution