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 services
|
||||||
* @param config
|
* @param config
|
||||||
*/
|
*/
|
||||||
export const scheduleServices = async (
|
export const scheduleServices = (
|
||||||
services: IUnleashServices,
|
services: IUnleashServices,
|
||||||
config: IUnleashConfig,
|
config: IUnleashConfig,
|
||||||
): Promise<void> => {
|
): void => {
|
||||||
const {
|
const {
|
||||||
accountService,
|
accountService,
|
||||||
schedulerService,
|
schedulerService,
|
||||||
|
@ -182,6 +182,7 @@ import { getDbConfig } from '../test/e2e/helpers/database-config.js';
|
|||||||
import { testDbPrefix } from '../test/e2e/helpers/database-init.js';
|
import { testDbPrefix } from '../test/e2e/helpers/database-init.js';
|
||||||
import type { RequestHandler } from 'express';
|
import type { RequestHandler } from 'express';
|
||||||
import { UPDATE_REVISION } from './features/feature-toggle/configuration-revision-service.js';
|
import { UPDATE_REVISION } from './features/feature-toggle/configuration-revision-service.js';
|
||||||
|
import type { IFeatureUsageInfo } from './services/version-service.js';
|
||||||
|
|
||||||
export async function initialServiceSetup(
|
export async function initialServiceSetup(
|
||||||
{ authentication }: Pick<IUnleashConfig, 'authentication'>,
|
{ authentication }: Pick<IUnleashConfig, 'authentication'>,
|
||||||
@ -228,7 +229,7 @@ export async function createApp(
|
|||||||
await initialServiceSetup(config, services);
|
await initialServiceSetup(config, services);
|
||||||
|
|
||||||
if (!config.disableScheduler) {
|
if (!config.disableScheduler) {
|
||||||
await scheduleServices(services, config);
|
scheduleServices(services, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
const metricsMonitor = fm.createMetricsMonitor();
|
const metricsMonitor = fm.createMetricsMonitor();
|
||||||
@ -392,6 +393,7 @@ async function create(
|
|||||||
export {
|
export {
|
||||||
start,
|
start,
|
||||||
create,
|
create,
|
||||||
|
scheduleServices,
|
||||||
createDb,
|
createDb,
|
||||||
resetDb,
|
resetDb,
|
||||||
getDbConfig,
|
getDbConfig,
|
||||||
@ -538,6 +540,7 @@ export type {
|
|||||||
ExportImportService,
|
ExportImportService,
|
||||||
QueryOverride,
|
QueryOverride,
|
||||||
IUserPermission,
|
IUserPermission,
|
||||||
|
IFeatureUsageInfo,
|
||||||
};
|
};
|
||||||
export * from './openapi/index.js';
|
export * from './openapi/index.js';
|
||||||
export * from './types/index.js';
|
export * from './types/index.js';
|
||||||
|
Loading…
Reference in New Issue
Block a user