openmeterio / openmeter

Metering and Billing for AI, API and DevOps. Collect and aggregate millions of usage events in real-time and enable usage-based billing.
https://openmeter.io
Apache License 2.0
1.14k stars 68 forks source link

fix: updating PlanPhase to have no RateCards #1869

Closed chrisgacsal closed 1 week ago

chrisgacsal commented 1 week ago

Overview

Fix issue where updating a Plan Phase to have no RateCards is not properly applied.

chrisgacsal commented 1 week ago

@GAlexIHU It is handled for Plan but not for PlanPhase which is a bug and I already have a fix for that, just wanted to push these chagnes separately. So you are right, that Plans Status must be checked when PlanPhase is udpated/deleted and only allow for draft(update)/archived(delete) Plans.