Skip to content
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

Products at different hierarchy levels #223

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

lzaslav
Copy link
Contributor

@lzaslav lzaslav commented Sep 28, 2024

This PR adds support for scenarios where device hierarchies with different depths have product allocations assigned.

For example, liquid product is applied through Function->Boom->Unit and dry product through Function->Boom->Section->Unit. Previous logic would determine the lowest level from hierarchy for dry product (which is 4) and then filter out liquid product hierarchy (which has lowest level of 3). The end result is missing separate operation for liquid product.

The new logic keeps hierarchy of the same type (Unit) when leaf device element has not children. This results in two operation being created: one for liquid and one for dry products.

@strhea strhea merged commit 4488fca into ADAPT:develop Oct 8, 2024
1 check 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.

2 participants