Created by: slimsag
See #17218 for the general plan / work being done on code insights.
I am working from this codeinsights
branch (which will be unstable/buggy/broken sometimes) and my aim is to have this branch by EOW run a very basic code insights backend in dev environments, including all the app infra/changes we need, running timescaledb, doing the DB migrations to create the schema, and the GraphQL schema/API/backend making requests and serving data from timescale.
This branch itself won't be merged, rather I will be taking changes from here once they are solid and sending individual PRs for review (so they meet our quality bar, are not "one big PR", etc.) I will be posting updates here as I send out those PRs.
TODO:
dev/db/squash_migrations.sh
starts Postgres 9.6 if the connected DB version != 9.6, so it doesn't work with these migrations.internal/db/schemadoc/main.go
starts Postgres 9.6 if the connected DB version != 9.6, so it doesn't work with this DB schema yet.Feb 21-26:
Feb 15-19:
Feb 8-9:
Feb 1-5:
repo_names
and metadata
with https://docs.timescale.com/latest/using-timescaledb/compression (Tomas suggested, looks really cool) -- CONCLUSION: https://github.com/sourcegraph/sourcegraph/pull/17227#issuecomment-773704129
Jan 18-22:
sourcegraph/codeinsights-db
codeinsights-db
as part of dev server.migrations/codeinsights
DB migration foundation