fix(okf): remove the application-specific telemetry layout and author from the adapter #76
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core!76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/75-okf-adapter-neutral"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #75
What
telemetryspecial case ofOKFBackendAdapteris replaced by a generic option:config.jsonCollectionslists the collections kept as JSON records{ meta, data }at{collection}/{uid}.json, with no index. A subclass overridesgetOKFPath()for another layout (a test shows one directory per day).meta.created_byis no longer filled with a made-up address when the record has no author.OKF_DATA_DIR;STUDIO_DATA_DIRis still read so deployments keep their directory.docs/pages/packages/okfcopies use neutral examples.Breaking
A
telemetrycollection is no longer JSON by default. No consumer found in the workspace relies on it; an application that does declares it injsonCollectionsand overridesgetOKFPath().Tests
npx jest packages/okf: 76 passed (3 new, 1 removed).tsc --noEmitclean.🤖 Generated with Claude Code
OKFBackendAdapter special-cased a `telemetry` collection with a path built from application fields, and wrote a made-up operator address when a record had no author. A generic package must not carry an application's vocabulary or data. - `config.jsonCollections` names the collections kept as JSON records `{ meta, data }` at `{collection}/{uid}.json`, with no index; a subclass overrides `getOKFPath()` for another layout (one directory per day...). - No author is invented: `meta.created_by` is left out when unknown. - Data directory from `OKF_DATA_DIR`; `STUDIO_DATA_DIR` still read. - Tests, README, HOWTO and the generated docs pages use neutral examples. BREAKING CHANGE: a `telemetry` collection is no longer stored as JSON by default; declare it in `jsonCollections` and override `getOKFPath()` to keep a dated layout. Closes #75 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Merged into develop as part of #78.
Pull request closed