Skip to content

Commit abe00f6

Browse files
Add artifacts for v6.8.0
1 parent a92eaa0 commit abe00f6

21 files changed

Lines changed: 258 additions & 204 deletions

File tree

TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v6.7.2720
1+
v6.8.0

gql/codeintel.policies.graphql

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ extend type Query {
3535
"""
3636
forSyntacticIndexing: Boolean
3737

38-
"""
39-
If set to true, then only configuration policies with embeddings enabled are returned.
40-
If set to false, then configuration policies with embeddings enabled are filtered out.
41-
"""
42-
forEmbeddings: Boolean @deprecated(reason: "Embeddings are not used.")
43-
4438
"""
4539
If set to true, then only protected configuration policies are returned.
4640
If set to false, then only un-protected configuration policies are returned.
@@ -116,11 +110,6 @@ extend type Mutation {
116110
syntacticIndexingEnabled: Boolean
117111
indexCommitMaxAgeHours: Int
118112
indexIntermediateCommits: Boolean!
119-
120-
"""
121-
embeddingsEnabled, if not provided, currently defaults to false.
122-
"""
123-
embeddingsEnabled: Boolean @deprecated(reason: "Embeddings are not used.")
124113
): CodeIntelligenceConfigurationPolicy!
125114

126115
"""
@@ -146,11 +135,6 @@ extend type Mutation {
146135
syntacticIndexingEnabled: Boolean
147136
indexCommitMaxAgeHours: Int
148137
indexIntermediateCommits: Boolean!
149-
150-
"""
151-
embeddingsEnabled, if not provided, currently defaults to false.
152-
"""
153-
embeddingsEnabled: Boolean @deprecated(reason: "Embeddings are not used.")
154138
): EmptyResponse
155139

156140
"""
@@ -343,11 +327,6 @@ type CodeIntelligenceConfigurationPolicy implements Node {
343327
only consider the tip of the branch.
344328
"""
345329
indexIntermediateCommits: Boolean!
346-
347-
"""
348-
Whether or not this configuration policy affects embeddings.
349-
"""
350-
embeddingsEnabled: Boolean! @deprecated(reason: "Embeddings are not used.")
351330
}
352331

353332
"""

gql/cody_context.graphql

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,6 @@ extend type Query {
6565
version: String
6666
): CodyContextAlternativesResult! @deprecated(reason: "Use the search API instead with `patterntype=nls`")
6767

68-
"""
69-
EXPERIMENTAL: Detect intent for a given Cody chat query.
70-
"""
71-
chatIntent(
72-
"""
73-
A natural language query string.
74-
"""
75-
query: String!
76-
"""
77-
Cody interaction ID - used to join requests for intent detection/context fetching/ranking.
78-
"""
79-
interactionId: String!
80-
): ChatIntentResponse! @deprecated(reason: "Automatic intent detection is no longer in use.")
81-
8268
"""
8369
EXPERIMENTAL: Fetches the relevant context for a mentioned URL
8470
"""
@@ -146,38 +132,6 @@ type FileChunkContext {
146132
matchedRanges: [Range!]!
147133
}
148134

149-
"""
150-
EXPERIMENTAL: An intent-score pair from Cody Chat intent detection API.
151-
"""
152-
type IntentScore {
153-
"""
154-
The intent that was detected
155-
"""
156-
intent: String!
157-
"""
158-
The confidence score
159-
"""
160-
score: Float!
161-
}
162-
163-
"""
164-
EXPERIMENTAL: A response from Cody Chat intent detection API.
165-
"""
166-
type ChatIntentResponse {
167-
"""
168-
Intent that was detected
169-
"""
170-
intent: String!
171-
"""
172-
Confidence score as assigned by the intent detection model
173-
"""
174-
score: Float!
175-
"""
176-
All intents and scores computed by the intent detection model
177-
"""
178-
allScores: [IntentScore!]!
179-
}
180-
181135
"""
182136
EXPERIMENTAL: The result of fetching context for a URL mention
183137
"""

gql/schema.graphql

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,10 +1109,6 @@ enum EventBillingID {
11091109
A billable Cody completion (aka suggestion or autocomplete) event.
11101110
"""
11111111
CodyCompletion
1112-
"""
1113-
A billable Cody embedding/code graph creation or search event.
1114-
"""
1115-
CodyEmbedding @deprecated(reason: "Embeddings are not used")
11161112
}
11171113

11181114
"""
@@ -1543,14 +1539,6 @@ type Query {
15431539
"""
15441540
notIndexed: Boolean = true
15451541
"""
1546-
Include repositories that have embeddings.
1547-
"""
1548-
embedded: Boolean = true @deprecated(reason: "Embeddings are not used")
1549-
"""
1550-
Include repositories that don't have embeddings.
1551-
"""
1552-
notEmbedded: Boolean = true @deprecated(reason: "Embeddings are not used")
1553-
"""
15541542
Include only repositories that have encountered errors when cloning or fetching
15551543
"""
15561544
failedFetch: Boolean = false
@@ -3778,11 +3766,6 @@ type Repository implements Node & GenericSearchResultInterface {
37783766
reason: "Use mirrorInfo.byteSize instead. This field is a deprecated and will be removed in a future release."
37793767
)
37803768

3781-
"""
3782-
Returns true if embeddings for the repo are generated.
3783-
"""
3784-
embeddingExists: Boolean! @deprecated(reason: "Embeddings are not used")
3785-
37863769
"""
37873770
Returns true if command executed on the repo are recorded.
37883771
"""
@@ -8824,10 +8807,6 @@ type RepositoryStats {
88248807
The number of repositories that are currently corrupt
88258808
"""
88268809
corrupted: Int!
8827-
"""
8828-
The number of repositories that have embeddings
8829-
"""
8830-
embedded: Int! @deprecated(reason: "Embeddings are not used")
88318810
}
88328811

88338812
"""
@@ -10395,6 +10374,11 @@ enum PermissionNamespace {
1039510374
Permissions related to managing IdP clients.
1039610375
"""
1039710376
IDP_CLIENTS
10377+
10378+
"""
10379+
Permissions related to SCIP index management.
10380+
"""
10381+
SCIP
1039810382
}
1039910383

1040010384
"""

migrations/frontend/1755107655_deepsearch_reset_updated_at/down.sql

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: deepsearch_reset_updated_at
2+
parents: [1754948630]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
-- Apply the fixes
3+
ALTER TABLE deepsearch_conversations DISABLE TRIGGER USER;
4+
ALTER TABLE deepsearch_questions DISABLE TRIGGER USER;
5+
6+
UPDATE deepsearch_questions
7+
SET
8+
updated_at = created_at;
9+
10+
UPDATE deepsearch_conversations
11+
SET
12+
updated_at = created_at;
13+
14+
ALTER TABLE deepsearch_questions ENABLE TRIGGER USER;
15+
ALTER TABLE deepsearch_conversations ENABLE TRIGGER USER;
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
-- Drop view before adding back column
2+
DROP VIEW IF EXISTS codeintel_configuration_policies;
3+
4+
-- Restore column removed from lsif_configuration_policies
5+
ALTER TABLE lsif_configuration_policies
6+
ADD COLUMN IF NOT EXISTS embeddings_enabled boolean DEFAULT false NOT NULL;
7+
8+
-- Recreate view with embeddings_enabled column
9+
CREATE VIEW codeintel_configuration_policies WITH (security_invoker = TRUE) AS
10+
SELECT id,
11+
repository_id,
12+
name,
13+
type,
14+
pattern,
15+
retention_enabled,
16+
retention_duration_hours,
17+
retain_intermediate_commits,
18+
indexing_enabled,
19+
index_commit_max_age_hours,
20+
index_intermediate_commits,
21+
protected,
22+
repository_patterns,
23+
last_resolved_at,
24+
embeddings_enabled
25+
FROM lsif_configuration_policies;
26+
27+
-- Restore tables removed by the up migration
28+
CREATE TABLE IF NOT EXISTS context_detection_embedding_jobs (
29+
id serial PRIMARY KEY,
30+
state text DEFAULT 'queued'::text,
31+
failure_message text,
32+
queued_at timestamp with time zone DEFAULT now(),
33+
started_at timestamp with time zone,
34+
finished_at timestamp with time zone,
35+
process_after timestamp with time zone,
36+
num_resets integer DEFAULT 0 NOT NULL,
37+
num_failures integer DEFAULT 0 NOT NULL,
38+
last_heartbeat_at timestamp with time zone,
39+
execution_logs json[],
40+
worker_hostname text DEFAULT ''::text NOT NULL,
41+
cancel boolean DEFAULT false NOT NULL,
42+
tenant_id integer DEFAULT (current_setting('app.current_tenant'::text))::integer NOT NULL
43+
);
44+
45+
DROP POLICY IF EXISTS tenant_isolation_policy ON context_detection_embedding_jobs;
46+
CREATE POLICY tenant_isolation_policy ON context_detection_embedding_jobs
47+
USING ((( SELECT (current_setting('app.current_tenant'::text) = 'workertenant'::text)) OR (tenant_id = ( SELECT (NULLIF(current_setting('app.current_tenant'::text), 'workertenant'::text))::integer AS current_tenant))));
48+
ALTER TABLE context_detection_embedding_jobs ENABLE ROW LEVEL SECURITY;
49+
50+
CREATE TABLE IF NOT EXISTS repo_embedding_jobs (
51+
id serial PRIMARY KEY,
52+
state text DEFAULT 'queued'::text,
53+
failure_message text,
54+
queued_at timestamp with time zone DEFAULT now(),
55+
started_at timestamp with time zone,
56+
finished_at timestamp with time zone,
57+
process_after timestamp with time zone,
58+
num_resets integer DEFAULT 0 NOT NULL,
59+
num_failures integer DEFAULT 0 NOT NULL,
60+
last_heartbeat_at timestamp with time zone,
61+
execution_logs json[],
62+
worker_hostname text DEFAULT ''::text NOT NULL,
63+
cancel boolean DEFAULT false NOT NULL,
64+
repo_id integer NOT NULL,
65+
revision text NOT NULL,
66+
commit_id text NOT NULL,
67+
tenant_id integer DEFAULT (current_setting('app.current_tenant'::text))::integer NOT NULL
68+
);
69+
70+
CREATE INDEX IF NOT EXISTS repo_embedding_jobs_repo ON repo_embedding_jobs USING btree (repo_id, revision);
71+
72+
DROP POLICY IF EXISTS tenant_isolation_policy ON repo_embedding_jobs;
73+
CREATE POLICY tenant_isolation_policy ON repo_embedding_jobs
74+
USING ((( SELECT (current_setting('app.current_tenant'::text) = 'workertenant'::text)) OR (tenant_id = ( SELECT (NULLIF(current_setting('app.current_tenant'::text), 'workertenant'::text))::integer AS current_tenant))));
75+
ALTER TABLE repo_embedding_jobs ENABLE ROW LEVEL SECURITY;
76+
77+
CREATE TABLE IF NOT EXISTS repo_embedding_job_stats (
78+
job_id integer PRIMARY KEY REFERENCES repo_embedding_jobs(id) ON DELETE CASCADE DEFERRABLE,
79+
is_incremental boolean DEFAULT false NOT NULL,
80+
files_total integer DEFAULT 0 NOT NULL,
81+
files_embedded integer DEFAULT 0 NOT NULL,
82+
chunks_embedded integer DEFAULT 0 NOT NULL,
83+
files_excluded integer DEFAULT 0 NOT NULL,
84+
files_skipped jsonb DEFAULT '{}'::jsonb NOT NULL,
85+
bytes_embedded bigint DEFAULT 0 NOT NULL,
86+
tenant_id integer DEFAULT (current_setting('app.current_tenant'::text))::integer NOT NULL
87+
);
88+
89+
DROP POLICY IF EXISTS tenant_isolation_policy ON repo_embedding_job_stats;
90+
CREATE POLICY tenant_isolation_policy ON repo_embedding_job_stats
91+
USING (tenant_id = (SELECT current_setting('app.current_tenant'::text)::integer AS current_tenant));
92+
ALTER TABLE repo_embedding_job_stats ENABLE ROW LEVEL SECURITY;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: remove embeddings
2+
parents: [1755107655]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
DROP TABLE IF EXISTS context_detection_embedding_jobs;
2+
DROP TABLE IF EXISTS repo_embedding_job_stats;
3+
DROP TABLE IF EXISTS repo_embedding_jobs;
4+
5+
-- Drop view before removing column it depends on
6+
DROP VIEW IF EXISTS codeintel_configuration_policies;
7+
8+
ALTER TABLE lsif_configuration_policies
9+
DROP COLUMN IF EXISTS embeddings_enabled;
10+
11+
-- Recreate view without embeddings_enabled column
12+
CREATE VIEW codeintel_configuration_policies WITH (security_invoker = TRUE) AS
13+
SELECT id,
14+
repository_id,
15+
name,
16+
type,
17+
pattern,
18+
retention_enabled,
19+
retention_duration_hours,
20+
retain_intermediate_commits,
21+
indexing_enabled,
22+
index_commit_max_age_hours,
23+
index_intermediate_commits,
24+
protected,
25+
repository_patterns,
26+
last_resolved_at
27+
FROM lsif_configuration_policies;

0 commit comments

Comments
 (0)