Skip to content

feat(properties): carry the previous value on property update events - #5596

Draft
synoet wants to merge 2 commits into
synoet/activity-graphqlfrom
synoet/property-transitions
Draft

feat(properties): carry the previous value on property update events#5596
synoet wants to merge 2 commits into
synoet/activity-graphqlfrom
synoet/property-transitions

Conversation

@synoet

@synoet synoet commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Every entity-property mutation now captures the pre-write value in
the same statement (CTE snapshot on the upsert/option queries; the
bulk path reuses its FOR UPDATE read) and publishes it as
previous_value on entity_property.updated (serde-default, so old
events and consumers are unaffected). The activity mapping fills
PropertyChange.from with it, which lights up the 'changed Status
from In Progress to Completed' transitions the feed already renders.
Relationship and tag-remap writes don't capture it (from is omitted).
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 85c7d811-addb-44ff-9d6d-dbfd0413e94d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant