Skip to content

Move device connection history to semantic activity storage - #5

Draft
bytemaster-0xff wants to merge 8 commits into
masterfrom
feature/runtime-data-api
Draft

Move device connection history to semantic activity storage#5
bytemaster-0xff wants to merge 8 commits into
masterfrom
feature/runtime-data-api

Conversation

@bytemaster-0xff

@bytemaster-0xff bytemaster-0xff commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Expands the RuntimeData storage seams into the semantic-storage migration for device connectivity.

Connection history:

  • DeviceConnectionEvent implements IActivityRecord
  • DeviceConnectionEventRepo composes IActivityRecordStore<DeviceConnectionEvent> instead of inheriting TableStorageBase
  • Cassandra activity shape partitions by OrganizationId + DeviceId
  • existing per-device history API is preserved using opaque provider continuation tokens
  • runtime writes populate authoritative organization context from the DeviceRepository
  • DI registers CassandraActivityRecordStore<DeviceConnectionEvent>
  • no TTL is invented yet; retention remains an explicit policy decision

Device status preparation:

  • adds the missing IDeviceStatusChangeRepo.AddDeviceStatusHistoryAsync seam so RuntimeData can forward watchdog history writes server-side
  • current status remains mutable and is now targeted at the new IOperationalRecordStore semantic category rather than Mongo/ApplicationData
  • immutable status history can follow the Activity Record pattern
  • the current Azure repo remains in place until CloudStorage's major refactor settles and the OperationalRecord provider is available

Dependency note: the connection-history branch requires a LagoVista.CloudStorage package containing the semantic Activity Record contracts/provider before it can be merged/published. OperationalRecord provider work is intentionally deferred until the current CloudStorage refactor is complete.

@bytemaster-0xff bytemaster-0xff changed the title Add runtime data write seams Move device connection history to semantic activity storage Aug 25, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant