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

Maintain collection-order in FeatureFilter and FeatureConditionPack #1112

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

HannesWell
Copy link
Contributor

This ensure the order implied by the order of services in the registry is maintained throughout the mining-process, as described in:
#1105

@eparovyshnaya please have a look. I think it does not have a negative impact for Passage in general, but it would help me in my use-case. The documentation states nothing about if the element order is retained during filtering, therefore I think it is OK to change it from 'shuffling' to 'order-maintaining'. If you want, I can also add documentation that states that the order is now maintained.

This ensure the order implied by the order of services in the registry
is maintained throughout the mining-process, as described in:
eclipse-passage#1105
@codecov
Copy link

codecov bot commented Jul 4, 2022

Codecov Report

Merging #1112 (654aecb) into master (5856284) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master    #1112   +/-   ##
=========================================
  Coverage     33.21%   33.21%           
  Complexity      356      356           
=========================================
  Files          1161     1161           
  Lines         25700    25700           
  Branches       1589     1589           
=========================================
  Hits           8536     8536           
  Misses        16659    16659           
  Partials        505      505           
Impacted Files Coverage Δ
...rc/org/eclipse/passage/lic/base/FeatureFilter.java 100.00% <100.00%> (ø)
...sage/lic/base/conditions/FeatureConditionPack.java 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5856284...654aecb. Read the comment docs.

Copy link
Contributor

@eparovyshnaya eparovyshnaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minimalistic, safe and does not require change notification. Can be merged.

Please keep in mind, that publicly services still not ordered and it cannot be advised to rely on any order.

@eparovyshnaya eparovyshnaya merged commit 3c6bacb into eclipse-passage:master Jul 4, 2022
@HannesWell HannesWell deleted the maintainOrder branch July 4, 2022 11:59
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