Skip to content

[Usage-based] Implement a "Cost Center" entity #10757

@jankeromnes

Description

@jankeromnes

Is your feature request related to a problem? Please describe

Until now, we attribute workspace usage hours to Users or Teams directly (which themselves might map to a Stripe Customer).

But, as explained in this comment, it would be good to create an "indirection", and attribute workspace usage to a dedicated "Cost Center" entity.

Describe the behaviour you'd like

  • A new "Cost Center" entity should be created (which can potentially map to a Stripe Customer if payments are enabled)
  • All workspace usage hours should get pre-attributed to a "Cost Center" instead of a Team

Describe alternatives you've considered

We currently attribute directly to a Team or a User. However, this makes some of the logic implicit (i.e. "if no attributed Team, default to workspace owner"), and does not allow future evolutions like sharing a Cost Center between multiple Teams, or having "Organization"-level Cost Centers (once "Organizations" exist)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    team: webappIssue belongs to the WebApp team

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions