-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Scan history and basic override configs (#583)
* wip: start roughing out granular scan concept * wip: api endpoint + section * change name, write ideas down * wip: save place, idek what I was doing * wip: scan history * got distracted, adjust table component * create wide switch component * wip: refactor options to use enums * wip: build out scanner logic * wip: operation handling * realized I need to redo some of this this only works as a 1 scan with 1 strategy, when really we probably want a check list of things you can do * super messy but works minimally * wip: build out ui * add locale for scan history sections * strip ansi from live logs * add migration * fix clippy lint * fix tests * fix generated type for scan options * improve coverage
- Loading branch information
1 parent
cf17ff6
commit c980ed8
Showing
86 changed files
with
2,604 additions
and
479 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
core/prisma/migrations/20250208194841_scan_history/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
-- AlterTable | ||
ALTER TABLE "libraries" ADD COLUMN "last_scanned_at" DATETIME; | ||
|
||
-- CreateTable | ||
CREATE TABLE "library_scan_records" ( | ||
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"options" BLOB, | ||
"timestamp" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"library_id" TEXT NOT NULL, | ||
"job_id" TEXT, | ||
CONSTRAINT "library_scan_records_library_id_fkey" FOREIGN KEY ("library_id") REFERENCES "libraries" ("id") ON DELETE CASCADE ON UPDATE CASCADE, | ||
CONSTRAINT "library_scan_records_job_id_fkey" FOREIGN KEY ("job_id") REFERENCES "jobs" ("id") ON DELETE CASCADE ON UPDATE CASCADE | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "library_scan_records_job_id_key" ON "library_scan_records"("job_id"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.