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
@@ -23,7 +23,6 @@ export function formatSafeSourceDetail(source: SealSource) {
const key = source.appKey ?? source.key;
return {
type: "hose",
provider: source.provider ?? "hosecloud",
domain: source.domain,
corpId: source.corpId,
staffId: source.staffId,
@@ -40,7 +39,6 @@ export function formatSafeSourceDetail(source: SealSource) {
if (source.type === "seal") {
return {
type: "seal",
provider: source.provider ?? "seal",
tenantId: source.tenantId,
tenantSlug: source.tenantSlug,
tenantName: source.tenantName,