Auditing
The Auditing component shows the changes history of an item — every add, update, delete, or relationship change made by any operator. It appears as a drawer that the user opens from an edit page.
Related docs.
EditHistory Microservice — the service that stores and serves the audit data.
MibApi Auditing — Data-API-side configuration that hooks the change-listener into save operations.
Page Configuration —ALLOW_AUDIT_VIEW— the per-page toggle.
Where the data comes from
The audit drawer is the React-shell view of the EditHistory Microservice. Every time an operator persists a change through the Data API:
- The Data API's MibObjects pipeline fires the
MibEditHistoryListener(registered throughMibObjectNotificationConfig). - The listener POSTs the change description (modified fields, added / removed relations, operation type) to the EditHistory MS, which stores it in MongoDB.
- When the operator opens the audit drawer on the BFF, the BFF calls
POST /edithistory/v1/read/<mediaType>/<id>?page=N&limit=Mand forwards the result to the React shell.
If UseEditHistoryMicroService is false on the BFF, the drawer opens
empty. If it is true and the EditHistory MS cannot be read (host
unreachable, ApiUrl pointing to another service, or Timeout reached),
the BFF answers 503 and the drawer shows "Not possible to access history.
Please refer to the logs for more info." in the user's language, followed
by the Request Id under which the original exception is logged. See the
EditHistory docs for setup.
Enabling the audit drawer on a page
Three ingredients are required for the drawer to be visible AND populated:
- BFF flag —
UseEditHistoryMicroService = trueon the BFF'sMibCmsFrontEndServerBaseConfig, plus the EditHistory MS reachable atMibEditHistoryMicroServiceClientConfig.ApiUrl. - Per-page flag —
ALLOW_AUDIT_VIEW = trueinMIB3UX_PAGE_CONFIGURATIONSfor each page that should expose the drawer. - Data API listener registration — see Data API configuration below. Without this, the drawer renders but is empty because no save events are being captured.
Without (1) or (2), the audit button is hidden. Without (3), the button appears but the drawer is empty.
Using the audit drawer
On any edit page where auditing is enabled, click the audit button in
the top-right toolbar ( ). A right-side
drawer titled Edition History opens with all changes to the
current item, sorted newest-first:

- The drawer header has a media-type selector — pick a related media type to switch the audit view to a related record. The list of selectable media types is built from the page's components (Form, RelatedList, RelatedForm, AutoComplete — every component that declares a main media type contributes), the relateds of the main media type and, when the page has a content criteria component, the content criteria media types. Only the media types the user can audit are offered.
- Click the search icon (
) to pick a related record once you've changed media type.
- Each row in the list represents one block changed by one save operation, showing Register ID, Username (with avatar), Media Type, and Date. A save that changes the item and one of its related rows produces one row for each.
- Click the chevron at the start of a row to expand it and see the field-level changes (added/changed/removed fields and relations) of that block only.
- Click the reset icon (
) to return to the main item's audit view.
- Click the back arrow at the top of the drawer to close it.
What is logged
Each entry corresponds to one save operation and describes:
- Operation type —
Added,Changed,Removed,AddedRelation,RemovedRelation. - Modified fields — for
Added/Changed/Removed. Each field carriesname,originalValue,newValue. Fields marked hidden in the audit configuration (e.g. password fields) are excluded. - Added / removed relations — for
AddedRelation/RemovedRelation. Carries the related media type and id. - Audit information —
instanceId,requestId,pageKey,source,tags. Useful for cross-referencing with BFF logs (therequestIdmatches the BFF'sx-request-idcorrelation header). - User — id, name, email, optional avatar URL.
- Timestamp — UTC.
See the EditHistory Microservice API for the full data shape.
Blocks of a page
The audit view of an item gathers the entries of every block of its
page. The blocks are found through the page components configured with
MEDIATYPE:
- a related media type is resolved through its relation in
ADM_RELATEDS, in either direction; - a one-to-one media type that has no relation from the main media type
is resolved through its field of type Related that points to the main
media type, where
GVP_LIVE_CHANNELS_XPVR.LIVE_CHANNEL_IDis an example of this case; - a component media type that cannot be resolved in either way is skipped and written to the BFF log, in order to keep the audit view of the other blocks available.
Several components of one page that update the same item are sent to the Data API as a single update, so one save produces one entry per block. The fields of a related row are shown with the labels of the related media type.
Where a value is stored in a column of a relationship table, and not in a field of the related media type, its change is not part of the audit trail.
When the history is written
A Data API $batch delivers its audit entries after its transaction
commits, to listeners that implement
MediaiBox.Core.NotificationListener.IRepositoryPostCommitNotificationListener,
which is the case of MibEditHistoryListener and
MibEditHistoryListenerBatch. A batch that is rolled back, for example
after a part refused by its ETag, produces no audit entry. Listeners
that write through the transaction's connection, such as
SimpleAuditListener, keep being notified during the save.
Read-permission filtering
When the BFF requests the audit data, it passes the user's read permissions to the EditHistory MS. Entries that reference related records the user cannot read are filtered out before reaching the client. The result: a low-permission user sees only the partial audit trail they're allowed to see, not "redacted" entries.
Troubleshooting
| Symptom | Likely cause |
|---|---|
| Audit button is missing | ALLOW_AUDIT_VIEW is not true on the page config, or UseEditHistoryMicroService is false on the BFF. |
| Drawer opens but is empty | EditHistory MS unreachable, or no changes have been recorded yet (audit logs from before the listener was wired up don't exist). |
| Mediatype selector has no options | The page has no components with a main mediatype set — check the Form/RelatedList/RelatedForm/AutoComplete component configurations. |
| Entries are missing or partial | Read-permission filtering may be removing entries the current user can't see. Test as a higher-permission user to confirm. |
requestId mismatch with BFF log |
Older entries may pre-date the request-id correlation header. New entries should always match. |
| A block of the page never shows entries | Its media type has no relation and no Related field to the main media type, so it is skipped: look for skipped for edit history or Skipping media type in the BFF log. Otherwise the user cannot audit it. |
| Two rows for one save of the same block | Entries recorded before MEDIAIBOX-12347 kept one entry per component; new saves produce one. |
See EditHistory — troubleshooting for service-side diagnostics (the records may not be in MongoDB at all).
Data API configuration
For auditing to actually capture changes, the Data API needs the listener registered:
MIBOBJECTNOTIFICATIONCONFIG_DEFAULT_NOTIFICATIONASSEMBLYNAME=MediaiBox.Cms.MicroServices.EditHistory.Listener
MIBOBJECTNOTIFICATIONCONFIG_DEFAULT_NOTIFICATIONCLASSFULLNAME=MediaiBox.Cms.MicroServices.EditHistory.Listener.MibEditHistoryListener
Plus the EditHistory client config pointing at the MS. See MibApi Auditing for the full Data-API setup.
See also
- EditHistory Microservice — the service powering this view
- MibApi Auditing — Data-API-side hookup
- Page Configuration —
ALLOW_AUDIT_VIEW - Concurrency Viewer — the related "who else is editing" UI in the same top-right toolbar
- System Overview — observability — correlating audit entries with BFF logs