Skip to content

Conversation

@madsrasmussen
Copy link
Contributor

Add a timestamp to server events and client cache entries

Copilot AI review requested due to automatic review settings August 22, 2025 10:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds timestamp tracking to cache entries and server events in the Umbraco management API frontend. The changes implement client-side timestamping to track when events and cache entries are created.

Key Changes

  • Added clientTimestamp field to server event models and automatically populated it when events are received
  • Added timestamp field to all cache entry models (item cache, detail cache, and in-flight request cache)
  • Renamed cache classes for better consistency and clarity

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
types.ts Added clientTimestamp field to server event model interface
server-event.context.ts Modified event handler to inject client timestamp when receiving server events
management-api/item/cache.ts Added timestamp to item cache entries and renamed interface for clarity
management-api/inflight-request/cache.ts Added timestamp to in-flight request cache and restructured cache entries
management-api/detail/cache.ts Added timestamp to detail cache entries and renamed interface
detail-data.request-manager.ts Updated to use renamed in-flight request cache class and handle new cache structure
document-type-detail.server.request-manager.ts Updated import and instantiation of renamed cache class
data-type-detail.server.request-manager.ts Updated import and instantiation of renamed cache class

@iOvergaard iOvergaard merged commit fee6722 into main Aug 22, 2025
27 of 28 checks passed
@iOvergaard iOvergaard deleted the v16/feature/add-timestamp-to-server-events-and-cache-entries branch August 22, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants