Organization Labels Repository
Component Detail
Data Layer
low complexity
backend
0
Dependencies
2
Dependents
2
Entities
0
Integrations
Description
Data access layer for the organization_labels table, which stores key-value label pairs scoped per organization. Supports bulk upsert for terminology saves, key lookup by organization, and cache-aware reads to minimize database round trips during mobile client initialization.
organization-labels-repository
Responsibilities
- Read all label key-value pairs for a given organization
- Upsert individual and bulk label changes
- Delete or reset labels to system defaults
- Provide filtered reads by label category or key prefix
Interfaces
getLabelsByOrg(orgId)
getLabelsByCategory(orgId, category)
upsertLabel(orgId, key, value)
bulkUpsertLabels(orgId, labels)
resetLabelToDefault(orgId, key)
resetAllLabels(orgId)
getLabelValue(orgId, key)
deleteLabelOverride(orgId, key)
getLabelCategories(orgId)
Relationships
Dependents (2)
Components that depend on this component
Related Data Entities (2)
Data entities managed by this component