Skip to content

subscription-manager: cancel emits no event, unlike subscribe/change_tier/renew/auto_renew_subscription #859

Description

@gboigwe

Summary

cancel is the only major state-changing function in subscription-manager that doesn't emit an event — subscribe, change_tier, renew, and auto_renew_subscription all do.

Location

contracts/subscription-manager/src/lib.rs:478, function cancel

Problem

A subscription cancellation is exactly the kind of state change an off-chain subscriber-management dashboard would want to react to, but it's currently invisible — an inconsistency with every other lifecycle-affecting function in the same crate.

Impact

Medium: a straightforward observability gap on one specific, fairly important function in an otherwise well-instrumented crate.

Acceptance Criteria

  • cancel emits an event capturing the subscriber and the cancelled subscription's details
  • cargo test -p pulsar-subscription-manager passes

Suggested Approach

Mirror the event structure already used in subscribe/change_tier/renew in the same file — this is a small, self-contained, good-first-issue-sized change.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions