fix: respect activity_type in set_relay_status and include activate_relay #14
Reference in New Issue
Block a user
Delete Branch "userAdityaa/caravel:activity-logging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR Description
Problem
Relay status helper was hardcoding
deactivate_relaywhen inserting activity rows, causing two correlated bugs:Activity Semantics Corruption: Calling
activate_relaywould update the relay toactivestatus but log the activity asdeactivate_relay, confusing the audit trail and activity feed.Missing Infra Sync for Activations: Infra sync triggers only matched on
create_relay,update_relay, anddeactivate_relayactivities, so activation events never triggered synchronization to the zooid instance. This meant relay reactivations (e.g., after payment) would not update the remote relay state.Root Cause
The
set_relay_statushelper was ignoring itsactivity_typeparameter and always calling:closes #13
2d7c969113to62dde4b2acTested and ready to be merged.