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

any-of's reference is converted from a list of string to a single string #365

Closed
Seddryck opened this issue Apr 30, 2018 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@Seddryck
Copy link
Owner

Apparently any-of (or within-list) is not able to read the list of possible values

The following predicate:

<predicate operand="gender" type="text">
  <within-list>
    <item>M</item>
    <item>F</item>
  </within-list>
</predicate>

is systematically returning the following error:

Test 'NBi.Testing.Core.Elasticsearch.Acceptance.ElasticsearchRuntimeOverrider.RunPositiveTestSuiteWithConfig("ResultSetEqualToResultSet.nbits")' failed:
	System.ArgumentNullException : Value cannot be null.
Parameter name: source
	at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer)
	at NBi.Core.Calculation.Predicate.Text.TextWithinList.Apply(Object x)
	at NBi.Core.Calculation.Predicate.AbstractPredicate.Execute(Object x)
	at NBi.Core.Calculation.Predicate.Combination.AndCombinationPredicateFilter.RowApply(DataRow row)
@Seddryck Seddryck added the bug label Apr 30, 2018
@Seddryck Seddryck added this to the v1.19 milestone Apr 30, 2018
@Seddryck Seddryck self-assigned this Apr 30, 2018
@Seddryck Seddryck changed the title any-of doesn't read the list of possible values any-of's reference is converted from a list of string to a single string Apr 30, 2018
@Seddryck
Copy link
Owner Author

Seddryck commented Apr 30, 2018

It was related to the Evaluation of variables ... bug fixed and available in beta at https://ci.appveyor.com/project/Seddryck/nbi/build/1.19.0-beta.5.build.386 or with

Update-Package NBi.Framework -Version 1.19.0-beta0005

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant