mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
backfill fix, get most recent git URL to handle old ssh links (#150)
* backfill fix, get most recent git URL to handle old ssh links * reduce the changes
This commit is contained in:
parent
a2a9c31f95
commit
e93daaf9ec
1 changed files with 3 additions and 2 deletions
|
|
@ -278,7 +278,8 @@ export const getRepositoryUsage = async ({
|
|||
query: `
|
||||
SELECT
|
||||
repositoryName,
|
||||
any(repositoryUrl) as repositoryUrl,
|
||||
-- Get most recent timestamp to backfill old URL
|
||||
argMax(repositoryUrl, timestamp) as repositoryUrl,
|
||||
SUM(CASE WHEN type = '${TelemetryEventName.TASK_CREATED}' THEN 1 ELSE 0 END) AS tasksStarted,
|
||||
SUM(CASE WHEN type = '${TelemetryEventName.TASK_COMPLETED}' THEN 1 ELSE 0 END) AS tasksCompleted,
|
||||
SUM(CASE WHEN type = '${TelemetryEventName.LLM_COMPLETION}' THEN ${tokenSumSql()} ELSE 0 END) AS tokens,
|
||||
|
|
@ -484,7 +485,7 @@ export const getTasks = async ({
|
|||
SUM(CASE WHEN e.type = 'LLM Completion' THEN COALESCE(e.cost, 0) ELSE 0 END) AS cost,
|
||||
MIN(e.timestamp) AS timestamp,
|
||||
any(fm.title) AS title,
|
||||
any(e.repositoryUrl) AS repositoryUrl,
|
||||
argMax(e.repositoryUrl, e.timestamp) AS repositoryUrl,
|
||||
any(e.repositoryName) AS repositoryName,
|
||||
any(e.defaultBranch) AS defaultBranch
|
||||
FROM events e
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue