Remove redundant enterprise provider metadata

Drop source.provider/providerName, cached enterprise.provider, onboarding writes, CLI outputs, and the search index entry; legacy configs and token caches still parse. Add a compatibility test for stripping the old keys.
This commit is contained in:
gitea committed 2026-11-19 15:48:59 +08:00
1 parent 8adae54c54
commit 8d6b65d3d5
22 files changed
+113 -47

No files matched your search

-2
View File
@@ -94,7 +94,6 @@ export async function handleCorpOverview(
active: item.active ?? true,
environment: item.environment ?? "production",
sourceType: item.source.type,
provider: (item.source as any).provider ?? item.source.type,
staffId: item.source.staffId,
testCorpId: item.testCorpId,
prodCorpId: item.prodCorpId,
@@ -147,7 +146,6 @@ export async function handleCorpOverview(
active: corp.active ?? true,
environment: corp.environment ?? "production",
sourceType: corp.source.type,
provider: (corp.source as any).provider ?? corp.source.type,
staffId: corp.source.staffId,
testCorpId: corp.testCorpId,
prodCorpId: corp.prodCorpId