mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-21 13:47:39 +02:00
chore: now expose IFeatureUsageInfo to override telemetry checking (#10149)
Co-authored-by: Gastón Fournier <gaston@getunleash.io>
This commit is contained in:
parent
740990b0ed
commit
c165e87d74
@ -13,10 +13,10 @@ import type { IUnleashServices } from '../../services/index.js';
|
||||
* @param services
|
||||
* @param config
|
||||
*/
|
||||
export const scheduleServices = async (
|
||||
export const scheduleServices = (
|
||||
services: IUnleashServices,
|
||||
config: IUnleashConfig,
|
||||
): Promise<void> => {
|
||||
): void => {
|
||||
const {
|
||||
accountService,
|
||||
schedulerService,
|
||||
|
@ -182,6 +182,7 @@ import { getDbConfig } from '../test/e2e/helpers/database-config.js';
|
||||
import { testDbPrefix } from '../test/e2e/helpers/database-init.js';
|
||||
import type { RequestHandler } from 'express';
|
||||
import { UPDATE_REVISION } from './features/feature-toggle/configuration-revision-service.js';
|
||||
import type { IFeatureUsageInfo } from './services/version-service.js';
|
||||
|
||||
export async function initialServiceSetup(
|
||||
{ authentication }: Pick<IUnleashConfig, 'authentication'>,
|
||||
@ -228,7 +229,7 @@ export async function createApp(
|
||||
await initialServiceSetup(config, services);
|
||||
|
||||
if (!config.disableScheduler) {
|
||||
await scheduleServices(services, config);
|
||||
scheduleServices(services, config);
|
||||
}
|
||||
|
||||
const metricsMonitor = fm.createMetricsMonitor();
|
||||
@ -392,6 +393,7 @@ async function create(
|
||||
export {
|
||||
start,
|
||||
create,
|
||||
scheduleServices,
|
||||
createDb,
|
||||
resetDb,
|
||||
getDbConfig,
|
||||
@ -538,6 +540,7 @@ export type {
|
||||
ExportImportService,
|
||||
QueryOverride,
|
||||
IUserPermission,
|
||||
IFeatureUsageInfo,
|
||||
};
|
||||
export * from './openapi/index.js';
|
||||
export * from './types/index.js';
|
||||
|
Loading…
Reference in New Issue
Block a user