Repository navigation
Description
Product stack rank 2 of 37 · roadmap #1008 · priority P0 · release mvp
Customer outcome
A customer with an org-admin API key can create a dataset, configure its supported resolution model, map their own columns, validate and publish configuration, and start using it without a Salesforce connection or an operator editing YAML.
Existing foundation and boundary
Dataset CRUD, config-version creation/read/publish, source mappings and config validation already exist in er-server; reuse them. This ticket productizes and proves that workflow through the tenant-public contract from #857. It does not require a new configuration service or the advanced visual rule builder in #515. Source-independent mapping is not a promise of arbitrary entity schemas; audit current person/account model support and document limitations. Model generalization remains #547.
Acceptance
- Public operations cover dataset lifecycle and draft → validate → publish, with role and org/dataset isolation tests.
- Configure source record keys, change timestamps, column mappings, supported comparison/blocking settings and survivorship using public fields only.
- Invalid types, unsupported model fields, duplicate/missing mappings and unsafe configuration produce actionable errors before a run is queued; document the allowed customer configuration surface.
- A published config version is traceable from the delivery/run and result; edits cannot silently alter an already accepted run's meaning.
- A runnable non-Salesforce example creates a dataset and maps customer-defined column names without SQL or operator access.
- Document supported model boundaries and config rollback/republication behavior; run
make checkand applicable integration gates.
Depends on the public schema, operation and key work in #857. Can proceed alongside ingestion work. Estimate: unset pending a route-level gap audit; do not reuse a greenfield parity estimate.
Activity
feat(api): tenant-admin dataset configuration — validate, dataset-sco…