Skip to content

Commit

Permalink
Fix customized simplifiedCustomDataRetriever injection. (#23547)
Browse files Browse the repository at this point in the history
## Description

Fix customized simplifiedCustomDataRetriever injection, as a follow-up
of PR #23354
  • Loading branch information
zhajie authored Jan 15, 2025
1 parent aae275e commit 655434e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/historian/packages/historian-base/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export function create(
revokedTokenChecker,
denyList,
ephemeralDocumentTTLSec,
simplifiedCustomDataRetriever,
);
app.use(apiRoutes.git.blobs);
app.use(apiRoutes.git.refs);
Expand Down
5 changes: 5 additions & 0 deletions server/historian/packages/historian-base/src/runnerFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ export class HistorianResourcesFactory implements core.IResourcesFactory<Histori
tenantManager,
gitCache,
);
const simplifiedCustomDataRetriever =
customizations?.simplifiedCustomDataRetriever ??
new historianServices.SimplifiedCustomDataRetriever();

// Token revocation
const revokedTokenChecker: core.IRevokedTokenChecker | undefined =
Expand All @@ -232,6 +235,7 @@ export class HistorianResourcesFactory implements core.IResourcesFactory<Histori
denyList,
ephemeralDocumentTTLSec,
customizations?.readinessCheck,
simplifiedCustomDataRetriever,
);
}
}
Expand All @@ -253,6 +257,7 @@ export class HistorianRunnerFactory implements core.IRunnerFactory<HistorianReso
resources.denyList,
resources.ephemeralDocumentTTLSec,
resources.readinessCheck,
resources.simplifiedCustomDataRetriever,
);
}
}

0 comments on commit 655434e

Please sign in to comment.