Skip to content

Conversation

@sbrossie
Copy link
Member

@sbrossie sbrossie commented Jan 18, 2025

The intent is to be able to communicate subscription transitions to a (usage) plugin to provide more flexibility and possibly have the plugin aggregate usage points in a way that will be compatible with what Kill Bill usage module expects. The new property is USAGE_TRANSITIONS.

In 7cea0bd, this is purely refactoring to be able to extract the computation of transitions from usage module from the usage item generation.

In [27570ae], this is the implementation to pass the new plugin property to usage plugins.

Tests: I verified the new property appears and is available from a usage plugin.

…age code.

The intent is to be able to communicate these details to a (usage) plugin to provide more flexibility
and possibly have the plugin aggregate usage points in a way that will be compatible with what Kill Bill
usage module expects.
…ions to usage plugin.

We pass the exact list as seen by the usage Kill Bill module and keyed by {subscriptionId, unitType} (*)

(*) In practise, we could have multiple unit types so those are currently serialized (can be revisited).
* Allows to match IntelliJ indet settings (moreless
* Allow to run/debug tests
When multiple catalog versions exist, we may have multiple usage intervals (ContiguousIntervalUsageInArrear)
for the same subscription and usage section.

Transitions need to be merged across those various intervals.
update oss parent pom.xml
@sbrossie sbrossie force-pushed the usage-event-transitions branch from 4bcc00a to c6f5a9e Compare January 21, 2025 00:30
@sbrossie sbrossie force-pushed the usage-event-transitions branch from c6f5a9e to 40c1b68 Compare January 21, 2025 00:42
@sbrossie sbrossie changed the title invoice: Initial refactoring work to extract transition times from usage code. invoice: Implement new plugin property USAGE_TRANSITIONS for usage plugins. Jan 25, 2025
@sbrossie sbrossie marked this pull request as ready for review January 25, 2025 05:33
@sbrossie sbrossie merged commit 8d66b22 into master Jan 26, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants