-
Notifications
You must be signed in to change notification settings - Fork 125
feat(pricing_group_keys): Add validation logic for all charge models #3666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6611a0c
to
4676d4c
Compare
julienbourdeau
approved these changes
May 22, 2025
4676d4c
to
7cb0e3e
Compare
vincent-pochet
added a commit
that referenced
this pull request
Jun 5, 2025
…3681) ## 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
This was referenced Jun 5, 2025
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
This PR 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 first step:
Charge
andChargeFilter
to share the logicCharges::Validators::StandardService
to theCharges::Validators::BaseService
so that it can be applied to all charge modelspricing_group_keys
orgrouped_by
to ensure a smooth transition between the two keys.For now
grouped_by
properties remains whitelisted only on the standard charge model. This will remain like this until the grouped_by logic is applied to all charge model