Log when a license is created for an order

Created on 25 July 2024, 8 months ago

While this module does offer logging on the license entities themselves for admin comments or state transitions, it doesn't actually log anything to the order to indicate when a license was created from an item on the order in relation to other order activity. This can be helpful for debugging payment / activation flows and correlating the order to its license(s).

I know we can't link directly to the created license from the log, though the order item View could be customized to do so, but let's just include the license ID in the log template. It can just be, "License ## created for the Order item label order item."

πŸ“Œ Task
Status

Active

Version

3.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States rszrama

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @rszrama
  • πŸ‡ΊπŸ‡ΈUnited States rszrama

    Another option in the case of there being potentially multiple licenses created from an order would be to combine the licenses created into a single log message. The problem is our templates don't really provide for a variable number of token replacements ... almost like we'd need to just compile all license IDs and labels into a single replacement for a "Licenses created from order: ## from order item label." where everything after the colon is a single replacement.

    That said ... I'm not sure we really need to optimize for this to start. We can ship with one log message per license created and perhaps add later a log template that consolidates multiple created licenses into a different template.

  • πŸ‡ΊπŸ‡ΈUnited States drupgirl

    Integrating w ECA to create logs, to send reminder emails, to set roles upon license expiration, etc. is beginning to make more sense.

    Events
    License Expired
    License Created

Production build 0.71.5 2024