Member Junction
    Preparing search index...

    Counter seam — returns the CURRENT row count of a target entity (optionally filtered), so the data-volume trigger can compare today's count against the model's TrainingRowCount. Wraps a RunView count in production; tests inject a fake returning canned counts.

    interface IRowCounter {
        countRows(
            entityName: string,
            extraFilter?: string,
            contextUser?: UserInfo,
            provider?: IMetadataProvider,
        ): Promise<number>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Count rows of a target entity right now.

      Parameters

      • entityName: string

        the target entity (model's training-unit entity)

      • OptionalextraFilter: string

        optional filter narrowing the population (mirrors the pipeline scope)

      • OptionalcontextUser: UserInfo

        request user — required server-side for isolation/audit

      • Optionalprovider: IMetadataProvider

        optional provider for multi-provider correctness

      Returns Promise<number>