mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
codeintel: Fix nil pointer in summary resolver when repos are deleted (#51947)
This commit is contained in:
parent
cc10877fa4
commit
66be8ff8e6
@ -72,11 +72,15 @@ func (s *store) RepositoryIDsWithConfiguration(ctx context.Context, offset, limi
|
||||
|
||||
const repositoriesWithConfigurationQuery = `
|
||||
SELECT
|
||||
repository_id,
|
||||
available_indexers,
|
||||
r.id,
|
||||
cai.available_indexers,
|
||||
COUNT(*) OVER() AS count
|
||||
FROM cached_available_indexers
|
||||
WHERE available_indexers != '{}'::jsonb
|
||||
FROM cached_available_indexers cai
|
||||
JOIN repo r ON r.id = cai.repository_id
|
||||
WHERE
|
||||
available_indexers != '{}'::jsonb AND
|
||||
r.deleted_at IS NULL AND
|
||||
r.blocked IS NULL
|
||||
ORDER BY num_events DESC
|
||||
LIMIT %s
|
||||
OFFSET %s
|
||||
|
||||
@ -300,7 +300,7 @@ WITH
|
||||
-- perform below.
|
||||
candidates_from_uploads AS (
|
||||
SELECT u.repository_id
|
||||
FROM lsif_uploads u
|
||||
FROM lsif_uploads_with_repository_name u
|
||||
WHERE
|
||||
u.state = 'failed' AND
|
||||
NOT EXISTS (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user