History and timeline API reference
Section titled “History and timeline API reference”This page is for integrators and developers who read a record’s history or a timeline feed through the API, pin or publish posts from another system, or need to know exactly how history is recorded and filtered.
OSOS exposes two distinct but related concepts that both answer “what happened to this record, and when”:
- Entry History — the per-record audit/activity feed for a single data entry (field changes, workflow actions, owner reassignments, SLA breaches, trigger runs, button clicks, create/archive). Served by the data-service.
- Timeline — a curated public/internal feed of posts generated from data entries via a per-entity “timeline contribution” mapping. Posts can be pinned and published/unpublished (manually, on a schedule, or by workflow) and carry a social layer (reactions and comments). Served by the timeline-service.
This page documents both from a builder/developer perspective: the HTTP endpoints, the shape of what you get back, how records are recorded, and the constraints that govern visibility.
Scope note: this page focuses on the read APIs, the record model, and the recording pipeline. The workflow engine that produces
_metaWorkflowHistoryand the trigger engine that producesTriggerHistorydocuments live outside these two services; only their contribution to the history feed is described here.
Part 1 — Entry History (data-service)
Section titled “Part 1 — Entry History (data-service)”Concept
Section titled “Concept”Every data entry accumulates a history feed. Unlike a single collection, the feed returned by the history endpoint is assembled at read time from several sources, each mapped into a common DataEntryHistory shape:
| Source | Origin | History type(s) produced |
|---|---|---|
| Field-change records | data_entry_history collection (persisted on create/update) | Update |
| Owner reassignment records | data_entry_history collection | ReassignOwner |
| Button-click records | data_entry_history collection | ButtonClickedHistory |
| Workflow step actions | entry’s value._metaWorkflowHistory (computed) | WorkflowAction |
| Create / archive | entry’s stateHistory (computed) | Create, Archive |
| SLA overdue events | SLA service | SlaOverdue |
| Trigger runs | trigger_history collection (computed) | TriggerHistory |
Persisted history records live in a dedicated MongoDB collection via DataEntryHistoryRepository; the workflow, state, and SLA slices are derived on the fly from the entry document and other services and merged in by the controller.
The DataEntryHistory record
Section titled “The DataEntryHistory record”Source: models/data-entry/data-entry-history.model.ts.
| Field | Type | Notes |
|---|---|---|
id | string | generated |
specificationVersion | number | currently 1 |
relatedTo | ReferenceProperty | {dataEntity, dataEntry} the record belongs to |
historyType | HistoryTypeEnum (number) | see enum below |
actionInfo | ActionInfo | who/when — {doneAt, doneBy, delegatee?} |
additionalData | polymorphic | shape depends on historyType (see below) |
isValueResolved | boolean | true once references were resolved & denormalized |
isInvalid | boolean | null | entry was in an invalid state at the time |
invalidReason | DataEntryInvalidReasonEnum | null | why it was invalid |
ActionInfo (action-info.model.ts): doneAt (ISO string, required), doneBy (ReferenceProperty, required), delegatee (nullable reference — present when the action was performed on behalf of another user).
HistoryTypeEnum
Section titled “HistoryTypeEnum”Source: packages/osos-shared/src/models/enums.ts. These are numeric enum values — the API returns the number, not the name:
| Value | Name | Meaning |
|---|---|---|
| 0 | Update | one or more field values changed |
| 1 | WorkflowAction | a workflow step was executed |
| 2 | StateChange | (defined; not emitted by the history assembler) |
| 3 | ReassignOwner | a workflow step owner was changed |
| 4 | ButtonClickedHistory | a system button was clicked |
| 5 | TriggerHistory | a trigger/automation ran |
| 6 | Create | the entry became Active |
| 7 | Archive | the entry was archived |
| 8 | SlaOverdue | an SLA due date was breached |
| 9 | PermanentDelete | (defined) |
| 10 | Restore | (defined) |
The
stateslice only ever emitsCreateandArchivetoday (seegetDataEntryStateHistory— it mapsnewState === Active→Create, otherwise →Archive).PermanentDelete/Restoreare defined in the enum but not produced by the current assembler.
additionalData shapes by type
Section titled “additionalData shapes by type”Update→UpdateAdditionalData[]. Each element is a JSON-diff operation:On first write a field typically has only{"op": "replace", // just-diff Operation: add | replace | remove"path": ["field", "sub"], // path segments into the entry value"value": { "old": <any>, "new": <any> }}new(noold).ReassignOwner→ReassignOwnerChanges:{workflowId, stepId, oldOwner, newOwner, originalOwner?, note?, permanentChange?}.ButtonClickedHistory→{buttonId, buttonName}.TriggerHistory→TriggerHistoryDto(see Trigger history).SlaOverdue→{stepId, dueDate, receivedDate, status, stepName}.WorkflowAction→ the storedStepHistoryspread plusstepNameand aworkflowContextobject{workflowId, instanceId, parentInstanceId, isSubWorkflow}.
Multilingual field changes in the history feed Since 1.8
Section titled “Multilingual field changes in the history feed Since 1.8”When a field is multilingual, an edit that touches only one of its languages now
appears in the entry’s history as a per-language line — label: old → new — for
each language that actually changed.
Previously both sides of the diff were resolved to whichever language the UI was
set to before being displayed. Editing only the Arabic value and then reading the
history with the interface in English collapsed both sides to the same, unchanged
English text, so the change looked empty even though the edit had been recorded.
The stored history record always carried the full per-language before/after
values (see the Update shape above) — only the rendering was wrong.
What the history card shows now:
- Only the languages that actually changed are listed. A language whose value is identical on both sides is skipped, and blank counts as the same as missing.
- Languages follow the space’s configured language order, with any language outside that list appended at the end.
- The language’s label is shown in the current UI language, the values are not — each value is displayed in its own language, untranslated. So the same edit reads identically whatever language you view the history in.
- A language added during the edit renders as a clean addition — the new value only, with no arrow and no “old” side — and a language cleared renders as a removal. This follows each language’s own before/after state rather than the field’s overall change type, so adding one language while editing another is rendered correctly on both lines.
How history is recorded
Section titled “How history is recorded”History is written reactively, off the service bus — controllers do not write history inline. Handlers under handlers/events/data-entries/history/ subscribe to domain events:
| Event | Handler | Action |
|---|---|---|
DataEntryCreatedEvent | AddHistoryOnDataEntryCreatedHandler | createHistoryForValueChanges(...) using creationInfo.doneAt |
DataEntryUpdatedEvent | AddHistoryOnDataEntryUpdatedHandler | createHistoryForValueChanges(...) using updateInfo.doneAt |
WorkflowStepOwnerChangedEvent | AddHistoryOnWorkflowStepOwnerChangedEventHandler | createHistoryForOwnerChanges(...) |
DataEntryDeletedEvent | DeleteHistoryOnDataEntryDeletedHandler | deleteHistoryForDataEntry(entryId) |
| (entries permanently deleted) | delete-history-on-data-entries-permanently-deleted.handler.ts | bulk deleteHistoryForDataEntry |
Button clicks are written from system-button.controller.ts via createHistoryForButtonClicked(...) (using Utils.dateTime() as doneAt).
Correction — Since 1.8. A button clicked during an active delegation is now correctly attributed to the delegate who actually clicked it, not the delegator. The controller already resolved the real actor for the bus event it publishes, but was not passing that on to the history write, so every
ButtonClickedHistoryrecord stampedactionInfo.delegateeempty — the history showed only the delegating user, with no way to tell who had actually clicked the button. Button-click history now stampsdelegateethe same way value-change and owner-reassignment history already do.
Key recording behaviors (data-entry-history.service.ts):
- Update / Create records are skipped when the diff is empty — both the handler and
createHistoryForValueChangesearly-return ifvalueDiffhas no length, so a no-op save produces no history row. - The
delegateeis threaded through from the message’sstickyAttributes.delegateeId, so history captures “X acting for Y”. isInvalid/invalidReasonare copied from the entry onto the Update record, so the feed reflects whether the entry was valid at that revision.- References are resolved at write time.
createHistoryForValueChanges,...ForOwnerChanges, and...ForButtonClickedall callresolveHistoryValues(...)and persist withisValueResolved: true, so reference labels (user names, collection item titles) are denormalized into the stored record and don’t need re-resolution on read. - Duplicate protection. Inserts that hit a MongoDB duplicate-key error (
code === 11000) are logged and swallowed rather than thrown, so a re-delivered bus message doesn’t crash the handler.
resolveHistoryValues walks actionInfo.doneBy / delegatee and the additionalData values, collecting ReferenceProperty targets and UUID collection-item ids, then batch-loads them (DataEntityIndexRepository for references, DataCollectionsRepository + the entity’s internalCollections for collection items) and rewrites each into a ReferencePropertyWithResolved carrying a _resolved label. Already-resolved values are left untouched.
Recording is asynchronous. Entry history is produced by bus handlers reacting to
DataEntry*Events, not synchronously in the write request — expect eventual consistency between the write response and the history read.
Reading entry history (v1)
Section titled “Reading entry history (v1)”GET /v1/entities/{entity}/entries/{id}/historyReturns the complete assembled feed for one entry (no pagination). The controller (findEntryHistoryById) merges, in order:
- Persisted history (
getEntryHistory(id)). - Workflow history (
getEntryWorkflowHistory). - Trigger history — only when the caller is a system viewer with no view, or the active view has
entriesConfiguration.showTriggerHistory.enabled. - State (create/archive) history — only when allowed to see state history.
- SLA overdue history.
Then it sorts ascending by actionInfo.doneAt, resolves any unresolved records, and masks sensitive fields before returning.
Reading entry history (v2, paginated)
Section titled “Reading entry history (v2, paginated)”GET /v2/entities/{entity}/entries/{id}/history?lastTimeStamp=<ISO>Long-standing (findEntryHistoryByIdV2). The v2 endpoint adds keyset pagination and is the one to build against for large feeds:
- Page size is fixed at
limit = 12(server constant; not client-settable). lastTimeStampis the cursor: pass theactionInfo.doneAtof the last item you received to get the next page. Every slice filtersdoneAt < lastTimeStamp.- Results are sorted descending by
doneAt(newest first). - Timestamp-tie handling: after slicing to
limit, the loop extends the limit while the record just past the boundary shares the exactdoneAtof the last kept record — so records with identical timestamps are never split across a page boundary. - Preview mode: when the request is in preview mode the endpoint returns fake history (real entity/workflow ids, fake content) via the fake generator.
Both v1 and v2 apply the same view-based filtering, resolution, and sensitive masking described below. Prefer v2 (lastTimeStamp cursor, fixed page size 12, doneAt DESC) for large entry histories.
Visibility and view filtering
Section titled “Visibility and view filtering”The view designer’s history switches map to these keys: Entry history =
entriesConfiguration.history.enabled, Changes = showChanges, Changer =
showChanger, Reaction history = showTriggerHistory.enabled, Reaction history
details = showTriggerHistory.showTriggerDetails, Workflow history =
showWorkflowHistory.enabled, Display step owner = showStepOwners (All =
AllOwners, Owned by User = owner-scoped).
When the request carries a data view (end-user context), history is filtered by clearEntryHistoryAgainstView(...) and related helpers:
- History off entirely. If
view.entriesConfiguration.historyis missing orhistory.enabled === false, the endpoint returns[]. - Field-level filtering.
Updaterecords are reduced to only the fields the view exposes (entriesConfiguration.fields) and that are not hidden. Hidden fields are evaluated per record, honoring conditionalhidden.expression(evaluated viaExpressionService; a failing expression is treated as not hidden, i.e.false)._metaOrder.valueis always allowed. An Update record whose diffs are all filtered out is dropped. showChanges/showChanger. Withhistory.enabledtrue butshowChanges === false, Update records keep the event but dropadditionalData(you see that something changed, not what). WithshowChanger === false,actionInfois reduced to justdoneAt(the actor is hidden).- Workflow history gating.
showWorkflowHistory.enabledcontrols whetherReassignOwner/WorkflowActionrecords appear at all. Owner visibility is further gated byshowStepOwners:AllOwners→ everyone’s steps visible.- Otherwise a record is only shown/attributed if the current user (or one of their groups) is among the step’s
executedBy/owner/originalOwner(forWorkflowAction) ornewOwner/oldOwner(forReassignOwner). When not allowed,executedBy,owner,originalOwner, andactionInfo.doneByare stripped from the record rather than the record being removed.
- State history gating. Create/archive history is included only when there is no view, or the view allows archived entries, or “view as admin” is enabled.
- Trigger history gating. As above — requires a system viewer (no view) or
showTriggerHistory.enabled;showTriggerDetailscontrols whether the trigger input/output/error payload is included.
Sensitive-field masking
Section titled “Sensitive-field masking”Since 1.8 — maskSensitiveHistoryFields(...) (AUDIT_SENSITIVE_MASK, buildSensitiveFieldScope).
This runs on every history read (v1 and v2), after resolution, as the last step before returning. Behavior:
- Builds the set of
fullNormalizedNames for fields withoptions.sensitive === trueon the entity. If none, it’s a no-op fast path. - For each
Updaterecord’s diff whosepathmatches a sensitive field, theoldandnewvalues are replaced withAUDIT_SENSITIVE_MASK— unless the requesting user holds a matching sensitive-field grant (SensitiveFieldsService.canAccessSensitiveFieldagainst the field’s module/entity/path scope). - Masking is applied per-property: a first-write diff with only
newdoes not gain a spurious maskedold. - Non-
Updaterecords are returned unchanged.
The code treats this as unconditional and permanent for the audit trail: once a value is written to history it is shown masked to anyone without the grant, so historical sensitive values cannot leak through the history API.
Trigger history
Section titled “Trigger history”Source: trigger-history.service.ts, model trigger-history.model.ts. Trigger history is Long-standing (TriggerHistoryService).
Trigger runs are persisted as TriggerHistory documents (trigger_history collection) with {triggerId, spaceId, eventName, relatedTo, triggerName, timestamp, doneBy, delegatee?, result: ActionResult[]}.
getTriggersHistory(entityId, entryId, showDetails?, limit?, lastTimeStamp?) queries with an OR condition so a run appears on an entry when either:
relatedTo.dataEntry === entryId(the entry that triggered it), orresult.effectedEntities.entry.dataEntry === entryId(an entry the trigger affected).
Each stored run may contain multiple result action results; the service flattenDeeps them into one DataEntryHistory per action result with historyType = TriggerHistory and an additionalData of TriggerHistoryDto:
TriggerHistoryDto field | Notes |
|---|---|
triggerId, triggerName | which trigger |
eventType | the event that fired it (eventName) |
actionType | the action kind that ran |
success | per-action success flag |
details.actionName | always present |
details.{eventName, entity, entry, startTimeStamp, input, output, error, doneBy} | only when showDetails is true |
showDetails is driven by the view’s showTriggerHistory.showTriggerDetails (system viewers with no view get details = true). limit + lastTimeStamp mirror the v2 pagination contract (timestamp DESC, timestamp < lastTimeStamp).
Derived slices: state, workflow, SLA
Section titled “Derived slices: state, workflow, SLA”These are computed at read time from the entry document / other services, not stored in the history collection:
- State (
getDataEntryStateHistory) — mapsentry.stateHistoryentries withnewState > 0intoCreate(Active) orArchiverecords, usingchangedAt/changedBy/delegatee. - Workflow (
getEntryWorkflowHistory) — iterates all ofentry.value._metaWorkflowHistory(main workflow and every sub-workflow), resolving eachstepHistoryinto aWorkflowActionrecord. Each carries aworkflowContext{workflowId, instanceId, parentInstanceId, isSubWorkflow}. Since 1.4 the assembler processes all workflow histories rather than only the active one, so sub-workflow steps appear in the feed. Sorting is by timestamp descending, with a tie-break that places automatic sub-workflow transitions (StepType.SubWorkflowStep) before user actions at the same instant. - SLA (
getEntryOverdueSlaHistory) — pulls overdue records fromSlaServicefor the entry, attaches the step name from the active workflow, and emitsSlaOverduerecords attributed to the system user. Long-standing.
All three accept optional limit / lastTimeStamp for the v2 path. Deleting an entry deletes its persisted history (deleteHistoryForDataEntry on delete / permanent-delete events); these derived slices disappear with the underlying entry/records.
Part 2 — Timeline (timeline-service)
Section titled “Part 2 — Timeline (timeline-service)”Concept
Section titled “Concept”A timeline is an activity feed of posts. A post is itself stored as a data entry under a dedicated Posts entity (Constants.POSTS_ENTITY_ID), and is produced automatically from a source entry whenever that entry’s entity has a timeline contribution configured. You therefore don’t create posts by hand — you define the timeline settings on the entity, and the system keeps posts in sync as an event-sourced read model. The mapping (which field becomes the title, the description, the attributes, the category/icon, publish & pin config) is the “timeline contribution options” for the entity.
Recording is event-driven, symmetric with entry history:
| Source event | Timeline handler | Effect |
|---|---|---|
DataEntryCreatedEvent | PostDataEntryCreatedHandler → TimelineService.submitPost | build & create a Post |
DataEntryUpdatedEvent | update handler → TimelineService.updatePost | rebuild the Post from the entry |
| entry archived/deleted | archive/delete handlers → archivePost / deletePost | remove/retire the Post |
| workflow step reached | trigger-workflow-step-reached-event.handler.ts | drive workflow-based publish state |
submitPost / updatePost build the Post via buildPost(...) and dispatch a CreateDataEntryCommand / UpdateDataEntryCommand on the bus (with skipValidation = true), so posts flow through the same data-service write path as any entry — which is also why a post gets its own entry history (Part 1) and participates in the timeline feed. Do not confuse the entry-history API (data-service) with the timeline post API (timeline-service).
Activating a timeline (designer)
Section titled “Activating a timeline (designer)”A timeline is attached to an existing entity. Open the entity, choose Edit Entity (the arrow next to Add Entry), and pick Timeline from the top bar (Details – Interactions – Structure – Workflow – Timeline). Add the timeline from the middle of the screen; it is seeded with a default name and icon taken from the entity, both of which you can change.
Once you save the timeline settings and enable them on the entity, the system begins syncing posts with the entity’s entries automatically: posts are created for new entries, updated when an entry changes, and archived or deleted when the entry is archived or deleted. Disabling the timeline on an entity removes its associated settings.
Post templates
Section titled “Post templates”Each mapped field is bound to its value source through one of the following MappingTypeEnum mapping types: Fixed (one literal value for all posts), Variable / entry-mapped (EntryMapping — takes the value from a path in the source entry value), or Hidden (Hidden — does not appear in the post). Mandatory fields accept only Fixed or Variable — there is no Hidden option, because the user is required to supply a value.
In the timeline builder you choose the template under Post Configuration: open Post Template and select General Post or Calender Post (the product’s spelling of the seeded category title). The set of fields exposed on the post changes with the selected template. The mapping Type options in the designer are Field (= EntryMapping), Fixed and Hidden.
Every tenant has two post categories — General and Calendar (Events) (see Seeded post categories for how they are created):
- General Posts expose Title, Description, and Attachments.
- Calendar Posts additionally expose Start Date & Time, End Date & Time, a Cover image, and a Location (a physical place or a link for a virtual event).
Note on templates: currently only the General Post template is fully rendered in the web UI; the Calendar post category is defined in the model but does not yet have a dedicated display template.
Seeded post categories Since 1.10
Section titled “Seeded post categories Since 1.10”The timeline’s implicit Posts and Post Categories entities and the two default categories are now created per tenant by data-service’s migration chain (1.10.0-a21-seed-timeline-post-categories, OP#26481), which also runs for a tenant while it is being onboarded. Before 1.10 they came from a boot-time seed in timeline-service that called data-service over HTTP; an onboarding tenant refused those calls, so a tenant onboarded onto a multi-tenant cell could end up with no post categories at all.
What this means for integrators:
- The seed creates only what is missing (matched on the entities’ normalized names and the categories’ fixed ids), so re-running it on a seeded tenant writes nothing.
- The category ids are fixed and identical in every tenant — reference them freely, but do not create categories with those ids yourself.
- timeline-service no longer seeds anything at boot. A future change to these code-owned definitions ships as a data-service migration rather than as a restart.
Reading the feed
Section titled “Reading the feed”All timeline endpoints require authentication (Auth2AuthenticationStrategyName). Source: timeline.controller.ts.
| Method & path | Purpose | Authorization voters |
|---|---|---|
GET /v1/posts | list posts in the feed | canShowPostVoter, systemViewerVoter |
GET /v1/posts/{id} | single post | canShowPostVoter, systemViewerVoter |
GET /v1/posts/count | count posts | canShowPostVoter, systemViewerVoter |
GET /v1/posts/entities/{entityId} | posts for a specific source entity | denyEndUserVoter, canViewPostEntityVoter |
GET /v1/posts/entities/{entityId}/count | count for a source entity | denyEndUserVoter, canViewPostEntityVoter |
PATCH /v1/posts/{id}/pin | pin / unpin | canPinPostVoter, canEditEntityVoter |
PATCH /v1/posts/{id}/publish | publish / unpublish / schedule | canPublishPostVoter, canEditEntityVoter |
GET /v1/posts accepts a standard LoopBack Filter<Post> (query param filter). The controller merges in audience filters automatically via TimelineService.additionalFilters():
- always
state === Active, plus an OR over:value.anonymous.enabled === true(public posts), or- authenticated + not restricted, or
- authenticated + restricted and the current user (or one of their groups) is listed in
value.authenticated.entitledEntries.
So the feed is inherently audience-scoped: an anonymous caller sees only anonymous posts; an authenticated caller additionally sees unrestricted and entitled-restricted posts. When a view is present, EndUserService.postFilter is merged in as well, and if the view’s timeline display does not allowPublishPost, the publishState.workflow.currentStep(Name) fields are stripped from each returned post.
GET /v1/posts/entities/{entityId} is an admin/builder view (end users are denied): it filters by value.reference.dataEntity === entityId.
Preview mode: every feed/count/by-entity endpoint short-circuits to fake posts (FakePostGeneratorService) when previewMode is set, and the count endpoints always agree with the corresponding list endpoint by counting the same fake feed.
The Post model
Section titled “The Post model”Source: post.model.ts. A Post mirrors a data entry (id, specificationVersion, dataEntity, value, creationInfo, updateInfo, state). The interesting content is in value (PostDataEntryValue), notably:
title,description,attributes— mapped from the source entry per the contribution’sMappingTypeEnum(Fixed= literal value,EntryMapping= path into the source entry value,Hidden= null).reference{dataEntity, dataEntry}— back-pointer to the source entry.module,timelineConfig{category, title, icon, publishConfig, pinnedConfig}.anonymous,authenticated— audience config (drivesadditionalFilters).pinned(bool) +pinnedState,published(bool) +publishState.publishInfo/unpublishInfo,pinnedInfo/unpinnedInfo—ActionInfostamps of the last publish/pin action.
Pinning
Section titled “Pinning”PATCH /v1/posts/{id}/pinBody: { "pinned": true | false }Constraints enforced by the controller:
pinnedis required (missingRequired('pinned')otherwise).- If the contribution defines an automatic
pinnedConfig.pinnedDate, you cannot manually pin (UnablePinnedPostManuallyException); likewise a configuredunpinnedDateblocks manual unpin (UnableUnPinnedManuallyPostException). - Setting
pinnedto the value it already has throwsDuplicatePinnedStatusPostException.
On success it calls TimelineService.handlePinnedPost(spaceId, entry, manual, {userId, isPinned}), which recomputes pinnedState, sets pinned, stamps pinnedInfo/unpinnedInfo, and persists via an UpdateDataEntryCommand.
Publishing and scheduling
Section titled “Publishing and scheduling”In the designer’s Publish section, Steps to publish at sets the workflow
publish steps (publishStepIds); leaving it empty keeps publishConfig.manual
on. Publish Date / Unpublish Date map date fields of the source entry. The
designer’s hints state the combined rule: with manual publishing “the post will be
published when you click publish and the mapped publish date is elapsed”; with
workflow publishing “when post reaches publish step and the mapped publish date is
elapsed” (calculatePublishedState). Automatic pin/unpin dates (pinnedConfig) have
no control in the designer.
PATCH /v1/posts/{id}/publishBody (one of): { "publish": true | false } // manual publish/unpublish { "publishDate": "<ISO>" } // schedule publish { "unpublishDate": "<ISO>" } // schedule unpublishA post moves through several statuses: draft → published → unpublished. The system supports three ways to control publishing, tracked in publishState and resolved by getPostPublishState: manual, scheduled {publishDate, unpublishDate, published}, and workflow {currentStep, currentStepName, published} — for example, publishing a post automatically when a workflow reaches a manager-approval step.
Rules (from publishPost + manualPublishValidations):
publishDateandunpublishDateare mutually exclusive in one request (TimelinePublishDateConflictException).- If not scheduled,
publishis required. - Manual publish/unpublish requires
timelineConfig.publishConfig.manualon the contribution, elsePublishNotAllowedException/UnpublishNotAllowedException. - You cannot schedule a publish/unpublish for a field that is already driven by a configured
publishDate/unpublishDatemapping (UnableScheduleManualPublishUnpublishPostException). - Scheduled dates must be in the future; if both are given,
publishDate < unpublishDate. - Re-publishing an already-published post (or re-unpublishing an unpublished one) is rejected.
Scheduling dispatches a ScheduleJobCommand (JobName.ScheduleJob) with id publish-<postId> / unpublish-<postId> for the future date; the effective published boolean is derived by calculatePublishedState(...). Pin scheduling works analogously (pinned-<postId> / unpinned-<postId>), though the manual-pin branch of getPostPinnedState is currently commented out — pin scheduling is date-driven. Workflow-driven publishing is set from the workflow-step-reached handler, which maps a reached step into handlePublishPost(..., workflow, {currentStep, currentStepName, isPublish}).
Reactions and comments
Section titled “Reactions and comments”Posts carry a social layer on top of the feed:
- Reactions — emoji reactions on a post, with a reaction count and the current user’s own reaction; one reaction is stored per user. The web UI offers the full emoji palette, whereas the mobile app is currently limited to a single reaction (
like). - Comments — posts can be commented on, and a comment count is shown with the post. Comments support @mentions (a search box picks a person, and mentioned users are notified) and per-comment audience scoping. Comment attachment types are configurable by an administrator per view (with a default size limit of roughly 1MB) rather than a fixed list of file types.
Important distinction: timeline reactions here are social (emoji) and are entirely different from “reactions” in the automation sense (event-driven triggers and actions).
Preview mode
Section titled “Preview mode”When designing an entity or a view, you can inspect the timeline in preview mode, where the system shows a deterministic fabricated feed (sample posts with placeholder content) instead of real data, so you can preview the feed before publishing. This mirrors the preview behavior of the entry-history endpoints, which return fake-but-shaped history under the same flag.
Cross-cutting notes for developers
Section titled “Cross-cutting notes for developers”- Numeric enums on the wire.
historyTypeand entrystateare serialized as numbers. Map them client-side (HistoryTypeEnum,DataEntityStateEnum). - Two different “history” for a post. A Post is a data entry, so it has its own
.../entries/{id}/historyfeed and it participates in the timeline feed. Keep the two APIs distinct. - Recording is asynchronous. Entry history and timeline posts are produced by bus handlers reacting to
DataEntry*Events, not synchronously in the write request — expect eventual consistency between the write response and the history/timeline read. - Deletion. Deleting an entry deletes its persisted history; derived slices (workflow/state/SLA/trigger) disappear with the underlying entry/records.
- Pagination contract. Prefer v2 (
lastTimeStampcursor, fixed page size 12,doneAt DESC) for entry history; timeline feed endpoints use the standard LoopBackFilter/Where.
Notes and limitations
Section titled “Notes and limitations”- Only the General Post template currently renders in full; the Calendar post category does not yet have a dedicated display template.
- The timeline is an event-sourced read model; if a bus event is missed, the feed may appear briefly stale until the next update.
- The timeline service depends on the core data-service; if it is unreachable, the feed may fail to load.
- On mobile, reactions are currently limited to a single
like, while the full palette is available on web.
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27