getappmap / appmap-js

Client libraries for AppMap
48 stars 17 forks source link

@diagram mode with Ruby module-scoped class names generates invalid Mermaid #2070

Closed kgilpin closed 1 month ago

kgilpin commented 1 month ago
@diagram stripe subscriptions class map
Screen Shot 2024-10-16 at 4 33 50 AM

https://mermaid.live/edit#pako:eNqVVF1r2zAU_SuqnlLmhPozsaAtgz52dCz0pRiMYqmpwJGMJGdLgvvbJ8lKnSVpRl9s-d5zzv2Ud7AShEIEqxor9cDwUuJVwQEgTNJKM8HB46-CW4tDgLmWrKHzdqEqc3CAnfUC8K1mSo-uAQKP5vB-Cnz3uFfGSbnYlIxcjRhBgHFtWacEi-8Ogz98f0LoQgZezX9VrdJiRWVpzZbFl94j5LI8wHaXC0TouSFY048who7Ak9yrMc40wzXb0lGrqETg2TwDoJxQqQ6Vzqhfe5W1UbBRXAcXQtTervCaXh0bHfj-H-t_i5i_id9Dp4acv5jn7e1xMqYdmLMttijnG1rTCKlxPRrG-9MZ9qUdyJfYbNua3h-LGxauS7qm8tQlygabdf2Q7-d7phF91L547z6zRePx3WcbdoHxWau_SOlX7DzJz26gDl28CDZzgAE0N2CFGTF33NVfQP1GV7SAyBwJfcVtrQtY8M5AcavFfMMriLRsaQBbl5T_K-yNDeYQ7eAfiMZhEs8mWZom4SyZ5nl2EwVwA1EYxpM0nuVJFOXTKJslXQC3QhiFeBKleZbHYZJO0zBP48zpvThnL08J00L-8H8l--r-Akf_kOg

@diagram use simplified class names to avoid errors
classDiagram
  direction LR

  class StripeSubscription {
    +list() : List~StripeSubscription~
    +find_by_id!(id: int) : StripeSubscription
  }

  class DAO_StripeSubscription {
    +id: int
    +customer_id: String
    +org_id: int
  }

  class StripeSubscription_Update {
    +org: Org
    +initialize(user: User, stripe_subscription: StripeSubscription)
    +validate() : bool
    +save!() : bool
    +valid?() : bool
  }

  class StripeSubscription_Show {
    +initialize(stripe_subscription: StripeSubscription)
    +==() : bool
    +organization() : Org
    +portal() : StripePortal
    +subscription_active?() : bool
    +trial_ever?() : bool
    +to_param() : String
  }

  class StripePortal {
  }

  StripeSubscription --> DAO_StripeSubscription
  StripeSubscription --> StripeSubscription_Show
  StripeSubscription --> StripeSubscription_Update
  StripeSubscription_Show --> StripePortal
  StripeSubscription_Show --> Org
appland-release commented 1 month ago

:tada: This issue has been resolved in version @appland/navie-v1.34.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: