feat: move job providers to DB and suppress job-search link when none enabled #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Two linked changes to the job-search subsystem.
A — Guard: When no job providers are enabled in the DB, the "Start a job search" CTA link is suppressed from match emails entirely. No token is created.
B — DB providers: Move
JobSearch:Providersfrom appsettings/env vars into a newcvSearch.JobProvidersDB table, seeded with the existing three defaults (all disabled). The session-snapshot mechanism (ProviderConfigJson) is preserved unchanged.Why
Scope
In:
JobProviderEntity+AddJobProvidersmigration (cvSearchschema, seeded with 3 disabled defaults)CvSearchDbContext.JobProvidersDbSetIJobTokenService.CreateTokenAsyncreturnsTask<string?>— null when no enabled providersCreateJobSearchTokenResponse.TokenIdbecomesstring?JobTokenService.TriggerStartAsyncreads providers from DB, not from appsettingsJobSearchSettings.Providerslist removedCvMatcherController(api): guard link-building on non-null TokenIdCvSearchJobTask.GetProvidersfallback simplified to empty list + warningOut: Admin API/UI for provider management; changes to other JobSearchSettings fields.
Success criteria
cvSearch.JobProviderstable exists with 3 rows (all disabled)Time tracking
Started: 2026-05-29