Skip to content

[usage] Decouple billing controller from usage controller #10785

Closed
@easyCZ

Description

@easyCZ

Fix up how we trigger the sending of the usage report into Stripe. Currently it's done inside the ReconcileTimeRange This currently causes tests to report
[ERROR] Request error from Stripe (status 401): {"status":401,"message":"You did not provide an API key.
What we want is something akin to a pipeline.
Generate the report and return it. This completes the usage controller "data munching"
(later) Store it.
Pass it onto a Billing Controller.
In practice, it should be possible to succeed the usage report, but fail the Stripe update (for example for Stripe outage reasons)

Metadata

Metadata

Assignees

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