Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d36fc8a
feat: adding project-discovery-worker
ulemons Feb 9, 2026
a736f47
feat: add builder
ulemons Feb 9, 2026
1af6e97
refactor: rename service
ulemons Feb 9, 2026
3393718
fix: push lock file
ulemons Feb 9, 2026
637d42c
feat: add migrations (CM-950) (#3835)
ulemons Feb 11, 2026
3ea08f4
fix: add lf-criticality-score
ulemons Feb 20, 2026
7e6dc18
fix: add dependencies
ulemons Mar 24, 2026
82f29d9
feat: add DAL
ulemons Feb 10, 2026
69c9ab3
fix: updated the types as the current db
ulemons Mar 26, 2026
0ee8ef1
fix: push lock file
ulemons Feb 9, 2026
66019ea
feat: schedule structure
ulemons Feb 10, 2026
99e6320
fix: lint
ulemons Feb 10, 2026
e2c144f
fix: lint
ulemons Feb 10, 2026
f0123d6
fix: format
ulemons Feb 11, 2026
ad1e4cf
fix: lint
ulemons Feb 11, 2026
41c7a11
fix: update cron expression
ulemons Feb 11, 2026
151e228
feat: mode incremental
ulemons Feb 11, 2026
6a79d0e
fix: update readme
ulemons Feb 11, 2026
30313f8
fix: add new source
ulemons Feb 20, 2026
08f2d04
fix: add dependencies
ulemons Mar 24, 2026
cc9b4dc
refactor: fix eslint
ulemons Mar 24, 2026
a8062f5
fix: stream destroy
ulemons Mar 26, 2026
0383a3f
feat: add DAL
ulemons Feb 10, 2026
5dede3d
fix: updated the types as the current db
ulemons Mar 26, 2026
e9852f1
feat: add ossf data fetcher (CM-952) (#3839)
ulemons Mar 26, 2026
5263af2
feat: adding project-discovery-worker
ulemons Feb 9, 2026
ed854df
feat: add builder
ulemons Feb 9, 2026
9ccf8c0
refactor: rename service
ulemons Feb 9, 2026
6c2bd75
fix: push lock file
ulemons Feb 9, 2026
87bb540
feat: add migrations (CM-950) (#3835)
ulemons Feb 11, 2026
cd4ec1b
fix: add lf-criticality-score
ulemons Feb 20, 2026
b765959
fix: add dependencies
ulemons Mar 24, 2026
813ec9c
Merge branch 'feat/add-assf-data-fetcher' into feat/add-dal-automatic…
ulemons Mar 26, 2026
d56ceea
Merge branch 'feat/add-dal-automatic-project-discovery' into feat/add…
ulemons Mar 26, 2026
75cb4b6
fix: fake url as placeholder
ulemons Mar 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
DROP INDEX IF EXISTS "ix_evaluatedProjects_onboarded";
DROP INDEX IF EXISTS "ix_evaluatedProjects_evaluationScore";
DROP INDEX IF EXISTS "ix_evaluatedProjects_evaluationStatus";
DROP INDEX IF EXISTS "uix_evaluatedProjects_projectCatalogId";
DROP TABLE IF EXISTS "evaluatedProjects";

DROP INDEX IF EXISTS "ix_projectCatalog_syncedAt";
DROP INDEX IF EXISTS "ix_projectCatalog_lfCriticalityScore";
DROP INDEX IF EXISTS "ix_projectCatalog_ossfCriticalityScore";
DROP INDEX IF EXISTS "uix_projectCatalog_repoUrl";
DROP TABLE IF EXISTS "projectCatalog";
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
-- Project Catalog: candidate projects discovered from OSSF Criticality Score and other sources
CREATE TABLE IF NOT EXISTS "projectCatalog" (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
"projectSlug" VARCHAR(255) NOT NULL,
"repoName" VARCHAR(255) NOT NULL,
"repoUrl" VARCHAR(1024) NOT NULL,
"ossfCriticalityScore" DOUBLE PRECISION,
"lfCriticalityScore" DOUBLE PRECISION,
"syncedAt" TIMESTAMP WITH TIME ZONE DEFAULT NULL,
"createdAt" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);

CREATE UNIQUE INDEX "uix_projectCatalog_repoUrl" ON "projectCatalog" ("repoUrl");
CREATE INDEX "ix_projectCatalog_ossfCriticalityScore" ON "projectCatalog" ("ossfCriticalityScore" DESC NULLS LAST);
CREATE INDEX "ix_projectCatalog_lfCriticalityScore" ON "projectCatalog" ("lfCriticalityScore" DESC NULLS LAST);
CREATE INDEX "ix_projectCatalog_syncedAt" ON "projectCatalog" ("syncedAt");

-- Evaluated Projects: AI evaluation results linked to catalog entries
CREATE TABLE IF NOT EXISTS "evaluatedProjects" (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
"projectCatalogId" UUID NOT NULL REFERENCES "projectCatalog"(id) ON DELETE CASCADE,
"evaluationStatus" VARCHAR(50) NOT NULL DEFAULT 'pending',
"evaluationScore" DOUBLE PRECISION,
"evaluation" JSONB,
"evaluationReason" TEXT,
"evaluatedAt" TIMESTAMP WITH TIME ZONE,
"starsCount" INTEGER,
"forksCount" INTEGER,
"commitsCount" INTEGER,
"pullRequestsCount" INTEGER,
"issuesCount" INTEGER,
"onboarded" BOOLEAN NOT NULL DEFAULT FALSE,
"onboardedAt" TIMESTAMP WITH TIME ZONE,
"createdAt" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);

CREATE UNIQUE INDEX "uix_evaluatedProjects_projectCatalogId" ON "evaluatedProjects" ("projectCatalogId");
CREATE INDEX "ix_evaluatedProjects_evaluationStatus" ON "evaluatedProjects" ("evaluationStatus");
CREATE INDEX "ix_evaluatedProjects_evaluationScore" ON "evaluatedProjects" ("evaluationScore" DESC NULLS LAST);
CREATE INDEX "ix_evaluatedProjects_onboarded" ON "evaluatedProjects" ("onboarded");
Loading
Loading