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)

      • extraFilter: string

        optional filter narrowing the population (mirrors the pipeline scope)

      • contextUser: UserInfo

        request user — required server-side for isolation/audit

      • provider: IMetadataProvider

        the provider the count goes through (required: no fallback to the global provider)

      Returns Promise<number>