Skip to content

Conversation

RangerMauve
Copy link
Contributor

Fixes #136

Feels like I should do something different for the core ownership case, or maybe have some sort of in-memory cache?

Copy link
Member

@gmaclennan gmaclennan left a comment

Choose a reason for hiding this comment

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

Looks solid to me.

Could you also just add a @deprecated tag to $originalVersionIdToDeviceId()?

As you say, we'd get some benefit to caching this, we can wrap in p-memoize with a quick-lru cache with maybe 1000 entries to start - should be plenty for most projects. Happy to add that later since this already is much faster than the current RPC round-trip made for every value.

Hadn't noticed CI failing - this needs fixed before merge.

@RangerMauve RangerMauve merged commit 9ba6ee1 into main Sep 9, 2025
9 of 10 checks passed
@RangerMauve RangerMauve deleted the feat/created-updated-by branch September 9, 2025 19:37
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.

Derive createdBy and updatedBy fields for data returned to client
2 participants