fix: invoice.paid reactivating manually deactivated relays #10
Reference in New Issue
Block a user
Delete Branch "userAdityaa/caravel:invoice-activation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Currently, the Stripe invoice.paid webhook reactivates all inactive relays, including manually deactivated ones. This recovery should only apply to relays suspended due to billing issues.
Solution
Introduce a delinquent status to distinguish billing suspension from manual deactivation:
Implementation
Closes #8
What would you think about adding a new "delinquent" status instead of deactivation_source? It would keep the code simpler and would be more adaptive to future behavior (it would make sense to do some kind of soft-deactivation with zooid in the future, where it goes into a read-only state or something like that).
agreed, just adding the "delinquent" status feels more cleaner and robust for long-term.
(and) I also feel that the current solution feels like tagging metadata onto inactive, which can be messy in long-term.
Moving forward with the suggestion and pushing the PR soon.
43ab49b0bdtofd8d6d257b