Introduce an activity log similar to orders

Created on 20 May 2022, about 3 years ago
Updated 22 June 2025, 6 days ago

Problem/Motivation

Currently, it's really hard to track all the different events related to the subscription.

I'm thinking a great way to improve the clarity here would be to introduce an activity log, similar to orders.

We probably should make this optional by putting this functionality in a commerce_recurring_log submodule (with a dependency on commerce_log).

We should start by recording the following events:

  • Subscription renewal (perhaps we need to dispatch an event from the recurring order manager, from RecurringOrderManager::renewOrder()).
  • Recurring order close (perhaps dispatch an event from RecurringOrderManager::closeOrder())?
  • Subscription state updates (Log template: subscription_state_updated, with a template similar to order_state_updated and an event subscriber reacting to commerce_subscription.post_transition.
  • Failed payment attempts
  • Dunning (all the different emails sent during the dunning cycle), create log templates as it's specified in OrderMailEventSubscriber::onMailSend
Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇮🇱Israel jsacksick

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024