Skip to content

Conversation

vincent-pochet
Copy link
Collaborator

@vincent-pochet vincent-pochet commented May 20, 2025

Context

This PR follows #3666 and is part of an epic to add grouped_by feature on all charge models and not only on the standard one like today.

Description

This PR is the second step:

  • It updates the GraphQL and the Rest APIs to accept and return the new pricing_group_keys attribute
  • It makes sure that the deprecated grouped_by attribute is still accepted and returned
  • It adapt the aggregation logic to use the pricing_group_keys or the grouped_by attributes

For now the grouped aggregation remains remains whitelisted only on the standard and dynamic charge model. This will remain like this until the logic is applied to all charge model

@vincent-pochet vincent-pochet force-pushed the feat-pricing-group-keys branch 3 times, most recently from 5acfc30 to b47dba0 Compare May 20, 2025 13:15
@vincent-pochet vincent-pochet marked this pull request as ready for review May 20, 2025 13:26
@vincent-pochet vincent-pochet changed the title feat(pricing_group_keys): Add base grouping logic feat(pricing_group_keys): Add new pricing_group_keys API attribute May 20, 2025
@vincent-pochet vincent-pochet force-pushed the feat-pricing-group-keys branch from b47dba0 to e5dff3b Compare May 26, 2025 07:53
@vincent-pochet vincent-pochet force-pushed the feat-pricing-group-keys branch 3 times, most recently from 5e016f8 to d397bff Compare May 27, 2025 14:26
@vincent-pochet vincent-pochet force-pushed the feat-pricing-group-keys branch from d397bff to f355a32 Compare June 5, 2025 07:25
@vincent-pochet vincent-pochet merged commit 856db89 into main Jun 5, 2025
14 checks passed
@vincent-pochet vincent-pochet deleted the feat-pricing-group-keys branch June 5, 2025 07:29
vincent-pochet added a commit that referenced this pull request Jun 6, 2025
…ions (#3789)

## Context

This PR follows #3666 and
#3681 as part of the epic to add
grouped_by feature on all charge models and not only on the standard one
like today.

## Description

This PR is the second step:
- Adds the ability to inject a set of grouped_by values when fetching
events in an event store implementation (with_grouped_by_values)
- Takes advantage of this ability to change the implementation of all
"per event" aggregation logic making sure it always targets the right
pricing_group.


For now the grouped aggregation remains remains whitelisted only on the
standard and dynamic charge model. This will change in the next step of
this feature.
vincent-pochet added a commit that referenced this pull request Jun 17, 2025
## Context

This PR follows #3666,
#3681 and
#3789 as part of the epic to add
grouped_by feature on all charge models and not only on the standard one
like today.

## Description

This PR removes the restriction on charge model to allow
`pricing_group_keys` on every charge model
diegocharles pushed a commit that referenced this pull request Jul 11, 2025
## Context

This PR follows #3666,
#3681 and
#3789 as part of the epic to add
grouped_by feature on all charge models and not only on the standard one
like today.

## Description

This PR removes the restriction on charge model to allow
`pricing_group_keys` on every charge model
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