Files
lasuite-drive/src
Nathan Vasse bac1e2dd53 (backend) push usage metrics to DeployCenter entitlements requests
DeployCenter now accepts the usage metrics directly in the entitlements
request body, so we switch from GET to POST and send a "usage_metrics"
list with the user's storage and the aggregated storage of the active
users sharing the same organization claim. This avoids the extra HTTP
roundtrip DeployCenter previously made to our usage metrics API when
resolving entitlements.

The entries reuse the Usage serializers so the pushed body and the
pulled external API cannot drift. The organization serializer now takes
the users queryset to be usable from both call sites, which also moves
the storage computation out of the viewset. The organization claim key
is configurable through a new "organization_claim" backend parameter
defaulting to "siret".
2026-07-23 17:08:11 +02:00
..
2026-07-15 13:44:19 +02:00
2026-07-15 13:44:19 +02:00