fix(okf): OKFBackendAdapter carries an application's telemetry layout and a made-up author #75

Closed
opened 2026-11-19 08:08:38 +00:00 by crapougnax · 0 comments
Owner

Problem

OKFBackendAdapter special-cases a telemetry collection (path built from application-specific fields, JSON payload) and writes a made-up operator address as meta.created_by when a record has no author. Its tests, README, HOWTO and generated docs pages use the same application vocabulary. A generic package must not carry an application's vocabulary or data.

Fix

  • config.jsonCollections: collections kept as JSON records { meta, data } at {collection}/{uid}.json, no index; a subclass overrides getOKFPath() for another layout.
  • No invented author.
  • Data directory from OKF_DATA_DIR (STUDIO_DATA_DIR still read).
  • Neutral tests and docs.
## Problem `OKFBackendAdapter` special-cases a `telemetry` collection (path built from application-specific fields, JSON payload) and writes a made-up operator address as `meta.created_by` when a record has no author. Its tests, README, HOWTO and generated docs pages use the same application vocabulary. A generic package must not carry an application's vocabulary or data. ## Fix - `config.jsonCollections`: collections kept as JSON records `{ meta, data }` at `{collection}/{uid}.json`, no index; a subclass overrides `getOKFPath()` for another layout. - No invented author. - Data directory from `OKF_DATA_DIR` (`STUDIO_DATA_DIR` still read). - Neutral tests and docs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quatrain/core#75
No description provided.