Infrastructure low complexity Shared Component backend
0
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Utility used by the Auto-Approval Rule Engine to verify that the auto_approval_rules feature flag is enabled for the submitting organization before applying any evaluation logic. Reads from the feature_flags table and caches results per request to avoid redundant queries.

Feature: Auto-Approval Rules

feature-flag-checker

Responsibilities

  • Check whether a named feature flag is enabled for a given organization
  • Cache flag lookups within a single request lifecycle
  • Return false by default for unknown flag names

Interfaces

isEnabled(orgId: string, flagName: string): Promise<boolean>
getOrgFlags(orgId: string): Promise<Record<string, boolean>>

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component